Class TextStream.Builder (0.15.0)

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

Implements

TextStreamOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TextStream.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TextStream.Builder
Overrides

build()

public TextStream build()
Returns
TypeDescription
TextStream

buildPartial()

public TextStream buildPartial()
Returns
TypeDescription
TextStream

clear()

public TextStream.Builder clear()
Returns
TypeDescription
TextStream.Builder
Overrides

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
TypeDescription
TextStream.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TextStream.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TextStream.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TextStream.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TextStream.Builder
Overrides

clone()

public TextStream.Builder clone()
Returns
TypeDescription
TextStream.Builder
Overrides

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
TypeDescription
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
TypeDescription
ByteString

The bytes for codec.

getDefaultInstanceForType()

public TextStream getDefaultInstanceForType()
Returns
TypeDescription
TextStream

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TextStream other)

public TextStream.Builder mergeFrom(TextStream other)
Parameter
NameDescription
otherTextStream
Returns
TypeDescription
TextStream.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TextStream.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextStream.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TextStream.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TextStream.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TextStream.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TextStream.Builder
Overrides

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
NameDescription
valueString

The codec to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for codec to set.

Returns
TypeDescription
TextStream.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public TextStream.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TextStream.Builder
Overrides

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

public TextStream.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TextStream.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TextStream.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TextStream.Builder
Overrides