Class CustomProcessorSourceInfo (0.1.0)

public final class CustomProcessorSourceInfo extends GeneratedMessageV3 implements CustomProcessorSourceInfoOrBuilder

Describes the source info for a custom processor.

Protobuf type google.cloud.visionai.v1.CustomProcessorSourceInfo

Static Fields

ADDITIONAL_INFO_FIELD_NUMBER

public static final int ADDITIONAL_INFO_FIELD_NUMBER
Field Value
Type Description
int

MODEL_SCHEMA_FIELD_NUMBER

public static final int MODEL_SCHEMA_FIELD_NUMBER
Field Value
Type Description
int

PRODUCT_RECOGNIZER_ARTIFACT_FIELD_NUMBER

public static final int PRODUCT_RECOGNIZER_ARTIFACT_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_TYPE_FIELD_NUMBER

public static final int SOURCE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

VERTEX_MODEL_FIELD_NUMBER

public static final int VERTEX_MODEL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CustomProcessorSourceInfo getDefaultInstance()
Returns
Type Description
CustomProcessorSourceInfo

getDescriptor()

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

newBuilder()

public static CustomProcessorSourceInfo.Builder newBuilder()
Returns
Type Description
CustomProcessorSourceInfo.Builder

newBuilder(CustomProcessorSourceInfo prototype)

public static CustomProcessorSourceInfo.Builder newBuilder(CustomProcessorSourceInfo prototype)
Parameter
Name Description
prototype CustomProcessorSourceInfo
Returns
Type Description
CustomProcessorSourceInfo.Builder

parseDelimitedFrom(InputStream input)

public static CustomProcessorSourceInfo parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CustomProcessorSourceInfo
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomProcessorSourceInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomProcessorSourceInfo
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CustomProcessorSourceInfo parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CustomProcessorSourceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CustomProcessorSourceInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomProcessorSourceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CustomProcessorSourceInfo parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CustomProcessorSourceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CustomProcessorSourceInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomProcessorSourceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CustomProcessorSourceInfo parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CustomProcessorSourceInfo
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomProcessorSourceInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomProcessorSourceInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CustomProcessorSourceInfo parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CustomProcessorSourceInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomProcessorSourceInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomProcessorSourceInfo
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CustomProcessorSourceInfo parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CustomProcessorSourceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CustomProcessorSourceInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomProcessorSourceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CustomProcessorSourceInfo> parser()
Returns
Type Description
Parser<CustomProcessorSourceInfo>

Methods

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

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.

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

getParserForType()

public Parser<CustomProcessorSourceInfo> getParserForType()
Returns
Type Description
Parser<CustomProcessorSourceInfo>
Overrides

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.

getProductRecognizerArtifactOrBuilder()

public CustomProcessorSourceInfo.ProductRecognizerArtifactOrBuilder getProductRecognizerArtifactOrBuilder()

Artifact for product recognizer.

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

Returns
Type Description
CustomProcessorSourceInfo.ProductRecognizerArtifactOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

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.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CustomProcessorSourceInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CustomProcessorSourceInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException