Class CustomProcessorSourceInfo.Builder (0.14.1)

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

Describes the source info for a custom processor.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CustomProcessorSourceInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CustomProcessorSourceInfo.Builder
Overrides

build()

public CustomProcessorSourceInfo build()
Returns
TypeDescription
CustomProcessorSourceInfo

buildPartial()

public CustomProcessorSourceInfo buildPartial()
Returns
TypeDescription
CustomProcessorSourceInfo

clear()

public CustomProcessorSourceInfo.Builder clear()
Returns
TypeDescription
CustomProcessorSourceInfo.Builder
Overrides

clearAdditionalInfo()

public CustomProcessorSourceInfo.Builder clearAdditionalInfo()
Returns
TypeDescription
CustomProcessorSourceInfo.Builder

clearArtifactPath()

public CustomProcessorSourceInfo.Builder clearArtifactPath()
Returns
TypeDescription
CustomProcessorSourceInfo.Builder

clearField(Descriptors.FieldDescriptor field)

public CustomProcessorSourceInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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.events.cloud.visionai.v1.CustomProcessorSourceInfo.ModelSchema model_schema = 5;

Returns
TypeDescription
CustomProcessorSourceInfo.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public CustomProcessorSourceInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CustomProcessorSourceInfo.Builder
Overrides

clearSourceType()

public CustomProcessorSourceInfo.Builder clearSourceType()

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

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

Returns
TypeDescription
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
TypeDescription
CustomProcessorSourceInfo.Builder

This builder for chaining.

clone()

public CustomProcessorSourceInfo.Builder clone()
Returns
TypeDescription
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;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAdditionalInfo()

public Map<String,String> getAdditionalInfo()
Returns
TypeDescription
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;

Returns
TypeDescription
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;

Returns
TypeDescription
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;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getArtifactPathCase()

public CustomProcessorSourceInfo.ArtifactPathCase getArtifactPathCase()
Returns
TypeDescription
CustomProcessorSourceInfo.ArtifactPathCase

getDefaultInstanceForType()

public CustomProcessorSourceInfo getDefaultInstanceForType()
Returns
TypeDescription
CustomProcessorSourceInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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.events.cloud.visionai.v1.CustomProcessorSourceInfo.ModelSchema model_schema = 5;

Returns
TypeDescription
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.events.cloud.visionai.v1.CustomProcessorSourceInfo.ModelSchema model_schema = 5;

Returns
TypeDescription
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.events.cloud.visionai.v1.CustomProcessorSourceInfo.ModelSchema model_schema = 5;

Returns
TypeDescription
CustomProcessorSourceInfo.ModelSchemaOrBuilder

getMutableAdditionalInfo()

public Map<String,String> getMutableAdditionalInfo()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getSourceType()

public CustomProcessorSourceInfo.SourceType getSourceType()

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

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

Returns
TypeDescription
CustomProcessorSourceInfo.SourceType

The sourceType.

getSourceTypeValue()

public int getSourceTypeValue()

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

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

Returns
TypeDescription
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
TypeDescription
String

The vertexModel.

getVertexModelBytes()

public ByteString getVertexModelBytes()

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

string vertex_model = 2;

Returns
TypeDescription
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.events.cloud.visionai.v1.CustomProcessorSourceInfo.ModelSchema model_schema = 5;

Returns
TypeDescription
boolean

Whether the modelSchema field is set.

hasVertexModel()

public boolean hasVertexModel()

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

string vertex_model = 2;

Returns
TypeDescription
boolean

Whether the vertexModel field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CustomProcessorSourceInfo other)

public CustomProcessorSourceInfo.Builder mergeFrom(CustomProcessorSourceInfo other)
Parameter
NameDescription
otherCustomProcessorSourceInfo
Returns
TypeDescription
CustomProcessorSourceInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CustomProcessorSourceInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomProcessorSourceInfo.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CustomProcessorSourceInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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.events.cloud.visionai.v1.CustomProcessorSourceInfo.ModelSchema model_schema = 5;

Parameter
NameDescription
valueCustomProcessorSourceInfo.ModelSchema
Returns
TypeDescription
CustomProcessorSourceInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CustomProcessorSourceInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
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;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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;

Parameter
NameDescription
keyString
Returns
TypeDescription
CustomProcessorSourceInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CustomProcessorSourceInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.events.cloud.visionai.v1.CustomProcessorSourceInfo.ModelSchema model_schema = 5;

Parameter
NameDescription
valueCustomProcessorSourceInfo.ModelSchema
Returns
TypeDescription
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.events.cloud.visionai.v1.CustomProcessorSourceInfo.ModelSchema model_schema = 5;

Parameter
NameDescription
builderForValueCustomProcessorSourceInfo.ModelSchema.Builder
Returns
TypeDescription
CustomProcessorSourceInfo.Builder

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

public CustomProcessorSourceInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.events.cloud.visionai.v1.CustomProcessorSourceInfo.SourceType source_type = 1;

Parameter
NameDescription
valueCustomProcessorSourceInfo.SourceType

The sourceType to set.

Returns
TypeDescription
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.events.cloud.visionai.v1.CustomProcessorSourceInfo.SourceType source_type = 1;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
CustomProcessorSourceInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CustomProcessorSourceInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The vertexModel to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for vertexModel to set.

Returns
TypeDescription
CustomProcessorSourceInfo.Builder

This builder for chaining.