Class Instance.InputResource.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Instance.InputResource.Builder>
com.google.cloud.visionai.v1.Instance.InputResource.Builder
All Implemented Interfaces:
Instance.InputResourceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Instance.InputResource

public static final class Instance.InputResource.Builder extends com.google.protobuf.GeneratedMessage.Builder<Instance.InputResource.Builder> implements Instance.InputResourceOrBuilder
 Message of input resource used in one application instance.
 
Protobuf type google.cloud.visionai.v1.Instance.InputResource
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Instance.InputResource.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<Instance.InputResource.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<Instance.InputResource.Builder>
    • getDefaultInstanceForType

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

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

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

      public Instance.InputResource.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<Instance.InputResource.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<Instance.InputResource.Builder>
    • mergeFrom

      public Instance.InputResource.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<Instance.InputResource.Builder>
      Throws:
      IOException
    • getInputResourceInformationCase

      public Instance.InputResource.InputResourceInformationCase getInputResourceInformationCase()
      Specified by:
      getInputResourceInformationCase in interface Instance.InputResourceOrBuilder
    • clearInputResourceInformation

      public Instance.InputResource.Builder clearInputResourceInformation()
    • hasInputResource

      public boolean hasInputResource()
       The direct input resource name.
       If the instance type is STREAMING_PREDICTION, the input resource is in
       format of
       "projects/123/locations/us-central1/clusters/456/streams/stream-a".
       If the instance type is BATCH_PREDICTION from Cloud Storage input
       container, the input resource is in format of "gs://bucket-a".
       
      string input_resource = 1;
      Specified by:
      hasInputResource in interface Instance.InputResourceOrBuilder
      Returns:
      Whether the inputResource field is set.
    • getInputResource

      public String getInputResource()
       The direct input resource name.
       If the instance type is STREAMING_PREDICTION, the input resource is in
       format of
       "projects/123/locations/us-central1/clusters/456/streams/stream-a".
       If the instance type is BATCH_PREDICTION from Cloud Storage input
       container, the input resource is in format of "gs://bucket-a".
       
      string input_resource = 1;
      Specified by:
      getInputResource in interface Instance.InputResourceOrBuilder
      Returns:
      The inputResource.
    • getInputResourceBytes

      public com.google.protobuf.ByteString getInputResourceBytes()
       The direct input resource name.
       If the instance type is STREAMING_PREDICTION, the input resource is in
       format of
       "projects/123/locations/us-central1/clusters/456/streams/stream-a".
       If the instance type is BATCH_PREDICTION from Cloud Storage input
       container, the input resource is in format of "gs://bucket-a".
       
      string input_resource = 1;
      Specified by:
      getInputResourceBytes in interface Instance.InputResourceOrBuilder
      Returns:
      The bytes for inputResource.
    • setInputResource

      public Instance.InputResource.Builder setInputResource(String value)
       The direct input resource name.
       If the instance type is STREAMING_PREDICTION, the input resource is in
       format of
       "projects/123/locations/us-central1/clusters/456/streams/stream-a".
       If the instance type is BATCH_PREDICTION from Cloud Storage input
       container, the input resource is in format of "gs://bucket-a".
       
      string input_resource = 1;
      Parameters:
      value - The inputResource to set.
      Returns:
      This builder for chaining.
    • clearInputResource

      public Instance.InputResource.Builder clearInputResource()
       The direct input resource name.
       If the instance type is STREAMING_PREDICTION, the input resource is in
       format of
       "projects/123/locations/us-central1/clusters/456/streams/stream-a".
       If the instance type is BATCH_PREDICTION from Cloud Storage input
       container, the input resource is in format of "gs://bucket-a".
       
      string input_resource = 1;
      Returns:
      This builder for chaining.
    • setInputResourceBytes

      public Instance.InputResource.Builder setInputResourceBytes(com.google.protobuf.ByteString value)
       The direct input resource name.
       If the instance type is STREAMING_PREDICTION, the input resource is in
       format of
       "projects/123/locations/us-central1/clusters/456/streams/stream-a".
       If the instance type is BATCH_PREDICTION from Cloud Storage input
       container, the input resource is in format of "gs://bucket-a".
       
      string input_resource = 1;
      Parameters:
      value - The bytes for inputResource to set.
      Returns:
      This builder for chaining.
    • hasAnnotatedStream

      @Deprecated public boolean hasAnnotatedStream()
      Deprecated.
      google.cloud.visionai.v1.Instance.InputResource.annotated_stream is deprecated. See google/cloud/visionai/v1/platform.proto;l=1508
       If the input resource is VisionAI Stream, the associated annotations
       can be specified using annotated_stream instead.
       
      .google.cloud.visionai.v1.StreamWithAnnotation annotated_stream = 4 [deprecated = true];
      Specified by:
      hasAnnotatedStream in interface Instance.InputResourceOrBuilder
      Returns:
      Whether the annotatedStream field is set.
    • getAnnotatedStream

      @Deprecated public StreamWithAnnotation getAnnotatedStream()
      Deprecated.
      google.cloud.visionai.v1.Instance.InputResource.annotated_stream is deprecated. See google/cloud/visionai/v1/platform.proto;l=1508
       If the input resource is VisionAI Stream, the associated annotations
       can be specified using annotated_stream instead.
       
      .google.cloud.visionai.v1.StreamWithAnnotation annotated_stream = 4 [deprecated = true];
      Specified by:
      getAnnotatedStream in interface Instance.InputResourceOrBuilder
      Returns:
      The annotatedStream.
    • setAnnotatedStream

      Deprecated.
       If the input resource is VisionAI Stream, the associated annotations
       can be specified using annotated_stream instead.
       
      .google.cloud.visionai.v1.StreamWithAnnotation annotated_stream = 4 [deprecated = true];
    • setAnnotatedStream

      @Deprecated public Instance.InputResource.Builder setAnnotatedStream(StreamWithAnnotation.Builder builderForValue)
      Deprecated.
       If the input resource is VisionAI Stream, the associated annotations
       can be specified using annotated_stream instead.
       
      .google.cloud.visionai.v1.StreamWithAnnotation annotated_stream = 4 [deprecated = true];
    • mergeAnnotatedStream

      Deprecated.
       If the input resource is VisionAI Stream, the associated annotations
       can be specified using annotated_stream instead.
       
      .google.cloud.visionai.v1.StreamWithAnnotation annotated_stream = 4 [deprecated = true];
    • clearAnnotatedStream

      @Deprecated public Instance.InputResource.Builder clearAnnotatedStream()
      Deprecated.
       If the input resource is VisionAI Stream, the associated annotations
       can be specified using annotated_stream instead.
       
      .google.cloud.visionai.v1.StreamWithAnnotation annotated_stream = 4 [deprecated = true];
    • getAnnotatedStreamBuilder

      @Deprecated public StreamWithAnnotation.Builder getAnnotatedStreamBuilder()
      Deprecated.
       If the input resource is VisionAI Stream, the associated annotations
       can be specified using annotated_stream instead.
       
      .google.cloud.visionai.v1.StreamWithAnnotation annotated_stream = 4 [deprecated = true];
    • getAnnotatedStreamOrBuilder

      @Deprecated public StreamWithAnnotationOrBuilder getAnnotatedStreamOrBuilder()
      Deprecated.
       If the input resource is VisionAI Stream, the associated annotations
       can be specified using annotated_stream instead.
       
      .google.cloud.visionai.v1.StreamWithAnnotation annotated_stream = 4 [deprecated = true];
      Specified by:
      getAnnotatedStreamOrBuilder in interface Instance.InputResourceOrBuilder
    • getDataTypeValue

      public int getDataTypeValue()
       Data type for the current input resource.
       
      .google.cloud.visionai.v1.DataType data_type = 6;
      Specified by:
      getDataTypeValue in interface Instance.InputResourceOrBuilder
      Returns:
      The enum numeric value on the wire for dataType.
    • setDataTypeValue

      public Instance.InputResource.Builder setDataTypeValue(int value)
       Data type for the current input resource.
       
      .google.cloud.visionai.v1.DataType data_type = 6;
      Parameters:
      value - The enum numeric value on the wire for dataType to set.
      Returns:
      This builder for chaining.
    • getDataType

      public DataType getDataType()
       Data type for the current input resource.
       
      .google.cloud.visionai.v1.DataType data_type = 6;
      Specified by:
      getDataType in interface Instance.InputResourceOrBuilder
      Returns:
      The dataType.
    • setDataType

      public Instance.InputResource.Builder setDataType(DataType value)
       Data type for the current input resource.
       
      .google.cloud.visionai.v1.DataType data_type = 6;
      Parameters:
      value - The dataType to set.
      Returns:
      This builder for chaining.
    • clearDataType

      public Instance.InputResource.Builder clearDataType()
       Data type for the current input resource.
       
      .google.cloud.visionai.v1.DataType data_type = 6;
      Returns:
      This builder for chaining.
    • getConsumerNode

      public String getConsumerNode()
       The name of graph node who receives the input resource.
       For example:
       input_resource:
       visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/input-stream-a
       consumer_node: stream-input
       
      string consumer_node = 2;
      Specified by:
      getConsumerNode in interface Instance.InputResourceOrBuilder
      Returns:
      The consumerNode.
    • getConsumerNodeBytes

      public com.google.protobuf.ByteString getConsumerNodeBytes()
       The name of graph node who receives the input resource.
       For example:
       input_resource:
       visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/input-stream-a
       consumer_node: stream-input
       
      string consumer_node = 2;
      Specified by:
      getConsumerNodeBytes in interface Instance.InputResourceOrBuilder
      Returns:
      The bytes for consumerNode.
    • setConsumerNode

      public Instance.InputResource.Builder setConsumerNode(String value)
       The name of graph node who receives the input resource.
       For example:
       input_resource:
       visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/input-stream-a
       consumer_node: stream-input
       
      string consumer_node = 2;
      Parameters:
      value - The consumerNode to set.
      Returns:
      This builder for chaining.
    • clearConsumerNode

      public Instance.InputResource.Builder clearConsumerNode()
       The name of graph node who receives the input resource.
       For example:
       input_resource:
       visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/input-stream-a
       consumer_node: stream-input
       
      string consumer_node = 2;
      Returns:
      This builder for chaining.
    • setConsumerNodeBytes

      public Instance.InputResource.Builder setConsumerNodeBytes(com.google.protobuf.ByteString value)
       The name of graph node who receives the input resource.
       For example:
       input_resource:
       visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/input-stream-a
       consumer_node: stream-input
       
      string consumer_node = 2;
      Parameters:
      value - The bytes for consumerNode to set.
      Returns:
      This builder for chaining.
    • getInputResourceBinding

      public String getInputResourceBinding()
       The specific input resource binding which will consume the current Input
       Resource, can be ignored is there is only 1 input binding.
       
      string input_resource_binding = 3;
      Specified by:
      getInputResourceBinding in interface Instance.InputResourceOrBuilder
      Returns:
      The inputResourceBinding.
    • getInputResourceBindingBytes

      public com.google.protobuf.ByteString getInputResourceBindingBytes()
       The specific input resource binding which will consume the current Input
       Resource, can be ignored is there is only 1 input binding.
       
      string input_resource_binding = 3;
      Specified by:
      getInputResourceBindingBytes in interface Instance.InputResourceOrBuilder
      Returns:
      The bytes for inputResourceBinding.
    • setInputResourceBinding

      public Instance.InputResource.Builder setInputResourceBinding(String value)
       The specific input resource binding which will consume the current Input
       Resource, can be ignored is there is only 1 input binding.
       
      string input_resource_binding = 3;
      Parameters:
      value - The inputResourceBinding to set.
      Returns:
      This builder for chaining.
    • clearInputResourceBinding

      public Instance.InputResource.Builder clearInputResourceBinding()
       The specific input resource binding which will consume the current Input
       Resource, can be ignored is there is only 1 input binding.
       
      string input_resource_binding = 3;
      Returns:
      This builder for chaining.
    • setInputResourceBindingBytes

      public Instance.InputResource.Builder setInputResourceBindingBytes(com.google.protobuf.ByteString value)
       The specific input resource binding which will consume the current Input
       Resource, can be ignored is there is only 1 input binding.
       
      string input_resource_binding = 3;
      Parameters:
      value - The bytes for inputResourceBinding to set.
      Returns:
      This builder for chaining.
    • hasAnnotations

      public boolean hasAnnotations()
       Contains resource annotations.
       
      .google.cloud.visionai.v1.ResourceAnnotations annotations = 5;
      Specified by:
      hasAnnotations in interface Instance.InputResourceOrBuilder
      Returns:
      Whether the annotations field is set.
    • getAnnotations

      public ResourceAnnotations getAnnotations()
       Contains resource annotations.
       
      .google.cloud.visionai.v1.ResourceAnnotations annotations = 5;
      Specified by:
      getAnnotations in interface Instance.InputResourceOrBuilder
      Returns:
      The annotations.
    • setAnnotations

      public Instance.InputResource.Builder setAnnotations(ResourceAnnotations value)
       Contains resource annotations.
       
      .google.cloud.visionai.v1.ResourceAnnotations annotations = 5;
    • setAnnotations

      public Instance.InputResource.Builder setAnnotations(ResourceAnnotations.Builder builderForValue)
       Contains resource annotations.
       
      .google.cloud.visionai.v1.ResourceAnnotations annotations = 5;
    • mergeAnnotations

      public Instance.InputResource.Builder mergeAnnotations(ResourceAnnotations value)
       Contains resource annotations.
       
      .google.cloud.visionai.v1.ResourceAnnotations annotations = 5;
    • clearAnnotations

      public Instance.InputResource.Builder clearAnnotations()
       Contains resource annotations.
       
      .google.cloud.visionai.v1.ResourceAnnotations annotations = 5;
    • getAnnotationsBuilder

      public ResourceAnnotations.Builder getAnnotationsBuilder()
       Contains resource annotations.
       
      .google.cloud.visionai.v1.ResourceAnnotations annotations = 5;
    • getAnnotationsOrBuilder

      public ResourceAnnotationsOrBuilder getAnnotationsOrBuilder()
       Contains resource annotations.
       
      .google.cloud.visionai.v1.ResourceAnnotations annotations = 5;
      Specified by:
      getAnnotationsOrBuilder in interface Instance.InputResourceOrBuilder