Class DvrSession

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.video.livestream.v1.DvrSession
All Implemented Interfaces:
DvrSessionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class DvrSession extends com.google.protobuf.GeneratedMessage implements DvrSessionOrBuilder
 DvrSession is a sub-resource under channel. Each DvrSession represents a DVR
 recording of the live stream for a specific time range.
 
Protobuf type google.cloud.video.livestream.v1.DvrSession
See Also:
  • Field Details

  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getName

      public String getName()
       Identifier. The resource name of the DVR session, in the following format:
       `projects/{project}/locations/{location}/channels/{channelId}/dvrSessions/{dvrSessionId}`.
       `{dvrSessionId}` is a user-specified resource id that conforms to the
       following criteria:
      
       1. 1 character minimum, 63 characters maximum
       2. Only contains letters, digits, underscores, and hyphens
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface DvrSessionOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The resource name of the DVR session, in the following format:
       `projects/{project}/locations/{location}/channels/{channelId}/dvrSessions/{dvrSessionId}`.
       `{dvrSessionId}` is a user-specified resource id that conforms to the
       following criteria:
      
       1. 1 character minimum, 63 characters maximum
       2. Only contains letters, digits, underscores, and hyphens
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface DvrSessionOrBuilder
      Returns:
      The bytes for name.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface DvrSessionOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface DvrSessionOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface DvrSessionOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The update time.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface DvrSessionOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The update time.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface DvrSessionOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The update time.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface DvrSessionOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: DvrSessionOrBuilder
       Optional. User-defined key/value metadata.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface DvrSessionOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. User-defined key/value metadata.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface DvrSessionOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface DvrSessionOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. User-defined key/value metadata.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface DvrSessionOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. User-defined key/value metadata.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface DvrSessionOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. User-defined key/value metadata.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface DvrSessionOrBuilder
    • getStateValue

      public int getStateValue()
       Output only. The state of the clip.
       
      .google.cloud.video.livestream.v1.DvrSession.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface DvrSessionOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • getState

      public DvrSession.State getState()
       Output only. The state of the clip.
       
      .google.cloud.video.livestream.v1.DvrSession.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface DvrSessionOrBuilder
      Returns:
      The state.
    • hasError

      public boolean hasError()
       Output only. An error object that describes the reason for the failure.
       This property only presents when `state` is `FAILED`.
       
      .google.rpc.Status error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasError in interface DvrSessionOrBuilder
      Returns:
      Whether the error field is set.
    • getError

      public Status getError()
       Output only. An error object that describes the reason for the failure.
       This property only presents when `state` is `FAILED`.
       
      .google.rpc.Status error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getError in interface DvrSessionOrBuilder
      Returns:
      The error.
    • getErrorOrBuilder

      public StatusOrBuilder getErrorOrBuilder()
       Output only. An error object that describes the reason for the failure.
       This property only presents when `state` is `FAILED`.
       
      .google.rpc.Status error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getErrorOrBuilder in interface DvrSessionOrBuilder
    • getDvrManifestsList

      public List<DvrSession.DvrManifest> getDvrManifestsList()
       Required. A list of DVR manifests. Currently only one DVR manifest is
       allowed.
       
      repeated .google.cloud.video.livestream.v1.DvrSession.DvrManifest dvr_manifests = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDvrManifestsList in interface DvrSessionOrBuilder
    • getDvrManifestsOrBuilderList

      public List<? extends DvrSession.DvrManifestOrBuilder> getDvrManifestsOrBuilderList()
       Required. A list of DVR manifests. Currently only one DVR manifest is
       allowed.
       
      repeated .google.cloud.video.livestream.v1.DvrSession.DvrManifest dvr_manifests = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDvrManifestsOrBuilderList in interface DvrSessionOrBuilder
    • getDvrManifestsCount

      public int getDvrManifestsCount()
       Required. A list of DVR manifests. Currently only one DVR manifest is
       allowed.
       
      repeated .google.cloud.video.livestream.v1.DvrSession.DvrManifest dvr_manifests = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDvrManifestsCount in interface DvrSessionOrBuilder
    • getDvrManifests

      public DvrSession.DvrManifest getDvrManifests(int index)
       Required. A list of DVR manifests. Currently only one DVR manifest is
       allowed.
       
      repeated .google.cloud.video.livestream.v1.DvrSession.DvrManifest dvr_manifests = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDvrManifests in interface DvrSessionOrBuilder
    • getDvrManifestsOrBuilder

      public DvrSession.DvrManifestOrBuilder getDvrManifestsOrBuilder(int index)
       Required. A list of DVR manifests. Currently only one DVR manifest is
       allowed.
       
      repeated .google.cloud.video.livestream.v1.DvrSession.DvrManifest dvr_manifests = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDvrManifestsOrBuilder in interface DvrSessionOrBuilder
    • getDvrWindowsList

      public List<DvrSession.DvrWindow> getDvrWindowsList()
       Required. The specified ranges of segments to generate a DVR recording.
       
      repeated .google.cloud.video.livestream.v1.DvrSession.DvrWindow dvr_windows = 8 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDvrWindowsList in interface DvrSessionOrBuilder
    • getDvrWindowsOrBuilderList

      public List<? extends DvrSession.DvrWindowOrBuilder> getDvrWindowsOrBuilderList()
       Required. The specified ranges of segments to generate a DVR recording.
       
      repeated .google.cloud.video.livestream.v1.DvrSession.DvrWindow dvr_windows = 8 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDvrWindowsOrBuilderList in interface DvrSessionOrBuilder
    • getDvrWindowsCount

      public int getDvrWindowsCount()
       Required. The specified ranges of segments to generate a DVR recording.
       
      repeated .google.cloud.video.livestream.v1.DvrSession.DvrWindow dvr_windows = 8 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDvrWindowsCount in interface DvrSessionOrBuilder
    • getDvrWindows

      public DvrSession.DvrWindow getDvrWindows(int index)
       Required. The specified ranges of segments to generate a DVR recording.
       
      repeated .google.cloud.video.livestream.v1.DvrSession.DvrWindow dvr_windows = 8 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDvrWindows in interface DvrSessionOrBuilder
    • getDvrWindowsOrBuilder

      public DvrSession.DvrWindowOrBuilder getDvrWindowsOrBuilder(int index)
       Required. The specified ranges of segments to generate a DVR recording.
       
      repeated .google.cloud.video.livestream.v1.DvrSession.DvrWindow dvr_windows = 8 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDvrWindowsOrBuilder in interface DvrSessionOrBuilder
    • 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 DvrSession parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static DvrSession parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static DvrSession parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static DvrSession.Builder newBuilder()
    • newBuilder

      public static DvrSession.Builder newBuilder(DvrSession prototype)
    • toBuilder

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

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

      public static DvrSession getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<DvrSession> 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 DvrSession getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder