Class CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder (0.3.0)

public static final class CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder extends GeneratedMessageV3.Builder<CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder> implements CustomProcessorSourceInfo.ProductRecognizerArtifactOrBuilder

Message describes product recognizer artifact.

Protobuf type google.cloud.visionai.v1.CustomProcessorSourceInfo.ProductRecognizerArtifact

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder
Overrides

build()

public CustomProcessorSourceInfo.ProductRecognizerArtifact build()
Returns
Type Description
CustomProcessorSourceInfo.ProductRecognizerArtifact

buildPartial()

public CustomProcessorSourceInfo.ProductRecognizerArtifact buildPartial()
Returns
Type Description
CustomProcessorSourceInfo.ProductRecognizerArtifact

clear()

public CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder clear()
Returns
Type Description
CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder
Overrides

clearRetailProductRecognitionIndex()

public CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder clearRetailProductRecognitionIndex()

Required. Resource name of RetailProductRecognitionIndex. Format is 'projects/*/locations/*/retailCatalogs/*/retailProductRecognitionIndexes/*'

string retail_product_recognition_index = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder

This builder for chaining.

clearVertexModel()

public CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder clearVertexModel()

Optional. The resource name of embedding model hosted in Vertex AI Platform.

string vertex_model = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder

This builder for chaining.

clone()

public CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder clone()
Returns
Type Description
CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder
Overrides

getDefaultInstanceForType()

public CustomProcessorSourceInfo.ProductRecognizerArtifact getDefaultInstanceForType()
Returns
Type Description
CustomProcessorSourceInfo.ProductRecognizerArtifact

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getRetailProductRecognitionIndex()

public String getRetailProductRecognitionIndex()

Required. Resource name of RetailProductRecognitionIndex. Format is 'projects/*/locations/*/retailCatalogs/*/retailProductRecognitionIndexes/*'

string retail_product_recognition_index = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The retailProductRecognitionIndex.

getRetailProductRecognitionIndexBytes()

public ByteString getRetailProductRecognitionIndexBytes()

Required. Resource name of RetailProductRecognitionIndex. Format is 'projects/*/locations/*/retailCatalogs/*/retailProductRecognitionIndexes/*'

string retail_product_recognition_index = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for retailProductRecognitionIndex.

getVertexModel()

public String getVertexModel()

Optional. The resource name of embedding model hosted in Vertex AI Platform.

string vertex_model = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The vertexModel.

getVertexModelBytes()

public ByteString getVertexModelBytes()

Optional. The resource name of embedding model hosted in Vertex AI Platform.

string vertex_model = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for vertexModel.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CustomProcessorSourceInfo.ProductRecognizerArtifact other)

public CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder mergeFrom(CustomProcessorSourceInfo.ProductRecognizerArtifact other)
Parameter
Name Description
other CustomProcessorSourceInfo.ProductRecognizerArtifact
Returns
Type Description
CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder
Overrides

setRetailProductRecognitionIndex(String value)

public CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder setRetailProductRecognitionIndex(String value)

Required. Resource name of RetailProductRecognitionIndex. Format is 'projects/*/locations/*/retailCatalogs/*/retailProductRecognitionIndexes/*'

string retail_product_recognition_index = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The retailProductRecognitionIndex to set.

Returns
Type Description
CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder

This builder for chaining.

setRetailProductRecognitionIndexBytes(ByteString value)

public CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder setRetailProductRecognitionIndexBytes(ByteString value)

Required. Resource name of RetailProductRecognitionIndex. Format is 'projects/*/locations/*/retailCatalogs/*/retailProductRecognitionIndexes/*'

string retail_product_recognition_index = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for retailProductRecognitionIndex to set.

Returns
Type Description
CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder
Overrides

setVertexModel(String value)

public CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder setVertexModel(String value)

Optional. The resource name of embedding model hosted in Vertex AI Platform.

string vertex_model = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The vertexModel to set.

Returns
Type Description
CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder

This builder for chaining.

setVertexModelBytes(ByteString value)

public CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder setVertexModelBytes(ByteString value)

Optional. The resource name of embedding model hosted in Vertex AI Platform.

string vertex_model = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for vertexModel to set.

Returns
Type Description
CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder

This builder for chaining.