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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Output only.clearKey()Required.Output endpoint using RTMP_PUSH.Output endpoint using SRT_PUSH.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.getError()Output only.Output only.Output only.getKey()Required.com.google.protobuf.ByteStringRequired.Output endpoint using RTMP_PUSH.Output endpoint using RTMP_PUSH.Output endpoint using RTMP_PUSH.Output endpoint using SRT_PUSH.Output endpoint using SRT_PUSH.Output endpoint using SRT_PUSH.getState()Output only.intOutput only.booleanhasError()Output only.booleanOutput endpoint using RTMP_PUSH.booleanOutput endpoint using SRT_PUSH.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeError(Status value) Output only.mergeFrom(Distribution other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Output endpoint using RTMP_PUSH.Output endpoint using SRT_PUSH.setDistributionStream(String value) Required.setDistributionStreamBytes(com.google.protobuf.ByteString value) Required.Output only.setError(Status.Builder builderForValue) Output only.Required.setKeyBytes(com.google.protobuf.ByteString value) Required.Output endpoint using RTMP_PUSH.setRtmpPush(RtmpPushOutputEndpoint.Builder builderForValue) Output endpoint using RTMP_PUSH.setSrtPush(SrtPushOutputEndpoint value) Output endpoint using SRT_PUSH.setSrtPush(SrtPushOutputEndpoint.Builder builderForValue) Output endpoint using SRT_PUSH.setState(Distribution.State value) Output only.setStateValue(int value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Distribution.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Distribution.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Distribution.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Distribution.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Distribution.Builder>- Throws:
IOException
-
getEndpointCase
- Specified by:
getEndpointCasein interfaceDistributionOrBuilder
-
clearEndpoint
-
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:
getKeyin interfaceDistributionOrBuilder- 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:
getKeyBytesin interfaceDistributionOrBuilder- Returns:
- The bytes for key.
-
setKey
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
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
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
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:
getDistributionStreamin interfaceDistributionOrBuilder- 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:
getDistributionStreamBytesin interfaceDistributionOrBuilder- Returns:
- The bytes for distributionStream.
-
setDistributionStream
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
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
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:
getStateValuein interfaceDistributionOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
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
Output only. State of the distribution.
.google.cloud.video.livestream.v1.Distribution.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceDistributionOrBuilder- Returns:
- The state.
-
setState
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
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:
hasErrorin interfaceDistributionOrBuilder- Returns:
- Whether the error field is set.
-
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:
getErrorin interfaceDistributionOrBuilder- Returns:
- The error.
-
setError
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
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
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
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
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
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:
getErrorOrBuilderin interfaceDistributionOrBuilder
-
hasSrtPush
public boolean hasSrtPush()Output endpoint using SRT_PUSH.
.google.cloud.video.livestream.v1.SrtPushOutputEndpoint srt_push = 5;- Specified by:
hasSrtPushin interfaceDistributionOrBuilder- Returns:
- Whether the srtPush field is set.
-
getSrtPush
Output endpoint using SRT_PUSH.
.google.cloud.video.livestream.v1.SrtPushOutputEndpoint srt_push = 5;- Specified by:
getSrtPushin interfaceDistributionOrBuilder- Returns:
- The srtPush.
-
setSrtPush
Output endpoint using SRT_PUSH.
.google.cloud.video.livestream.v1.SrtPushOutputEndpoint srt_push = 5; -
setSrtPush
Output endpoint using SRT_PUSH.
.google.cloud.video.livestream.v1.SrtPushOutputEndpoint srt_push = 5; -
mergeSrtPush
Output endpoint using SRT_PUSH.
.google.cloud.video.livestream.v1.SrtPushOutputEndpoint srt_push = 5; -
clearSrtPush
Output endpoint using SRT_PUSH.
.google.cloud.video.livestream.v1.SrtPushOutputEndpoint srt_push = 5; -
getSrtPushBuilder
Output endpoint using SRT_PUSH.
.google.cloud.video.livestream.v1.SrtPushOutputEndpoint srt_push = 5; -
getSrtPushOrBuilder
Output endpoint using SRT_PUSH.
.google.cloud.video.livestream.v1.SrtPushOutputEndpoint srt_push = 5;- Specified by:
getSrtPushOrBuilderin interfaceDistributionOrBuilder
-
hasRtmpPush
public boolean hasRtmpPush()Output endpoint using RTMP_PUSH.
.google.cloud.video.livestream.v1.RtmpPushOutputEndpoint rtmp_push = 6;- Specified by:
hasRtmpPushin interfaceDistributionOrBuilder- Returns:
- Whether the rtmpPush field is set.
-
getRtmpPush
Output endpoint using RTMP_PUSH.
.google.cloud.video.livestream.v1.RtmpPushOutputEndpoint rtmp_push = 6;- Specified by:
getRtmpPushin interfaceDistributionOrBuilder- Returns:
- The rtmpPush.
-
setRtmpPush
Output endpoint using RTMP_PUSH.
.google.cloud.video.livestream.v1.RtmpPushOutputEndpoint rtmp_push = 6; -
setRtmpPush
Output endpoint using RTMP_PUSH.
.google.cloud.video.livestream.v1.RtmpPushOutputEndpoint rtmp_push = 6; -
mergeRtmpPush
Output endpoint using RTMP_PUSH.
.google.cloud.video.livestream.v1.RtmpPushOutputEndpoint rtmp_push = 6; -
clearRtmpPush
Output endpoint using RTMP_PUSH.
.google.cloud.video.livestream.v1.RtmpPushOutputEndpoint rtmp_push = 6; -
getRtmpPushBuilder
Output endpoint using RTMP_PUSH.
.google.cloud.video.livestream.v1.RtmpPushOutputEndpoint rtmp_push = 6; -
getRtmpPushOrBuilder
Output endpoint using RTMP_PUSH.
.google.cloud.video.livestream.v1.RtmpPushOutputEndpoint rtmp_push = 6;- Specified by:
getRtmpPushOrBuilderin interfaceDistributionOrBuilder
-