Class ProcessorIOSpec.GraphInputChannelSpec.Builder

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

public static final class ProcessorIOSpec.GraphInputChannelSpec.Builder extends com.google.protobuf.GeneratedMessage.Builder<ProcessorIOSpec.GraphInputChannelSpec.Builder> implements ProcessorIOSpec.GraphInputChannelSpecOrBuilder
 Message for input channel specification.
 
Protobuf type google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec
  • 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<ProcessorIOSpec.GraphInputChannelSpec.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<ProcessorIOSpec.GraphInputChannelSpec.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<ProcessorIOSpec.GraphInputChannelSpec.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ProcessorIOSpec.GraphInputChannelSpec.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<ProcessorIOSpec.GraphInputChannelSpec.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<ProcessorIOSpec.GraphInputChannelSpec.Builder>
    • mergeFrom

      public ProcessorIOSpec.GraphInputChannelSpec.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<ProcessorIOSpec.GraphInputChannelSpec.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The name of the current input channel.
       
      string name = 1;
      Specified by:
      getName in interface ProcessorIOSpec.GraphInputChannelSpecOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the current input channel.
       
      string name = 1;
      Specified by:
      getNameBytes in interface ProcessorIOSpec.GraphInputChannelSpecOrBuilder
      Returns:
      The bytes for name.
    • setName

       The name of the current input channel.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       The name of the current input channel.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public ProcessorIOSpec.GraphInputChannelSpec.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the current input channel.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDataTypeValue

      public int getDataTypeValue()
       The data types of the current input channel.
       When this field has more than 1 value, it means this input channel can be
       connected to either of these different data types.
       
      .google.cloud.visionai.v1.DataType data_type = 2;
      Specified by:
      getDataTypeValue in interface ProcessorIOSpec.GraphInputChannelSpecOrBuilder
      Returns:
      The enum numeric value on the wire for dataType.
    • setDataTypeValue

      public ProcessorIOSpec.GraphInputChannelSpec.Builder setDataTypeValue(int value)
       The data types of the current input channel.
       When this field has more than 1 value, it means this input channel can be
       connected to either of these different data types.
       
      .google.cloud.visionai.v1.DataType data_type = 2;
      Parameters:
      value - The enum numeric value on the wire for dataType to set.
      Returns:
      This builder for chaining.
    • getDataType

      public DataType getDataType()
       The data types of the current input channel.
       When this field has more than 1 value, it means this input channel can be
       connected to either of these different data types.
       
      .google.cloud.visionai.v1.DataType data_type = 2;
      Specified by:
      getDataType in interface ProcessorIOSpec.GraphInputChannelSpecOrBuilder
      Returns:
      The dataType.
    • setDataType

       The data types of the current input channel.
       When this field has more than 1 value, it means this input channel can be
       connected to either of these different data types.
       
      .google.cloud.visionai.v1.DataType data_type = 2;
      Parameters:
      value - The dataType to set.
      Returns:
      This builder for chaining.
    • clearDataType

       The data types of the current input channel.
       When this field has more than 1 value, it means this input channel can be
       connected to either of these different data types.
       
      .google.cloud.visionai.v1.DataType data_type = 2;
      Returns:
      This builder for chaining.
    • getAcceptedDataTypeUrisList

      public com.google.protobuf.ProtocolStringList getAcceptedDataTypeUrisList()
       If specified, only those detailed data types can be connected to the
       processor. For example, jpeg stream for MEDIA, or PredictionResult proto
       for PROTO type. If unspecified, then any proto is accepted.
       
      repeated string accepted_data_type_uris = 5;
      Specified by:
      getAcceptedDataTypeUrisList in interface ProcessorIOSpec.GraphInputChannelSpecOrBuilder
      Returns:
      A list containing the acceptedDataTypeUris.
    • getAcceptedDataTypeUrisCount

      public int getAcceptedDataTypeUrisCount()
       If specified, only those detailed data types can be connected to the
       processor. For example, jpeg stream for MEDIA, or PredictionResult proto
       for PROTO type. If unspecified, then any proto is accepted.
       
      repeated string accepted_data_type_uris = 5;
      Specified by:
      getAcceptedDataTypeUrisCount in interface ProcessorIOSpec.GraphInputChannelSpecOrBuilder
      Returns:
      The count of acceptedDataTypeUris.
    • getAcceptedDataTypeUris

      public String getAcceptedDataTypeUris(int index)
       If specified, only those detailed data types can be connected to the
       processor. For example, jpeg stream for MEDIA, or PredictionResult proto
       for PROTO type. If unspecified, then any proto is accepted.
       
      repeated string accepted_data_type_uris = 5;
      Specified by:
      getAcceptedDataTypeUris in interface ProcessorIOSpec.GraphInputChannelSpecOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The acceptedDataTypeUris at the given index.
    • getAcceptedDataTypeUrisBytes

      public com.google.protobuf.ByteString getAcceptedDataTypeUrisBytes(int index)
       If specified, only those detailed data types can be connected to the
       processor. For example, jpeg stream for MEDIA, or PredictionResult proto
       for PROTO type. If unspecified, then any proto is accepted.
       
      repeated string accepted_data_type_uris = 5;
      Specified by:
      getAcceptedDataTypeUrisBytes in interface ProcessorIOSpec.GraphInputChannelSpecOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the acceptedDataTypeUris at the given index.
    • setAcceptedDataTypeUris

      public ProcessorIOSpec.GraphInputChannelSpec.Builder setAcceptedDataTypeUris(int index, String value)
       If specified, only those detailed data types can be connected to the
       processor. For example, jpeg stream for MEDIA, or PredictionResult proto
       for PROTO type. If unspecified, then any proto is accepted.
       
      repeated string accepted_data_type_uris = 5;
      Parameters:
      index - The index to set the value at.
      value - The acceptedDataTypeUris to set.
      Returns:
      This builder for chaining.
    • addAcceptedDataTypeUris

      public ProcessorIOSpec.GraphInputChannelSpec.Builder addAcceptedDataTypeUris(String value)
       If specified, only those detailed data types can be connected to the
       processor. For example, jpeg stream for MEDIA, or PredictionResult proto
       for PROTO type. If unspecified, then any proto is accepted.
       
      repeated string accepted_data_type_uris = 5;
      Parameters:
      value - The acceptedDataTypeUris to add.
      Returns:
      This builder for chaining.
    • addAllAcceptedDataTypeUris

      public ProcessorIOSpec.GraphInputChannelSpec.Builder addAllAcceptedDataTypeUris(Iterable<String> values)
       If specified, only those detailed data types can be connected to the
       processor. For example, jpeg stream for MEDIA, or PredictionResult proto
       for PROTO type. If unspecified, then any proto is accepted.
       
      repeated string accepted_data_type_uris = 5;
      Parameters:
      values - The acceptedDataTypeUris to add.
      Returns:
      This builder for chaining.
    • clearAcceptedDataTypeUris

      public ProcessorIOSpec.GraphInputChannelSpec.Builder clearAcceptedDataTypeUris()
       If specified, only those detailed data types can be connected to the
       processor. For example, jpeg stream for MEDIA, or PredictionResult proto
       for PROTO type. If unspecified, then any proto is accepted.
       
      repeated string accepted_data_type_uris = 5;
      Returns:
      This builder for chaining.
    • addAcceptedDataTypeUrisBytes

      public ProcessorIOSpec.GraphInputChannelSpec.Builder addAcceptedDataTypeUrisBytes(com.google.protobuf.ByteString value)
       If specified, only those detailed data types can be connected to the
       processor. For example, jpeg stream for MEDIA, or PredictionResult proto
       for PROTO type. If unspecified, then any proto is accepted.
       
      repeated string accepted_data_type_uris = 5;
      Parameters:
      value - The bytes of the acceptedDataTypeUris to add.
      Returns:
      This builder for chaining.
    • getRequired

      public boolean getRequired()
       Whether the current input channel is required by the processor.
       For example, for a processor with required video input and optional audio
       input, if video input is missing, the application will be rejected while
       the audio input can be missing as long as the video input exists.
       
      bool required = 3;
      Specified by:
      getRequired in interface ProcessorIOSpec.GraphInputChannelSpecOrBuilder
      Returns:
      The required.
    • setRequired

      public ProcessorIOSpec.GraphInputChannelSpec.Builder setRequired(boolean value)
       Whether the current input channel is required by the processor.
       For example, for a processor with required video input and optional audio
       input, if video input is missing, the application will be rejected while
       the audio input can be missing as long as the video input exists.
       
      bool required = 3;
      Parameters:
      value - The required to set.
      Returns:
      This builder for chaining.
    • clearRequired

       Whether the current input channel is required by the processor.
       For example, for a processor with required video input and optional audio
       input, if video input is missing, the application will be rejected while
       the audio input can be missing as long as the video input exists.
       
      bool required = 3;
      Returns:
      This builder for chaining.
    • getMaxConnectionAllowed

      public long getMaxConnectionAllowed()
       How many input edges can be connected to this input channel. 0 means
       unlimited.
       
      int64 max_connection_allowed = 4;
      Specified by:
      getMaxConnectionAllowed in interface ProcessorIOSpec.GraphInputChannelSpecOrBuilder
      Returns:
      The maxConnectionAllowed.
    • setMaxConnectionAllowed

      public ProcessorIOSpec.GraphInputChannelSpec.Builder setMaxConnectionAllowed(long value)
       How many input edges can be connected to this input channel. 0 means
       unlimited.
       
      int64 max_connection_allowed = 4;
      Parameters:
      value - The maxConnectionAllowed to set.
      Returns:
      This builder for chaining.
    • clearMaxConnectionAllowed

      public ProcessorIOSpec.GraphInputChannelSpec.Builder clearMaxConnectionAllowed()
       How many input edges can be connected to this input channel. 0 means
       unlimited.
       
      int64 max_connection_allowed = 4;
      Returns:
      This builder for chaining.