Class Instance.InputResource

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

public static final class Instance.InputResource extends com.google.protobuf.GeneratedMessage implements Instance.InputResourceOrBuilder
 Message of input resource used in one application instance.
 
Protobuf type google.cloud.visionai.v1.Instance.InputResource
See Also:
  • Field Details

    • INPUT_RESOURCE_FIELD_NUMBER

      public static final int INPUT_RESOURCE_FIELD_NUMBER
      See Also:
    • ANNOTATED_STREAM_FIELD_NUMBER

      public static final int ANNOTATED_STREAM_FIELD_NUMBER
      See Also:
    • DATA_TYPE_FIELD_NUMBER

      public static final int DATA_TYPE_FIELD_NUMBER
      See Also:
    • CONSUMER_NODE_FIELD_NUMBER

      public static final int CONSUMER_NODE_FIELD_NUMBER
      See Also:
    • INPUT_RESOURCE_BINDING_FIELD_NUMBER

      public static final int INPUT_RESOURCE_BINDING_FIELD_NUMBER
      See Also:
    • ANNOTATIONS_FIELD_NUMBER

      public static final int ANNOTATIONS_FIELD_NUMBER
      See Also:
  • 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
    • getInputResourceInformationCase

      public Instance.InputResource.InputResourceInformationCase getInputResourceInformationCase()
      Specified by:
      getInputResourceInformationCase in interface Instance.InputResourceOrBuilder
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • getAnnotationsOrBuilder

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

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Instance.InputResource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Instance.InputResource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Instance.InputResource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Instance.InputResource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Instance.InputResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Instance.InputResource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Instance.InputResource parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Instance.InputResource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Instance.InputResource parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Instance.InputResource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Instance.InputResource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Instance.InputResource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static Instance.InputResource.Builder newBuilder()
    • newBuilder

      public static Instance.InputResource.Builder newBuilder(Instance.InputResource prototype)
    • toBuilder

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

      protected Instance.InputResource.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Instance.InputResource getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Instance.InputResource> parser()
    • getParserForType

      public com.google.protobuf.Parser<Instance.InputResource> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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