// Code generated by protoc-gen-goext. DO NOT EDIT.

package vision

import (
	status "google.golang.org/genproto/googleapis/rpc/status"
)

func (m *BatchAnalyzeRequest) SetAnalyzeSpecs(v []*AnalyzeSpec) {
	m.AnalyzeSpecs = v
}

func (m *BatchAnalyzeRequest) SetFolderId(v string) {
	m.FolderId = v
}

type AnalyzeSpec_Source = isAnalyzeSpec_Source

func (m *AnalyzeSpec) SetSource(v AnalyzeSpec_Source) {
	m.Source = v
}

func (m *AnalyzeSpec) SetContent(v []byte) {
	m.Source = &AnalyzeSpec_Content{
		Content: v,
	}
}

func (m *AnalyzeSpec) SetSignature(v string) {
	m.Source = &AnalyzeSpec_Signature{
		Signature: v,
	}
}

func (m *AnalyzeSpec) SetFeatures(v []*Feature) {
	m.Features = v
}

func (m *AnalyzeSpec) SetMimeType(v string) {
	m.MimeType = v
}

type Feature_Config = isFeature_Config

func (m *Feature) SetConfig(v Feature_Config) {
	m.Config = v
}

func (m *Feature) SetType(v Feature_Type) {
	m.Type = v
}

func (m *Feature) SetClassificationConfig(v *FeatureClassificationConfig) {
	m.Config = &Feature_ClassificationConfig{
		ClassificationConfig: v,
	}
}

func (m *Feature) SetTextDetectionConfig(v *FeatureTextDetectionConfig) {
	m.Config = &Feature_TextDetectionConfig{
		TextDetectionConfig: v,
	}
}

func (m *FeatureClassificationConfig) SetModel(v string) {
	m.Model = v
}

func (m *FeatureTextDetectionConfig) SetLanguageCodes(v []string) {
	m.LanguageCodes = v
}

func (m *FeatureTextDetectionConfig) SetModel(v string) {
	m.Model = v
}

func (m *BatchAnalyzeResponse) SetResults(v []*AnalyzeResult) {
	m.Results = v
}

func (m *AnalyzeResult) SetResults(v []*FeatureResult) {
	m.Results = v
}

func (m *AnalyzeResult) SetError(v *status.Status) {
	m.Error = v
}

type FeatureResult_Feature = isFeatureResult_Feature

func (m *FeatureResult) SetFeature(v FeatureResult_Feature) {
	m.Feature = v
}

func (m *FeatureResult) SetTextDetection(v *TextAnnotation) {
	m.Feature = &FeatureResult_TextDetection{
		TextDetection: v,
	}
}

func (m *FeatureResult) SetClassification(v *ClassAnnotation) {
	m.Feature = &FeatureResult_Classification{
		Classification: v,
	}
}

func (m *FeatureResult) SetFaceDetection(v *FaceAnnotation) {
	m.Feature = &FeatureResult_FaceDetection{
		FaceDetection: v,
	}
}

func (m *FeatureResult) SetImageCopySearch(v *ImageCopySearchAnnotation) {
	m.Feature = &FeatureResult_ImageCopySearch{
		ImageCopySearch: v,
	}
}

func (m *FeatureResult) SetError(v *status.Status) {
	m.Error = v
}
