Class CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder (0.40.0)

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

Message describes product recognizer artifact.

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

Static Methods

getDescriptor()

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

Methods

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

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.

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 GeneratedMessage.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

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.

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.