Package com.google.cloud.visionai.v1
Class CustomProcessorSourceInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CustomProcessorSourceInfo.Builder>
com.google.cloud.visionai.v1.CustomProcessorSourceInfo.Builder
- All Implemented Interfaces:
CustomProcessorSourceInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CustomProcessorSourceInfo
public static final class CustomProcessorSourceInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CustomProcessorSourceInfo.Builder>
implements CustomProcessorSourceInfoOrBuilder
Describes the source info for a custom processor.Protobuf type
google.cloud.visionai.v1.CustomProcessorSourceInfo-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Model schema files which specifies the signature of the model.Artifact for product recognizer.The original product which holds the custom processor's functionality.The resource name original model hosted in the vertex AI platform.booleanOutput only.Deprecated.intOutput only.Output only.getAdditionalInfoOrDefault(String key, String defaultValue) Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorModel schema files which specifies the signature of the model.Model schema files which specifies the signature of the model.Model schema files which specifies the signature of the model.Deprecated.Artifact for product recognizer.Artifact for product recognizer.Artifact for product recognizer.The original product which holds the custom processor's functionality.intThe original product which holds the custom processor's functionality.The resource name original model hosted in the vertex AI platform.com.google.protobuf.ByteStringThe resource name original model hosted in the vertex AI platform.booleanModel schema files which specifies the signature of the model.booleanArtifact for product recognizer.booleanThe resource name original model hosted in the vertex AI platform.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Model schema files which specifies the signature of the model.Artifact for product recognizer.putAdditionalInfo(String key, String value) Output only.putAllAdditionalInfo(Map<String, String> values) Output only.Output only.Model schema files which specifies the signature of the model.setModelSchema(CustomProcessorSourceInfo.ModelSchema.Builder builderForValue) Model schema files which specifies the signature of the model.Artifact for product recognizer.setProductRecognizerArtifact(CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder builderForValue) Artifact for product recognizer.The original product which holds the custom processor's functionality.setSourceTypeValue(int value) The original product which holds the custom processor's functionality.setVertexModel(String value) The resource name original model hosted in the vertex AI platform.setVertexModelBytes(com.google.protobuf.ByteString value) The resource name original model hosted in the vertex AI platform.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<CustomProcessorSourceInfo.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<CustomProcessorSourceInfo.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CustomProcessorSourceInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CustomProcessorSourceInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CustomProcessorSourceInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CustomProcessorSourceInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CustomProcessorSourceInfo.Builder>
-
mergeFrom
public CustomProcessorSourceInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CustomProcessorSourceInfo.Builder>- Throws:
IOException
-
getArtifactPathCase
- Specified by:
getArtifactPathCasein interfaceCustomProcessorSourceInfoOrBuilder
-
clearArtifactPath
-
hasVertexModel
public boolean hasVertexModel()The resource name original model hosted in the vertex AI platform.
string vertex_model = 2;- Specified by:
hasVertexModelin interfaceCustomProcessorSourceInfoOrBuilder- Returns:
- Whether the vertexModel field is set.
-
getVertexModel
The resource name original model hosted in the vertex AI platform.
string vertex_model = 2;- Specified by:
getVertexModelin interfaceCustomProcessorSourceInfoOrBuilder- Returns:
- The vertexModel.
-
getVertexModelBytes
public com.google.protobuf.ByteString getVertexModelBytes()The resource name original model hosted in the vertex AI platform.
string vertex_model = 2;- Specified by:
getVertexModelBytesin interfaceCustomProcessorSourceInfoOrBuilder- Returns:
- The bytes for vertexModel.
-
setVertexModel
The resource name original model hosted in the vertex AI platform.
string vertex_model = 2;- Parameters:
value- The vertexModel to set.- Returns:
- This builder for chaining.
-
clearVertexModel
The resource name original model hosted in the vertex AI platform.
string vertex_model = 2;- Returns:
- This builder for chaining.
-
setVertexModelBytes
The resource name original model hosted in the vertex AI platform.
string vertex_model = 2;- Parameters:
value- The bytes for vertexModel to set.- Returns:
- This builder for chaining.
-
hasProductRecognizerArtifact
public boolean hasProductRecognizerArtifact()Artifact for product recognizer.
.google.cloud.visionai.v1.CustomProcessorSourceInfo.ProductRecognizerArtifact product_recognizer_artifact = 3;- Specified by:
hasProductRecognizerArtifactin interfaceCustomProcessorSourceInfoOrBuilder- Returns:
- Whether the productRecognizerArtifact field is set.
-
getProductRecognizerArtifact
Artifact for product recognizer.
.google.cloud.visionai.v1.CustomProcessorSourceInfo.ProductRecognizerArtifact product_recognizer_artifact = 3;- Specified by:
getProductRecognizerArtifactin interfaceCustomProcessorSourceInfoOrBuilder- Returns:
- The productRecognizerArtifact.
-
setProductRecognizerArtifact
public CustomProcessorSourceInfo.Builder setProductRecognizerArtifact(CustomProcessorSourceInfo.ProductRecognizerArtifact value) Artifact for product recognizer.
.google.cloud.visionai.v1.CustomProcessorSourceInfo.ProductRecognizerArtifact product_recognizer_artifact = 3; -
setProductRecognizerArtifact
public CustomProcessorSourceInfo.Builder setProductRecognizerArtifact(CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder builderForValue) Artifact for product recognizer.
.google.cloud.visionai.v1.CustomProcessorSourceInfo.ProductRecognizerArtifact product_recognizer_artifact = 3; -
mergeProductRecognizerArtifact
public CustomProcessorSourceInfo.Builder mergeProductRecognizerArtifact(CustomProcessorSourceInfo.ProductRecognizerArtifact value) Artifact for product recognizer.
.google.cloud.visionai.v1.CustomProcessorSourceInfo.ProductRecognizerArtifact product_recognizer_artifact = 3; -
clearProductRecognizerArtifact
Artifact for product recognizer.
.google.cloud.visionai.v1.CustomProcessorSourceInfo.ProductRecognizerArtifact product_recognizer_artifact = 3; -
getProductRecognizerArtifactBuilder
public CustomProcessorSourceInfo.ProductRecognizerArtifact.Builder getProductRecognizerArtifactBuilder()Artifact for product recognizer.
.google.cloud.visionai.v1.CustomProcessorSourceInfo.ProductRecognizerArtifact product_recognizer_artifact = 3; -
getProductRecognizerArtifactOrBuilder
public CustomProcessorSourceInfo.ProductRecognizerArtifactOrBuilder getProductRecognizerArtifactOrBuilder()Artifact for product recognizer.
.google.cloud.visionai.v1.CustomProcessorSourceInfo.ProductRecognizerArtifact product_recognizer_artifact = 3;- Specified by:
getProductRecognizerArtifactOrBuilderin interfaceCustomProcessorSourceInfoOrBuilder
-
getSourceTypeValue
public int getSourceTypeValue()The original product which holds the custom processor's functionality.
.google.cloud.visionai.v1.CustomProcessorSourceInfo.SourceType source_type = 1;- Specified by:
getSourceTypeValuein interfaceCustomProcessorSourceInfoOrBuilder- Returns:
- The enum numeric value on the wire for sourceType.
-
setSourceTypeValue
The original product which holds the custom processor's functionality.
.google.cloud.visionai.v1.CustomProcessorSourceInfo.SourceType source_type = 1;- Parameters:
value- The enum numeric value on the wire for sourceType to set.- Returns:
- This builder for chaining.
-
getSourceType
The original product which holds the custom processor's functionality.
.google.cloud.visionai.v1.CustomProcessorSourceInfo.SourceType source_type = 1;- Specified by:
getSourceTypein interfaceCustomProcessorSourceInfoOrBuilder- Returns:
- The sourceType.
-
setSourceType
The original product which holds the custom processor's functionality.
.google.cloud.visionai.v1.CustomProcessorSourceInfo.SourceType source_type = 1;- Parameters:
value- The sourceType to set.- Returns:
- This builder for chaining.
-
clearSourceType
The original product which holds the custom processor's functionality.
.google.cloud.visionai.v1.CustomProcessorSourceInfo.SourceType source_type = 1;- Returns:
- This builder for chaining.
-
getAdditionalInfoCount
public int getAdditionalInfoCount()Description copied from interface:CustomProcessorSourceInfoOrBuilderOutput 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];- Specified by:
getAdditionalInfoCountin interfaceCustomProcessorSourceInfoOrBuilder
-
containsAdditionalInfo
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];- Specified by:
containsAdditionalInfoin interfaceCustomProcessorSourceInfoOrBuilder
-
getAdditionalInfo
Deprecated.UsegetAdditionalInfoMap()instead.- Specified by:
getAdditionalInfoin interfaceCustomProcessorSourceInfoOrBuilder
-
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];- Specified by:
getAdditionalInfoMapin interfaceCustomProcessorSourceInfoOrBuilder
-
getAdditionalInfoOrDefault
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];- Specified by:
getAdditionalInfoOrDefaultin interfaceCustomProcessorSourceInfoOrBuilder
-
getAdditionalInfoOrThrow
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];- Specified by:
getAdditionalInfoOrThrowin interfaceCustomProcessorSourceInfoOrBuilder
-
clearAdditionalInfo
-
removeAdditionalInfo
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]; -
getMutableAdditionalInfo
Deprecated.Use alternate mutation accessors instead. -
putAdditionalInfo
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]; -
putAllAdditionalInfo
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]; -
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;- Specified by:
hasModelSchemain interfaceCustomProcessorSourceInfoOrBuilder- Returns:
- Whether the modelSchema field is set.
-
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;- Specified by:
getModelSchemain interfaceCustomProcessorSourceInfoOrBuilder- Returns:
- The modelSchema.
-
setModelSchema
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; -
setModelSchema
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; -
mergeModelSchema
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; -
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; -
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; -
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;- Specified by:
getModelSchemaOrBuilderin interfaceCustomProcessorSourceInfoOrBuilder
-