Class Distribution

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

@Generated public final class Distribution extends com.google.protobuf.GeneratedMessage implements DistributionOrBuilder
 Distribution configuration.
 
Protobuf type google.cloud.video.livestream.v1.Distribution
See Also:
  • Field Details

  • 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
    • getEndpointCase

      public Distribution.EndpointCase getEndpointCase()
      Specified by:
      getEndpointCase in interface DistributionOrBuilder
    • getKey

      public String getKey()
       Required. A unique key for this distribution. The key must be 1-63
       characters in length. The key must begin and end with a letter (regardless
       of case) or a number, but can contain dashes or underscores in between.
       
      string key = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKey in interface DistributionOrBuilder
      Returns:
      The key.
    • getKeyBytes

      public com.google.protobuf.ByteString getKeyBytes()
       Required. A unique key for this distribution. The key must be 1-63
       characters in length. The key must begin and end with a letter (regardless
       of case) or a number, but can contain dashes or underscores in between.
       
      string key = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKeyBytes in interface DistributionOrBuilder
      Returns:
      The bytes for key.
    • getDistributionStream

      public String getDistributionStream()
       Required. `DistributionStream`
       [key][google.cloud.video.livestream.v1.DistributionStream.key]s that should
       appear in this distribution output.
      
       - For SRT protocol, only `ts` distribution streams can be specified.
       - For RTMP protocol, only `flv` distribution streams can be specified.
       
      string distribution_stream = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDistributionStream in interface DistributionOrBuilder
      Returns:
      The distributionStream.
    • getDistributionStreamBytes

      public com.google.protobuf.ByteString getDistributionStreamBytes()
       Required. `DistributionStream`
       [key][google.cloud.video.livestream.v1.DistributionStream.key]s that should
       appear in this distribution output.
      
       - For SRT protocol, only `ts` distribution streams can be specified.
       - For RTMP protocol, only `flv` distribution streams can be specified.
       
      string distribution_stream = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDistributionStreamBytes in interface DistributionOrBuilder
      Returns:
      The bytes for distributionStream.
    • getStateValue

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

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

      public boolean hasError()
       Output only. Only present when the `state` is `ERROR`. The reason for the
       error state of the distribution.
       
      .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasError in interface DistributionOrBuilder
      Returns:
      Whether the error field is set.
    • getError

      public Status getError()
       Output only. Only present when the `state` is `ERROR`. The reason for the
       error state of the distribution.
       
      .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getError in interface DistributionOrBuilder
      Returns:
      The error.
    • getErrorOrBuilder

      public StatusOrBuilder getErrorOrBuilder()
       Output only. Only present when the `state` is `ERROR`. The reason for the
       error state of the distribution.
       
      .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getErrorOrBuilder in interface DistributionOrBuilder
    • hasSrtPush

      public boolean hasSrtPush()
       Output endpoint using SRT_PUSH.
       
      .google.cloud.video.livestream.v1.SrtPushOutputEndpoint srt_push = 5;
      Specified by:
      hasSrtPush in interface DistributionOrBuilder
      Returns:
      Whether the srtPush field is set.
    • getSrtPush

      public SrtPushOutputEndpoint getSrtPush()
       Output endpoint using SRT_PUSH.
       
      .google.cloud.video.livestream.v1.SrtPushOutputEndpoint srt_push = 5;
      Specified by:
      getSrtPush in interface DistributionOrBuilder
      Returns:
      The srtPush.
    • getSrtPushOrBuilder

      public SrtPushOutputEndpointOrBuilder getSrtPushOrBuilder()
       Output endpoint using SRT_PUSH.
       
      .google.cloud.video.livestream.v1.SrtPushOutputEndpoint srt_push = 5;
      Specified by:
      getSrtPushOrBuilder in interface DistributionOrBuilder
    • hasRtmpPush

      public boolean hasRtmpPush()
       Output endpoint using RTMP_PUSH.
       
      .google.cloud.video.livestream.v1.RtmpPushOutputEndpoint rtmp_push = 6;
      Specified by:
      hasRtmpPush in interface DistributionOrBuilder
      Returns:
      Whether the rtmpPush field is set.
    • getRtmpPush

      public RtmpPushOutputEndpoint getRtmpPush()
       Output endpoint using RTMP_PUSH.
       
      .google.cloud.video.livestream.v1.RtmpPushOutputEndpoint rtmp_push = 6;
      Specified by:
      getRtmpPush in interface DistributionOrBuilder
      Returns:
      The rtmpPush.
    • getRtmpPushOrBuilder

      public RtmpPushOutputEndpointOrBuilder getRtmpPushOrBuilder()
       Output endpoint using RTMP_PUSH.
       
      .google.cloud.video.livestream.v1.RtmpPushOutputEndpoint rtmp_push = 6;
      Specified by:
      getRtmpPushOrBuilder in interface DistributionOrBuilder
    • 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 Distribution parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static Distribution.Builder newBuilder()
    • newBuilder

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

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

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

      public static Distribution getDefaultInstance()
    • parser

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

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