Class Distribution.Builder (0.77.0)

public static final class Distribution.Builder extends GeneratedMessageV3.Builder<Distribution.Builder> implements DistributionOrBuilder

Distribution configuration.

Protobuf type google.cloud.video.livestream.v1.Distribution

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Distribution.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Distribution.Builder
Overrides

build()

public Distribution build()
Returns
Type Description
Distribution

buildPartial()

public Distribution buildPartial()
Returns
Type Description
Distribution

clear()

public Distribution.Builder clear()
Returns
Type Description
Distribution.Builder
Overrides

clearDistributionStream()

public Distribution.Builder clearDistributionStream()

Required. DistributionStream keys 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
Type Description
Distribution.Builder

This builder for chaining.

clearEndpoint()

public Distribution.Builder clearEndpoint()
Returns
Type Description
Distribution.Builder

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];

Returns
Type Description
Distribution.Builder

clearField(Descriptors.FieldDescriptor field)

public Distribution.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Distribution.Builder
Overrides

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
Type Description
Distribution.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Distribution.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Distribution.Builder
Overrides

clearRtmpPush()

public Distribution.Builder clearRtmpPush()

Output endpoint using RTMP_PUSH.

.google.cloud.video.livestream.v1.RtmpPushOutputEndpoint rtmp_push = 6;

Returns
Type Description
Distribution.Builder

clearSrtPush()

public Distribution.Builder clearSrtPush()

Output endpoint using SRT_PUSH.

.google.cloud.video.livestream.v1.SrtPushOutputEndpoint srt_push = 5;

Returns
Type Description
Distribution.Builder

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
Type Description
Distribution.Builder

This builder for chaining.

clone()

public Distribution.Builder clone()
Returns
Type Description
Distribution.Builder
Overrides

getDefaultInstanceForType()

public Distribution getDefaultInstanceForType()
Returns
Type Description
Distribution

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDistributionStream()

public String getDistributionStream()

Required. DistributionStream keys 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
Type Description
String

The distributionStream.

getDistributionStreamBytes()

public ByteString getDistributionStreamBytes()

Required. DistributionStream keys 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
Type Description
ByteString

The bytes for distributionStream.

getEndpointCase()

public Distribution.EndpointCase getEndpointCase()
Returns
Type Description
Distribution.EndpointCase

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];

Returns
Type Description
com.google.rpc.Status

The error.

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];

Returns
Type Description
com.google.rpc.Status.Builder

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];

Returns
Type Description
com.google.rpc.StatusOrBuilder

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];

Returns
Type Description
String

The key.

getKeyBytes()

public 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];

Returns
Type Description
ByteString

The bytes for key.

getRtmpPush()

public RtmpPushOutputEndpoint getRtmpPush()

Output endpoint using RTMP_PUSH.

.google.cloud.video.livestream.v1.RtmpPushOutputEndpoint rtmp_push = 6;

Returns
Type Description
RtmpPushOutputEndpoint

The rtmpPush.

getRtmpPushBuilder()

public RtmpPushOutputEndpoint.Builder getRtmpPushBuilder()

Output endpoint using RTMP_PUSH.

.google.cloud.video.livestream.v1.RtmpPushOutputEndpoint rtmp_push = 6;

Returns
Type Description
RtmpPushOutputEndpoint.Builder

getRtmpPushOrBuilder()

public RtmpPushOutputEndpointOrBuilder getRtmpPushOrBuilder()

Output endpoint using RTMP_PUSH.

.google.cloud.video.livestream.v1.RtmpPushOutputEndpoint rtmp_push = 6;

Returns
Type Description
RtmpPushOutputEndpointOrBuilder

getSrtPush()

public SrtPushOutputEndpoint getSrtPush()

Output endpoint using SRT_PUSH.

.google.cloud.video.livestream.v1.SrtPushOutputEndpoint srt_push = 5;

Returns
Type Description
SrtPushOutputEndpoint

The srtPush.

getSrtPushBuilder()

public SrtPushOutputEndpoint.Builder getSrtPushBuilder()

Output endpoint using SRT_PUSH.

.google.cloud.video.livestream.v1.SrtPushOutputEndpoint srt_push = 5;

Returns
Type Description
SrtPushOutputEndpoint.Builder

getSrtPushOrBuilder()

public SrtPushOutputEndpointOrBuilder getSrtPushOrBuilder()

Output endpoint using SRT_PUSH.

.google.cloud.video.livestream.v1.SrtPushOutputEndpoint srt_push = 5;

Returns
Type Description
SrtPushOutputEndpointOrBuilder

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];

Returns
Type Description
Distribution.State

The state.

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];

Returns
Type Description
int

The enum numeric value on the wire for 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];

Returns
Type Description
boolean

Whether the error field is set.

hasRtmpPush()

public boolean hasRtmpPush()

Output endpoint using RTMP_PUSH.

.google.cloud.video.livestream.v1.RtmpPushOutputEndpoint rtmp_push = 6;

Returns
Type Description
boolean

Whether the rtmpPush field is set.

hasSrtPush()

public boolean hasSrtPush()

Output endpoint using SRT_PUSH.

.google.cloud.video.livestream.v1.SrtPushOutputEndpoint srt_push = 5;

Returns
Type Description
boolean

Whether the srtPush field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeError(Status value)

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];

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
Distribution.Builder

mergeFrom(Distribution other)

public Distribution.Builder mergeFrom(Distribution other)
Parameter
Name Description
other Distribution
Returns
Type Description
Distribution.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Distribution.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Distribution.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Distribution.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Distribution.Builder
Overrides

mergeRtmpPush(RtmpPushOutputEndpoint value)

public Distribution.Builder mergeRtmpPush(RtmpPushOutputEndpoint value)

Output endpoint using RTMP_PUSH.

.google.cloud.video.livestream.v1.RtmpPushOutputEndpoint rtmp_push = 6;

Parameter
Name Description
value RtmpPushOutputEndpoint
Returns
Type Description
Distribution.Builder

mergeSrtPush(SrtPushOutputEndpoint value)

public Distribution.Builder mergeSrtPush(SrtPushOutputEndpoint value)

Output endpoint using SRT_PUSH.

.google.cloud.video.livestream.v1.SrtPushOutputEndpoint srt_push = 5;

Parameter
Name Description
value SrtPushOutputEndpoint
Returns
Type Description
Distribution.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Distribution.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Distribution.Builder
Overrides

setDistributionStream(String value)

public Distribution.Builder setDistributionStream(String value)

Required. DistributionStream keys 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];

Parameter
Name Description
value String

The distributionStream to set.

Returns
Type Description
Distribution.Builder

This builder for chaining.

setDistributionStreamBytes(ByteString value)

public Distribution.Builder setDistributionStreamBytes(ByteString value)

Required. DistributionStream keys 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];

Parameter
Name Description
value ByteString

The bytes for distributionStream to set.

Returns
Type Description
Distribution.Builder

This builder for chaining.

setError(Status value)

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];

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
Distribution.Builder

setError(Status.Builder builderForValue)

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];

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
Distribution.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Distribution.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Distribution.Builder
Overrides

setKey(String value)

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];

Parameter
Name Description
value String

The key to set.

Returns
Type Description
Distribution.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public Distribution.Builder setKeyBytes(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];

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
Distribution.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Distribution.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Distribution.Builder
Overrides

setRtmpPush(RtmpPushOutputEndpoint value)

public Distribution.Builder setRtmpPush(RtmpPushOutputEndpoint value)

Output endpoint using RTMP_PUSH.

.google.cloud.video.livestream.v1.RtmpPushOutputEndpoint rtmp_push = 6;

Parameter
Name Description
value RtmpPushOutputEndpoint
Returns
Type Description
Distribution.Builder

setRtmpPush(RtmpPushOutputEndpoint.Builder builderForValue)

public Distribution.Builder setRtmpPush(RtmpPushOutputEndpoint.Builder builderForValue)

Output endpoint using RTMP_PUSH.

.google.cloud.video.livestream.v1.RtmpPushOutputEndpoint rtmp_push = 6;

Parameter
Name Description
builderForValue RtmpPushOutputEndpoint.Builder
Returns
Type Description
Distribution.Builder

setSrtPush(SrtPushOutputEndpoint value)

public Distribution.Builder setSrtPush(SrtPushOutputEndpoint value)

Output endpoint using SRT_PUSH.

.google.cloud.video.livestream.v1.SrtPushOutputEndpoint srt_push = 5;

Parameter
Name Description
value SrtPushOutputEndpoint
Returns
Type Description
Distribution.Builder

setSrtPush(SrtPushOutputEndpoint.Builder builderForValue)

public Distribution.Builder setSrtPush(SrtPushOutputEndpoint.Builder builderForValue)

Output endpoint using SRT_PUSH.

.google.cloud.video.livestream.v1.SrtPushOutputEndpoint srt_push = 5;

Parameter
Name Description
builderForValue SrtPushOutputEndpoint.Builder
Returns
Type Description
Distribution.Builder

setState(Distribution.State value)

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];

Parameter
Name Description
value Distribution.State

The state to set.

Returns
Type Description
Distribution.Builder

This builder for chaining.

setStateValue(int value)

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];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Distribution.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Distribution.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Distribution.Builder
Overrides