Class PacketType.TypeDescriptor.Builder

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

public static final class PacketType.TypeDescriptor.Builder extends com.google.protobuf.GeneratedMessage.Builder<PacketType.TypeDescriptor.Builder> implements PacketType.TypeDescriptorOrBuilder
 The message that fully specifies the type of the packet.
 
Protobuf type google.cloud.visionai.v1.PacketType.TypeDescriptor
  • 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<PacketType.TypeDescriptor.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<PacketType.TypeDescriptor.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<PacketType.TypeDescriptor.Builder>
    • getDefaultInstanceForType

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

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

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

      public PacketType.TypeDescriptor.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<PacketType.TypeDescriptor.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<PacketType.TypeDescriptor.Builder>
    • mergeFrom

      public PacketType.TypeDescriptor.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<PacketType.TypeDescriptor.Builder>
      Throws:
      IOException
    • getTypeDetailsCase

      public PacketType.TypeDescriptor.TypeDetailsCase getTypeDetailsCase()
      Specified by:
      getTypeDetailsCase in interface PacketType.TypeDescriptorOrBuilder
    • clearTypeDetails

      public PacketType.TypeDescriptor.Builder clearTypeDetails()
    • hasGstreamerBufferDescriptor

      public boolean hasGstreamerBufferDescriptor()
       GstreamerBufferDescriptor is the descriptor for gstreamer buffer type.
       
      .google.cloud.visionai.v1.GstreamerBufferDescriptor gstreamer_buffer_descriptor = 2;
      Specified by:
      hasGstreamerBufferDescriptor in interface PacketType.TypeDescriptorOrBuilder
      Returns:
      Whether the gstreamerBufferDescriptor field is set.
    • getGstreamerBufferDescriptor

      public GstreamerBufferDescriptor getGstreamerBufferDescriptor()
       GstreamerBufferDescriptor is the descriptor for gstreamer buffer type.
       
      .google.cloud.visionai.v1.GstreamerBufferDescriptor gstreamer_buffer_descriptor = 2;
      Specified by:
      getGstreamerBufferDescriptor in interface PacketType.TypeDescriptorOrBuilder
      Returns:
      The gstreamerBufferDescriptor.
    • setGstreamerBufferDescriptor

      public PacketType.TypeDescriptor.Builder setGstreamerBufferDescriptor(GstreamerBufferDescriptor value)
       GstreamerBufferDescriptor is the descriptor for gstreamer buffer type.
       
      .google.cloud.visionai.v1.GstreamerBufferDescriptor gstreamer_buffer_descriptor = 2;
    • setGstreamerBufferDescriptor

      public PacketType.TypeDescriptor.Builder setGstreamerBufferDescriptor(GstreamerBufferDescriptor.Builder builderForValue)
       GstreamerBufferDescriptor is the descriptor for gstreamer buffer type.
       
      .google.cloud.visionai.v1.GstreamerBufferDescriptor gstreamer_buffer_descriptor = 2;
    • mergeGstreamerBufferDescriptor

      public PacketType.TypeDescriptor.Builder mergeGstreamerBufferDescriptor(GstreamerBufferDescriptor value)
       GstreamerBufferDescriptor is the descriptor for gstreamer buffer type.
       
      .google.cloud.visionai.v1.GstreamerBufferDescriptor gstreamer_buffer_descriptor = 2;
    • clearGstreamerBufferDescriptor

      public PacketType.TypeDescriptor.Builder clearGstreamerBufferDescriptor()
       GstreamerBufferDescriptor is the descriptor for gstreamer buffer type.
       
      .google.cloud.visionai.v1.GstreamerBufferDescriptor gstreamer_buffer_descriptor = 2;
    • getGstreamerBufferDescriptorBuilder

      public GstreamerBufferDescriptor.Builder getGstreamerBufferDescriptorBuilder()
       GstreamerBufferDescriptor is the descriptor for gstreamer buffer type.
       
      .google.cloud.visionai.v1.GstreamerBufferDescriptor gstreamer_buffer_descriptor = 2;
    • getGstreamerBufferDescriptorOrBuilder

      public GstreamerBufferDescriptorOrBuilder getGstreamerBufferDescriptorOrBuilder()
       GstreamerBufferDescriptor is the descriptor for gstreamer buffer type.
       
      .google.cloud.visionai.v1.GstreamerBufferDescriptor gstreamer_buffer_descriptor = 2;
      Specified by:
      getGstreamerBufferDescriptorOrBuilder in interface PacketType.TypeDescriptorOrBuilder
    • hasRawImageDescriptor

      public boolean hasRawImageDescriptor()
       RawImageDescriptor is the descriptor for the raw image type.
       
      .google.cloud.visionai.v1.RawImageDescriptor raw_image_descriptor = 3;
      Specified by:
      hasRawImageDescriptor in interface PacketType.TypeDescriptorOrBuilder
      Returns:
      Whether the rawImageDescriptor field is set.
    • getRawImageDescriptor

      public RawImageDescriptor getRawImageDescriptor()
       RawImageDescriptor is the descriptor for the raw image type.
       
      .google.cloud.visionai.v1.RawImageDescriptor raw_image_descriptor = 3;
      Specified by:
      getRawImageDescriptor in interface PacketType.TypeDescriptorOrBuilder
      Returns:
      The rawImageDescriptor.
    • setRawImageDescriptor

      public PacketType.TypeDescriptor.Builder setRawImageDescriptor(RawImageDescriptor value)
       RawImageDescriptor is the descriptor for the raw image type.
       
      .google.cloud.visionai.v1.RawImageDescriptor raw_image_descriptor = 3;
    • setRawImageDescriptor

      public PacketType.TypeDescriptor.Builder setRawImageDescriptor(RawImageDescriptor.Builder builderForValue)
       RawImageDescriptor is the descriptor for the raw image type.
       
      .google.cloud.visionai.v1.RawImageDescriptor raw_image_descriptor = 3;
    • mergeRawImageDescriptor

      public PacketType.TypeDescriptor.Builder mergeRawImageDescriptor(RawImageDescriptor value)
       RawImageDescriptor is the descriptor for the raw image type.
       
      .google.cloud.visionai.v1.RawImageDescriptor raw_image_descriptor = 3;
    • clearRawImageDescriptor

      public PacketType.TypeDescriptor.Builder clearRawImageDescriptor()
       RawImageDescriptor is the descriptor for the raw image type.
       
      .google.cloud.visionai.v1.RawImageDescriptor raw_image_descriptor = 3;
    • getRawImageDescriptorBuilder

      public RawImageDescriptor.Builder getRawImageDescriptorBuilder()
       RawImageDescriptor is the descriptor for the raw image type.
       
      .google.cloud.visionai.v1.RawImageDescriptor raw_image_descriptor = 3;
    • getRawImageDescriptorOrBuilder

      public RawImageDescriptorOrBuilder getRawImageDescriptorOrBuilder()
       RawImageDescriptor is the descriptor for the raw image type.
       
      .google.cloud.visionai.v1.RawImageDescriptor raw_image_descriptor = 3;
      Specified by:
      getRawImageDescriptorOrBuilder in interface PacketType.TypeDescriptorOrBuilder
    • getType

      public String getType()
       The type of the packet. Its possible values is codec dependent.
      
       The fully qualified type name is always the concatenation of the
       value in `type_class` together with the value in `type`, separated by a
       '/'.
      
       Note that specific codecs can define their own type hierarchy, and so the
       type string here can in fact be separated by multiple '/'s of its own.
      
       Please see the open source SDK for specific codec documentation.
       
      string type = 1;
      Specified by:
      getType in interface PacketType.TypeDescriptorOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       The type of the packet. Its possible values is codec dependent.
      
       The fully qualified type name is always the concatenation of the
       value in `type_class` together with the value in `type`, separated by a
       '/'.
      
       Note that specific codecs can define their own type hierarchy, and so the
       type string here can in fact be separated by multiple '/'s of its own.
      
       Please see the open source SDK for specific codec documentation.
       
      string type = 1;
      Specified by:
      getTypeBytes in interface PacketType.TypeDescriptorOrBuilder
      Returns:
      The bytes for type.
    • setType

      public PacketType.TypeDescriptor.Builder setType(String value)
       The type of the packet. Its possible values is codec dependent.
      
       The fully qualified type name is always the concatenation of the
       value in `type_class` together with the value in `type`, separated by a
       '/'.
      
       Note that specific codecs can define their own type hierarchy, and so the
       type string here can in fact be separated by multiple '/'s of its own.
      
       Please see the open source SDK for specific codec documentation.
       
      string type = 1;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

       The type of the packet. Its possible values is codec dependent.
      
       The fully qualified type name is always the concatenation of the
       value in `type_class` together with the value in `type`, separated by a
       '/'.
      
       Note that specific codecs can define their own type hierarchy, and so the
       type string here can in fact be separated by multiple '/'s of its own.
      
       Please see the open source SDK for specific codec documentation.
       
      string type = 1;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public PacketType.TypeDescriptor.Builder setTypeBytes(com.google.protobuf.ByteString value)
       The type of the packet. Its possible values is codec dependent.
      
       The fully qualified type name is always the concatenation of the
       value in `type_class` together with the value in `type`, separated by a
       '/'.
      
       Note that specific codecs can define their own type hierarchy, and so the
       type string here can in fact be separated by multiple '/'s of its own.
      
       Please see the open source SDK for specific codec documentation.
       
      string type = 1;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.