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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<CustomProcessorSourceInfo.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<CustomProcessorSourceInfo.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CustomProcessorSourceInfo.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CustomProcessorSourceInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CustomProcessorSourceInfo.Builder>
    • getDefaultInstanceForType

      public CustomProcessorSourceInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CustomProcessorSourceInfo build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CustomProcessorSourceInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CustomProcessorSourceInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CustomProcessorSourceInfo.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CustomProcessorSourceInfo.Builder>
      Throws:
      IOException
    • getArtifactPathCase

      public CustomProcessorSourceInfo.ArtifactPathCase getArtifactPathCase()
      Specified by:
      getArtifactPathCase in interface CustomProcessorSourceInfoOrBuilder
    • clearArtifactPath

      public CustomProcessorSourceInfo.Builder clearArtifactPath()
    • hasVertexModel

      public boolean hasVertexModel()
       The resource name original model hosted in the vertex AI platform.
       
      string vertex_model = 2;
      Specified by:
      hasVertexModel in interface CustomProcessorSourceInfoOrBuilder
      Returns:
      Whether the vertexModel field is set.
    • getVertexModel

      public String getVertexModel()
       The resource name original model hosted in the vertex AI platform.
       
      string vertex_model = 2;
      Specified by:
      getVertexModel in interface CustomProcessorSourceInfoOrBuilder
      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:
      getVertexModelBytes in interface CustomProcessorSourceInfoOrBuilder
      Returns:
      The bytes for vertexModel.
    • setVertexModel

      public CustomProcessorSourceInfo.Builder setVertexModel(String value)
       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

      public CustomProcessorSourceInfo.Builder clearVertexModel()
       The resource name original model hosted in the vertex AI platform.
       
      string vertex_model = 2;
      Returns:
      This builder for chaining.
    • setVertexModelBytes

      public CustomProcessorSourceInfo.Builder setVertexModelBytes(com.google.protobuf.ByteString value)
       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:
      hasProductRecognizerArtifact in interface CustomProcessorSourceInfoOrBuilder
      Returns:
      Whether the productRecognizerArtifact field is set.
    • getProductRecognizerArtifact

      public CustomProcessorSourceInfo.ProductRecognizerArtifact getProductRecognizerArtifact()
       Artifact for product recognizer.
       
      .google.cloud.visionai.v1.CustomProcessorSourceInfo.ProductRecognizerArtifact product_recognizer_artifact = 3;
      Specified by:
      getProductRecognizerArtifact in interface CustomProcessorSourceInfoOrBuilder
      Returns:
      The productRecognizerArtifact.
    • setProductRecognizerArtifact

       Artifact for product recognizer.
       
      .google.cloud.visionai.v1.CustomProcessorSourceInfo.ProductRecognizerArtifact product_recognizer_artifact = 3;
    • setProductRecognizerArtifact

       Artifact for product recognizer.
       
      .google.cloud.visionai.v1.CustomProcessorSourceInfo.ProductRecognizerArtifact product_recognizer_artifact = 3;
    • mergeProductRecognizerArtifact

       Artifact for product recognizer.
       
      .google.cloud.visionai.v1.CustomProcessorSourceInfo.ProductRecognizerArtifact product_recognizer_artifact = 3;
    • clearProductRecognizerArtifact

      public CustomProcessorSourceInfo.Builder 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:
      getProductRecognizerArtifactOrBuilder in interface CustomProcessorSourceInfoOrBuilder
    • 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:
      getSourceTypeValue in interface CustomProcessorSourceInfoOrBuilder
      Returns:
      The enum numeric value on the wire for sourceType.
    • setSourceTypeValue

      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;
      Parameters:
      value - The enum numeric value on the wire for sourceType to set.
      Returns:
      This builder for chaining.
    • getSourceType

      public CustomProcessorSourceInfo.SourceType getSourceType()
       The original product which holds the custom processor's functionality.
       
      .google.cloud.visionai.v1.CustomProcessorSourceInfo.SourceType source_type = 1;
      Specified by:
      getSourceType in interface CustomProcessorSourceInfoOrBuilder
      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

      public CustomProcessorSourceInfo.Builder 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: CustomProcessorSourceInfoOrBuilder
       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:
      getAdditionalInfoCount in interface CustomProcessorSourceInfoOrBuilder
    • containsAdditionalInfo

      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];
      Specified by:
      containsAdditionalInfo in interface CustomProcessorSourceInfoOrBuilder
    • getAdditionalInfo

      @Deprecated public Map<String,String> getAdditionalInfo()
      Deprecated.
      Specified by:
      getAdditionalInfo in interface CustomProcessorSourceInfoOrBuilder
    • 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];
      Specified by:
      getAdditionalInfoMap in interface CustomProcessorSourceInfoOrBuilder
    • getAdditionalInfoOrDefault

      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];
      Specified by:
      getAdditionalInfoOrDefault in interface CustomProcessorSourceInfoOrBuilder
    • getAdditionalInfoOrThrow

      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];
      Specified by:
      getAdditionalInfoOrThrow in interface CustomProcessorSourceInfoOrBuilder
    • clearAdditionalInfo

      public CustomProcessorSourceInfo.Builder clearAdditionalInfo()
    • removeAdditionalInfo

      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];
    • getMutableAdditionalInfo

      @Deprecated public Map<String,String> getMutableAdditionalInfo()
      Deprecated.
      Use alternate mutation accessors instead.
    • putAdditionalInfo

      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];
    • putAllAdditionalInfo

      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];
    • 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:
      hasModelSchema in interface CustomProcessorSourceInfoOrBuilder
      Returns:
      Whether the modelSchema field is set.
    • 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;
      Specified by:
      getModelSchema in interface CustomProcessorSourceInfoOrBuilder
      Returns:
      The modelSchema.
    • setModelSchema

       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

       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

       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

      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;
    • 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;
    • 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;
      Specified by:
      getModelSchemaOrBuilder in interface CustomProcessorSourceInfoOrBuilder