Class CustomProcessorSourceInfo (0.15.0)

public final class CustomProcessorSourceInfo extends GeneratedMessageV3 implements CustomProcessorSourceInfoOrBuilder

Describes the source info for a custom processor.

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

Static Fields

ADDITIONAL_INFO_FIELD_NUMBER

public static final int ADDITIONAL_INFO_FIELD_NUMBER
Field Value
TypeDescription
int

MODEL_SCHEMA_FIELD_NUMBER

public static final int MODEL_SCHEMA_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_TYPE_FIELD_NUMBER

public static final int SOURCE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

VERTEX_MODEL_FIELD_NUMBER

public static final int VERTEX_MODEL_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CustomProcessorSourceInfo getDefaultInstance()
Returns
TypeDescription
CustomProcessorSourceInfo

getDescriptor()

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

newBuilder()

public static CustomProcessorSourceInfo.Builder newBuilder()
Returns
TypeDescription
CustomProcessorSourceInfo.Builder

newBuilder(CustomProcessorSourceInfo prototype)

public static CustomProcessorSourceInfo.Builder newBuilder(CustomProcessorSourceInfo prototype)
Parameter
NameDescription
prototypeCustomProcessorSourceInfo
Returns
TypeDescription
CustomProcessorSourceInfo.Builder

parseDelimitedFrom(InputStream input)

public static CustomProcessorSourceInfo parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CustomProcessorSourceInfo
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomProcessorSourceInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomProcessorSourceInfo
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CustomProcessorSourceInfo parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CustomProcessorSourceInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CustomProcessorSourceInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomProcessorSourceInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CustomProcessorSourceInfo parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CustomProcessorSourceInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CustomProcessorSourceInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomProcessorSourceInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CustomProcessorSourceInfo parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CustomProcessorSourceInfo
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomProcessorSourceInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomProcessorSourceInfo
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CustomProcessorSourceInfo parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CustomProcessorSourceInfo
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomProcessorSourceInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomProcessorSourceInfo
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CustomProcessorSourceInfo parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CustomProcessorSourceInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CustomProcessorSourceInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomProcessorSourceInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CustomProcessorSourceInfo> parser()
Returns
TypeDescription
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;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

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

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.

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

getParserForType()

public Parser<CustomProcessorSourceInfo> getParserForType()
Returns
TypeDescription
Parser<CustomProcessorSourceInfo>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CustomProcessorSourceInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CustomProcessorSourceInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException