public static final class TextStream.Builder extends GeneratedMessageV3.Builder<TextStream.Builder> implements TextStreamOrBuilder
Encoding of a text stream. For example, closed captions or subtitles.
Protobuf type google.cloud.video.livestream.v1.TextStream
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TextStream.BuilderImplements
TextStreamOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TextStream.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
TextStream.Builder |
build()
public TextStream build()
Returns | |
---|---|
Type | Description |
TextStream |
buildPartial()
public TextStream buildPartial()
Returns | |
---|---|
Type | Description |
TextStream |
clear()
public TextStream.Builder clear()
Returns | |
---|---|
Type | Description |
TextStream.Builder |
clearCodec()
public TextStream.Builder clearCodec()
Required. The codec for this text stream.
Supported text codecs:
cea608
cea708
string codec = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
TextStream.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public TextStream.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
TextStream.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public TextStream.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
TextStream.Builder |
clone()
public TextStream.Builder clone()
Returns | |
---|---|
Type | Description |
TextStream.Builder |
getCodec()
public String getCodec()
Required. The codec for this text stream.
Supported text codecs:
cea608
cea708
string codec = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String | The codec. |
getCodecBytes()
public ByteString getCodecBytes()
Required. The codec for this text stream.
Supported text codecs:
cea608
cea708
string codec = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for codec. |
getDefaultInstanceForType()
public TextStream getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
TextStream |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(TextStream other)
public TextStream.Builder mergeFrom(TextStream other)
Parameter | |
---|---|
Name | Description |
other | TextStream |
Returns | |
---|---|
Type | Description |
TextStream.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TextStream.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
TextStream.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public TextStream.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
TextStream.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TextStream.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
TextStream.Builder |
setCodec(String value)
public TextStream.Builder setCodec(String value)
Required. The codec for this text stream.
Supported text codecs:
cea608
cea708
string codec = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value | String The codec to set. |
Returns | |
---|---|
Type | Description |
TextStream.Builder | This builder for chaining. |
setCodecBytes(ByteString value)
public TextStream.Builder setCodecBytes(ByteString value)
Required. The codec for this text stream.
Supported text codecs:
cea608
cea708
string codec = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for codec to set. |
Returns | |
---|---|
Type | Description |
TextStream.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public TextStream.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
TextStream.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TextStream.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
TextStream.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final TextStream.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
TextStream.Builder |