Class GstreamerBufferDescriptor.Builder

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

public static final class GstreamerBufferDescriptor.Builder extends com.google.protobuf.GeneratedMessage.Builder<GstreamerBufferDescriptor.Builder> implements GstreamerBufferDescriptorOrBuilder
 The descriptor for a gstreamer buffer payload.
 
Protobuf type google.cloud.visionai.v1.GstreamerBufferDescriptor
  • 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<GstreamerBufferDescriptor.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<GstreamerBufferDescriptor.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<GstreamerBufferDescriptor.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public GstreamerBufferDescriptor.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<GstreamerBufferDescriptor.Builder>
      Throws:
      IOException
    • getCapsString

      public String getCapsString()
       The caps string of the payload.
       
      string caps_string = 1;
      Specified by:
      getCapsString in interface GstreamerBufferDescriptorOrBuilder
      Returns:
      The capsString.
    • getCapsStringBytes

      public com.google.protobuf.ByteString getCapsStringBytes()
       The caps string of the payload.
       
      string caps_string = 1;
      Specified by:
      getCapsStringBytes in interface GstreamerBufferDescriptorOrBuilder
      Returns:
      The bytes for capsString.
    • setCapsString

      public GstreamerBufferDescriptor.Builder setCapsString(String value)
       The caps string of the payload.
       
      string caps_string = 1;
      Parameters:
      value - The capsString to set.
      Returns:
      This builder for chaining.
    • clearCapsString

      public GstreamerBufferDescriptor.Builder clearCapsString()
       The caps string of the payload.
       
      string caps_string = 1;
      Returns:
      This builder for chaining.
    • setCapsStringBytes

      public GstreamerBufferDescriptor.Builder setCapsStringBytes(com.google.protobuf.ByteString value)
       The caps string of the payload.
       
      string caps_string = 1;
      Parameters:
      value - The bytes for capsString to set.
      Returns:
      This builder for chaining.
    • getIsKeyFrame

      public boolean getIsKeyFrame()
       Whether the buffer is a key frame.
       
      bool is_key_frame = 2;
      Specified by:
      getIsKeyFrame in interface GstreamerBufferDescriptorOrBuilder
      Returns:
      The isKeyFrame.
    • setIsKeyFrame

      public GstreamerBufferDescriptor.Builder setIsKeyFrame(boolean value)
       Whether the buffer is a key frame.
       
      bool is_key_frame = 2;
      Parameters:
      value - The isKeyFrame to set.
      Returns:
      This builder for chaining.
    • clearIsKeyFrame

      public GstreamerBufferDescriptor.Builder clearIsKeyFrame()
       Whether the buffer is a key frame.
       
      bool is_key_frame = 2;
      Returns:
      This builder for chaining.
    • hasPtsTime

      public boolean hasPtsTime()
       PTS of the frame.
       
      .google.protobuf.Timestamp pts_time = 3;
      Specified by:
      hasPtsTime in interface GstreamerBufferDescriptorOrBuilder
      Returns:
      Whether the ptsTime field is set.
    • getPtsTime

      public com.google.protobuf.Timestamp getPtsTime()
       PTS of the frame.
       
      .google.protobuf.Timestamp pts_time = 3;
      Specified by:
      getPtsTime in interface GstreamerBufferDescriptorOrBuilder
      Returns:
      The ptsTime.
    • setPtsTime

      public GstreamerBufferDescriptor.Builder setPtsTime(com.google.protobuf.Timestamp value)
       PTS of the frame.
       
      .google.protobuf.Timestamp pts_time = 3;
    • setPtsTime

      public GstreamerBufferDescriptor.Builder setPtsTime(com.google.protobuf.Timestamp.Builder builderForValue)
       PTS of the frame.
       
      .google.protobuf.Timestamp pts_time = 3;
    • mergePtsTime

      public GstreamerBufferDescriptor.Builder mergePtsTime(com.google.protobuf.Timestamp value)
       PTS of the frame.
       
      .google.protobuf.Timestamp pts_time = 3;
    • clearPtsTime

      public GstreamerBufferDescriptor.Builder clearPtsTime()
       PTS of the frame.
       
      .google.protobuf.Timestamp pts_time = 3;
    • getPtsTimeBuilder

      public com.google.protobuf.Timestamp.Builder getPtsTimeBuilder()
       PTS of the frame.
       
      .google.protobuf.Timestamp pts_time = 3;
    • getPtsTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getPtsTimeOrBuilder()
       PTS of the frame.
       
      .google.protobuf.Timestamp pts_time = 3;
      Specified by:
      getPtsTimeOrBuilder in interface GstreamerBufferDescriptorOrBuilder
    • hasDtsTime

      public boolean hasDtsTime()
       DTS of the frame.
       
      .google.protobuf.Timestamp dts_time = 4;
      Specified by:
      hasDtsTime in interface GstreamerBufferDescriptorOrBuilder
      Returns:
      Whether the dtsTime field is set.
    • getDtsTime

      public com.google.protobuf.Timestamp getDtsTime()
       DTS of the frame.
       
      .google.protobuf.Timestamp dts_time = 4;
      Specified by:
      getDtsTime in interface GstreamerBufferDescriptorOrBuilder
      Returns:
      The dtsTime.
    • setDtsTime

      public GstreamerBufferDescriptor.Builder setDtsTime(com.google.protobuf.Timestamp value)
       DTS of the frame.
       
      .google.protobuf.Timestamp dts_time = 4;
    • setDtsTime

      public GstreamerBufferDescriptor.Builder setDtsTime(com.google.protobuf.Timestamp.Builder builderForValue)
       DTS of the frame.
       
      .google.protobuf.Timestamp dts_time = 4;
    • mergeDtsTime

      public GstreamerBufferDescriptor.Builder mergeDtsTime(com.google.protobuf.Timestamp value)
       DTS of the frame.
       
      .google.protobuf.Timestamp dts_time = 4;
    • clearDtsTime

      public GstreamerBufferDescriptor.Builder clearDtsTime()
       DTS of the frame.
       
      .google.protobuf.Timestamp dts_time = 4;
    • getDtsTimeBuilder

      public com.google.protobuf.Timestamp.Builder getDtsTimeBuilder()
       DTS of the frame.
       
      .google.protobuf.Timestamp dts_time = 4;
    • getDtsTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getDtsTimeOrBuilder()
       DTS of the frame.
       
      .google.protobuf.Timestamp dts_time = 4;
      Specified by:
      getDtsTimeOrBuilder in interface GstreamerBufferDescriptorOrBuilder
    • hasDuration

      public boolean hasDuration()
       Duration of the frame.
       
      .google.protobuf.Duration duration = 5;
      Specified by:
      hasDuration in interface GstreamerBufferDescriptorOrBuilder
      Returns:
      Whether the duration field is set.
    • getDuration

      public com.google.protobuf.Duration getDuration()
       Duration of the frame.
       
      .google.protobuf.Duration duration = 5;
      Specified by:
      getDuration in interface GstreamerBufferDescriptorOrBuilder
      Returns:
      The duration.
    • setDuration

      public GstreamerBufferDescriptor.Builder setDuration(com.google.protobuf.Duration value)
       Duration of the frame.
       
      .google.protobuf.Duration duration = 5;
    • setDuration

      public GstreamerBufferDescriptor.Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
       Duration of the frame.
       
      .google.protobuf.Duration duration = 5;
    • mergeDuration

      public GstreamerBufferDescriptor.Builder mergeDuration(com.google.protobuf.Duration value)
       Duration of the frame.
       
      .google.protobuf.Duration duration = 5;
    • clearDuration

      public GstreamerBufferDescriptor.Builder clearDuration()
       Duration of the frame.
       
      .google.protobuf.Duration duration = 5;
    • getDurationBuilder

      public com.google.protobuf.Duration.Builder getDurationBuilder()
       Duration of the frame.
       
      .google.protobuf.Duration duration = 5;
    • getDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
       Duration of the frame.
       
      .google.protobuf.Duration duration = 5;
      Specified by:
      getDurationOrBuilder in interface GstreamerBufferDescriptorOrBuilder