Class Distribution.Builder

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

public static final class Distribution.Builder extends com.google.protobuf.GeneratedMessage.Builder<Distribution.Builder> implements DistributionOrBuilder
 Distribution configuration.
 
Protobuf type google.cloud.video.livestream.v1.Distribution
  • 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<Distribution.Builder>
    • clear

      public Distribution.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<Distribution.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<Distribution.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Distribution.Builder mergeFrom(Distribution other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Distribution.Builder>
    • mergeFrom

      public Distribution.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<Distribution.Builder>
      Throws:
      IOException
    • getEndpointCase

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

      public Distribution.Builder clearEndpoint()
    • 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.
    • setKey

      public Distribution.Builder setKey(String value)
       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];
      Parameters:
      value - The key to set.
      Returns:
      This builder for chaining.
    • clearKey

      public Distribution.Builder clearKey()
       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];
      Returns:
      This builder for chaining.
    • setKeyBytes

      public Distribution.Builder setKeyBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for key to set.
      Returns:
      This builder for chaining.
    • 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.
    • setDistributionStream

      public Distribution.Builder setDistributionStream(String value)
       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];
      Parameters:
      value - The distributionStream to set.
      Returns:
      This builder for chaining.
    • clearDistributionStream

      public Distribution.Builder clearDistributionStream()
       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];
      Returns:
      This builder for chaining.
    • setDistributionStreamBytes

      public Distribution.Builder setDistributionStreamBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for distributionStream to set.
      Returns:
      This builder for chaining.
    • 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.
    • setStateValue

      public Distribution.Builder setStateValue(int value)
       Output only. State of the distribution.
       
      .google.cloud.video.livestream.v1.Distribution.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • 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.
    • setState

      public Distribution.Builder setState(Distribution.State value)
       Output only. State of the distribution.
       
      .google.cloud.video.livestream.v1.Distribution.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Distribution.Builder clearState()
       Output only. State of the distribution.
       
      .google.cloud.video.livestream.v1.Distribution.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • 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.
    • setError

      public Distribution.Builder setError(Status value)
       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];
    • setError

      public Distribution.Builder setError(Status.Builder builderForValue)
       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];
    • mergeError

      public Distribution.Builder mergeError(Status value)
       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];
    • clearError

      public Distribution.Builder clearError()
       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];
    • getErrorBuilder

      public Status.Builder getErrorBuilder()
       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];
    • 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.
    • setSrtPush

      public Distribution.Builder setSrtPush(SrtPushOutputEndpoint value)
       Output endpoint using SRT_PUSH.
       
      .google.cloud.video.livestream.v1.SrtPushOutputEndpoint srt_push = 5;
    • setSrtPush

      public Distribution.Builder setSrtPush(SrtPushOutputEndpoint.Builder builderForValue)
       Output endpoint using SRT_PUSH.
       
      .google.cloud.video.livestream.v1.SrtPushOutputEndpoint srt_push = 5;
    • mergeSrtPush

      public Distribution.Builder mergeSrtPush(SrtPushOutputEndpoint value)
       Output endpoint using SRT_PUSH.
       
      .google.cloud.video.livestream.v1.SrtPushOutputEndpoint srt_push = 5;
    • clearSrtPush

      public Distribution.Builder clearSrtPush()
       Output endpoint using SRT_PUSH.
       
      .google.cloud.video.livestream.v1.SrtPushOutputEndpoint srt_push = 5;
    • getSrtPushBuilder

      public SrtPushOutputEndpoint.Builder getSrtPushBuilder()
       Output endpoint using SRT_PUSH.
       
      .google.cloud.video.livestream.v1.SrtPushOutputEndpoint srt_push = 5;
    • 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.
    • setRtmpPush

      public Distribution.Builder setRtmpPush(RtmpPushOutputEndpoint value)
       Output endpoint using RTMP_PUSH.
       
      .google.cloud.video.livestream.v1.RtmpPushOutputEndpoint rtmp_push = 6;
    • setRtmpPush

      public Distribution.Builder setRtmpPush(RtmpPushOutputEndpoint.Builder builderForValue)
       Output endpoint using RTMP_PUSH.
       
      .google.cloud.video.livestream.v1.RtmpPushOutputEndpoint rtmp_push = 6;
    • mergeRtmpPush

      public Distribution.Builder mergeRtmpPush(RtmpPushOutputEndpoint value)
       Output endpoint using RTMP_PUSH.
       
      .google.cloud.video.livestream.v1.RtmpPushOutputEndpoint rtmp_push = 6;
    • clearRtmpPush

      public Distribution.Builder clearRtmpPush()
       Output endpoint using RTMP_PUSH.
       
      .google.cloud.video.livestream.v1.RtmpPushOutputEndpoint rtmp_push = 6;
    • getRtmpPushBuilder

      public RtmpPushOutputEndpoint.Builder getRtmpPushBuilder()
       Output endpoint using RTMP_PUSH.
       
      .google.cloud.video.livestream.v1.RtmpPushOutputEndpoint rtmp_push = 6;
    • getRtmpPushOrBuilder

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