Class CustomProcessorSourceInfo.Builder (0.11.0)

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

Describes the source info for a custom processor.

Protobuf type google.cloud.visionai.v1.CustomProcessorSourceInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CustomProcessorSourceInfo build()
Returns
Type Description
CustomProcessorSourceInfo

buildPartial()

public CustomProcessorSourceInfo buildPartial()
Returns
Type Description
CustomProcessorSourceInfo

clear()

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

clearAdditionalInfo()

public CustomProcessorSourceInfo.Builder clearAdditionalInfo()
Returns
Type Description
CustomProcessorSourceInfo.Builder

clearArtifactPath()

public CustomProcessorSourceInfo.Builder clearArtifactPath()
Returns
Type Description
CustomProcessorSourceInfo.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearModelSchema()

public CustomProcessorSourceInfo.Builder clearModelSchema()

Model schema files which specifies the signature of the model. For VERTEX_CUSTOM models, instances schema is required. If instances schema is not specified during the processor creation, VisionAI Platform will try to get it from Vertex, if it doesn't exist, the creation will fail.

.google.cloud.visionai.v1.CustomProcessorSourceInfo.ModelSchema model_schema = 5;

Returns
Type Description
CustomProcessorSourceInfo.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProductRecognizerArtifact()

public CustomProcessorSourceInfo.Builder clearProductRecognizerArtifact()

Artifact for product recognizer.

.google.cloud.visionai.v1.CustomProcessorSourceInfo.ProductRecognizerArtifact product_recognizer_artifact = 3;

Returns
Type Description
CustomProcessorSourceInfo.Builder

clearSourceType()

public CustomProcessorSourceInfo.Builder clearSourceType()

The original product which holds the custom processor's functionality.

.google.cloud.visionai.v1.CustomProcessorSourceInfo.SourceType source_type = 1;

Returns
Type Description
CustomProcessorSourceInfo.Builder

This builder for chaining.

clearVertexModel()

public CustomProcessorSourceInfo.Builder clearVertexModel()

The resource name original model hosted in the vertex AI platform.

string vertex_model = 2;

Returns
Type Description
CustomProcessorSourceInfo.Builder

This builder for chaining.

clone()

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

containsAdditionalInfo(String key)

public boolean containsAdditionalInfo(String key)

Output only. Additional info related to the imported custom processor. Data is filled in by app platform during the processor creation.

map<string, string> additional_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
boolean

getAdditionalInfo() (deprecated)

public Map<String,String> getAdditionalInfo()
Returns
Type Description
Map<String,String>

getAdditionalInfoCount()

public int getAdditionalInfoCount()

Output only. Additional info related to the imported custom processor. Data is filled in by app platform during the processor creation.

map<string, string> additional_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getAdditionalInfoMap()

public Map<String,String> getAdditionalInfoMap()

Output only. Additional info related to the imported custom processor. Data is filled in by app platform during the processor creation.

map<string, string> additional_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Map<String,String>

getAdditionalInfoOrDefault(String key, String defaultValue)

public String getAdditionalInfoOrDefault(String key, String defaultValue)

Output only. Additional info related to the imported custom processor. Data is filled in by app platform during the processor creation.

map<string, string> additional_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getAdditionalInfoOrThrow(String key)

public String getAdditionalInfoOrThrow(String key)

Output only. Additional info related to the imported custom processor. Data is filled in by app platform during the processor creation.

map<string, string> additional_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
String

getArtifactPathCase()

public CustomProcessorSourceInfo.ArtifactPathCase getArtifactPathCase()
Returns
Type Description
CustomProcessorSourceInfo.ArtifactPathCase

getDefaultInstanceForType()

public CustomProcessorSourceInfo getDefaultInstanceForType()
Returns
Type Description
CustomProcessorSourceInfo

getDescriptorForType()

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

getModelSchema()

public CustomProcessorSourceInfo.ModelSchema getModelSchema()

Model schema files which specifies the signature of the model. For VERTEX_CUSTOM models, instances schema is required. If instances schema is not specified during the processor creation, VisionAI Platform will try to get it from Vertex, if it doesn't exist, the creation will fail.

.google.cloud.visionai.v1.CustomProcessorSourceInfo.ModelSchema model_schema = 5;

Returns
Type Description
CustomProcessorSourceInfo.ModelSchema

The modelSchema.

getModelSchemaBuilder()

public CustomProcessorSourceInfo.ModelSchema.Builder getModelSchemaBuilder()

Model schema files which specifies the signature of the model. For VERTEX_CUSTOM models, instances schema is required. If instances schema is not specified during the processor creation, VisionAI Platform will try to get it from Vertex, if it doesn't exist, the creation will fail.

.google.cloud.visionai.v1.CustomProcessorSourceInfo.ModelSchema model_schema = 5;

Returns
Type Description
CustomProcessorSourceInfo.ModelSchema.Builder

getModelSchemaOrBuilder()

public CustomProcessorSourceInfo.ModelSchemaOrBuilder getModelSchemaOrBuilder()

Model schema files which specifies the signature of the model. For VERTEX_CUSTOM models, instances schema is required. If instances schema is not specified during the processor creation, VisionAI Platform will try to get it from Vertex, if it doesn't exist, the creation will fail.

.google.cloud.visionai.v1.CustomProcessorSourceInfo.ModelSchema model_schema = 5;

Returns
Type Description
CustomProcessorSourceInfo.ModelSchemaOrBuilder

getMutableAdditionalInfo() (deprecated)

public Map<String,String> getMutableAdditionalInfo()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getProductRecognizerArtifact()

public CustomProcessorSourceInfo.ProductRecognizerArtifact getProductRecognizerArtifact()

Artifact for product recognizer.

.google.cloud.visionai.v1.CustomProcessorSourceInfo.ProductRecognizerArtifact product_recognizer_artifact = 3;

Returns
Type Description
CustomProcessorSourceInfo.ProductRecognizerArtifact

The productRecognizerArtifact.

getProductRecognizerArtifactBuilder()

public CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder getProductRecognizerArtifactBuilder()

Artifact for product recognizer.

.google.cloud.visionai.v1.CustomProcessorSourceInfo.ProductRecognizerArtifact product_recognizer_artifact = 3;

Returns
Type Description
CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder

getProductRecognizerArtifactOrBuilder()

public CustomProcessorSourceInfo.ProductRecognizerArtifactOrBuilder getProductRecognizerArtifactOrBuilder()

Artifact for product recognizer.

.google.cloud.visionai.v1.CustomProcessorSourceInfo.ProductRecognizerArtifact product_recognizer_artifact = 3;

Returns
Type Description
CustomProcessorSourceInfo.ProductRecognizerArtifactOrBuilder

getSourceType()

public CustomProcessorSourceInfo.SourceType getSourceType()

The original product which holds the custom processor's functionality.

.google.cloud.visionai.v1.CustomProcessorSourceInfo.SourceType source_type = 1;

Returns
Type Description
CustomProcessorSourceInfo.SourceType

The sourceType.

getSourceTypeValue()

public int getSourceTypeValue()

The original product which holds the custom processor's functionality.

.google.cloud.visionai.v1.CustomProcessorSourceInfo.SourceType source_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for sourceType.

getVertexModel()

public String getVertexModel()

The resource name original model hosted in the vertex AI platform.

string vertex_model = 2;

Returns
Type Description
String

The vertexModel.

getVertexModelBytes()

public ByteString getVertexModelBytes()

The resource name original model hosted in the vertex AI platform.

string vertex_model = 2;

Returns
Type Description
ByteString

The bytes for vertexModel.

hasModelSchema()

public boolean hasModelSchema()

Model schema files which specifies the signature of the model. For VERTEX_CUSTOM models, instances schema is required. If instances schema is not specified during the processor creation, VisionAI Platform will try to get it from Vertex, if it doesn't exist, the creation will fail.

.google.cloud.visionai.v1.CustomProcessorSourceInfo.ModelSchema model_schema = 5;

Returns
Type Description
boolean

Whether the modelSchema field is set.

hasProductRecognizerArtifact()

public boolean hasProductRecognizerArtifact()

Artifact for product recognizer.

.google.cloud.visionai.v1.CustomProcessorSourceInfo.ProductRecognizerArtifact product_recognizer_artifact = 3;

Returns
Type Description
boolean

Whether the productRecognizerArtifact field is set.

hasVertexModel()

public boolean hasVertexModel()

The resource name original model hosted in the vertex AI platform.

string vertex_model = 2;

Returns
Type Description
boolean

Whether the vertexModel field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CustomProcessorSourceInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeModelSchema(CustomProcessorSourceInfo.ModelSchema value)

public CustomProcessorSourceInfo.Builder mergeModelSchema(CustomProcessorSourceInfo.ModelSchema value)

Model schema files which specifies the signature of the model. For VERTEX_CUSTOM models, instances schema is required. If instances schema is not specified during the processor creation, VisionAI Platform will try to get it from Vertex, if it doesn't exist, the creation will fail.

.google.cloud.visionai.v1.CustomProcessorSourceInfo.ModelSchema model_schema = 5;

Parameter
Name Description
value CustomProcessorSourceInfo.ModelSchema
Returns
Type Description
CustomProcessorSourceInfo.Builder

mergeProductRecognizerArtifact(CustomProcessorSourceInfo.ProductRecognizerArtifact value)

public CustomProcessorSourceInfo.Builder mergeProductRecognizerArtifact(CustomProcessorSourceInfo.ProductRecognizerArtifact value)

Artifact for product recognizer.

.google.cloud.visionai.v1.CustomProcessorSourceInfo.ProductRecognizerArtifact product_recognizer_artifact = 3;

Parameter
Name Description
value CustomProcessorSourceInfo.ProductRecognizerArtifact
Returns
Type Description
CustomProcessorSourceInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAdditionalInfo(String key, String value)

public CustomProcessorSourceInfo.Builder putAdditionalInfo(String key, String value)

Output only. Additional info related to the imported custom processor. Data is filled in by app platform during the processor creation.

map<string, string> additional_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
value String
Returns
Type Description
CustomProcessorSourceInfo.Builder

putAllAdditionalInfo(Map<String,String> values)

public CustomProcessorSourceInfo.Builder putAllAdditionalInfo(Map<String,String> values)

Output only. Additional info related to the imported custom processor. Data is filled in by app platform during the processor creation.

map<string, string> additional_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
CustomProcessorSourceInfo.Builder

removeAdditionalInfo(String key)

public CustomProcessorSourceInfo.Builder removeAdditionalInfo(String key)

Output only. Additional info related to the imported custom processor. Data is filled in by app platform during the processor creation.

map<string, string> additional_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
CustomProcessorSourceInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setModelSchema(CustomProcessorSourceInfo.ModelSchema value)

public CustomProcessorSourceInfo.Builder setModelSchema(CustomProcessorSourceInfo.ModelSchema value)

Model schema files which specifies the signature of the model. For VERTEX_CUSTOM models, instances schema is required. If instances schema is not specified during the processor creation, VisionAI Platform will try to get it from Vertex, if it doesn't exist, the creation will fail.

.google.cloud.visionai.v1.CustomProcessorSourceInfo.ModelSchema model_schema = 5;

Parameter
Name Description
value CustomProcessorSourceInfo.ModelSchema
Returns
Type Description
CustomProcessorSourceInfo.Builder

setModelSchema(CustomProcessorSourceInfo.ModelSchema.Builder builderForValue)

public CustomProcessorSourceInfo.Builder setModelSchema(CustomProcessorSourceInfo.ModelSchema.Builder builderForValue)

Model schema files which specifies the signature of the model. For VERTEX_CUSTOM models, instances schema is required. If instances schema is not specified during the processor creation, VisionAI Platform will try to get it from Vertex, if it doesn't exist, the creation will fail.

.google.cloud.visionai.v1.CustomProcessorSourceInfo.ModelSchema model_schema = 5;

Parameter
Name Description
builderForValue CustomProcessorSourceInfo.ModelSchema.Builder
Returns
Type Description
CustomProcessorSourceInfo.Builder

setProductRecognizerArtifact(CustomProcessorSourceInfo.ProductRecognizerArtifact value)

public CustomProcessorSourceInfo.Builder setProductRecognizerArtifact(CustomProcessorSourceInfo.ProductRecognizerArtifact value)

Artifact for product recognizer.

.google.cloud.visionai.v1.CustomProcessorSourceInfo.ProductRecognizerArtifact product_recognizer_artifact = 3;

Parameter
Name Description
value CustomProcessorSourceInfo.ProductRecognizerArtifact
Returns
Type Description
CustomProcessorSourceInfo.Builder

setProductRecognizerArtifact(CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder builderForValue)

public CustomProcessorSourceInfo.Builder setProductRecognizerArtifact(CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder builderForValue)

Artifact for product recognizer.

.google.cloud.visionai.v1.CustomProcessorSourceInfo.ProductRecognizerArtifact product_recognizer_artifact = 3;

Parameter
Name Description
builderForValue CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder
Returns
Type Description
CustomProcessorSourceInfo.Builder

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

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

setSourceType(CustomProcessorSourceInfo.SourceType value)

public CustomProcessorSourceInfo.Builder setSourceType(CustomProcessorSourceInfo.SourceType value)

The original product which holds the custom processor's functionality.

.google.cloud.visionai.v1.CustomProcessorSourceInfo.SourceType source_type = 1;

Parameter
Name Description
value CustomProcessorSourceInfo.SourceType

The sourceType to set.

Returns
Type Description
CustomProcessorSourceInfo.Builder

This builder for chaining.

setSourceTypeValue(int value)

public CustomProcessorSourceInfo.Builder setSourceTypeValue(int value)

The original product which holds the custom processor's functionality.

.google.cloud.visionai.v1.CustomProcessorSourceInfo.SourceType source_type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for sourceType to set.

Returns
Type Description
CustomProcessorSourceInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setVertexModel(String value)

public CustomProcessorSourceInfo.Builder setVertexModel(String value)

The resource name original model hosted in the vertex AI platform.

string vertex_model = 2;

Parameter
Name Description
value String

The vertexModel to set.

Returns
Type Description
CustomProcessorSourceInfo.Builder

This builder for chaining.

setVertexModelBytes(ByteString value)

public CustomProcessorSourceInfo.Builder setVertexModelBytes(ByteString value)

The resource name original model hosted in the vertex AI platform.

string vertex_model = 2;

Parameter
Name Description
value ByteString

The bytes for vertexModel to set.

Returns
Type Description
CustomProcessorSourceInfo.Builder

This builder for chaining.