public final class Channel extends GeneratedMessageV3 implements ChannelOrBuilder
Channel resource represents the processor that does a user-defined
"streaming" operation, which includes getting an input stream through an
input, transcoding it to multiple renditions, and publishing output live
streams in certain formats (for example, HLS or DASH) to the specified
location.
Protobuf type google.cloud.video.livestream.v1.Channel
Static Fields
public static final int ACTIVE_INPUT_FIELD_NUMBER
Field Value
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value
ELEMENTARY_STREAMS_FIELD_NUMBER
public static final int ELEMENTARY_STREAMS_FIELD_NUMBER
Field Value
public static final int INPUT_ATTACHMENTS_FIELD_NUMBER
Field Value
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
Field Value
LOG_CONFIG_FIELD_NUMBER
public static final int LOG_CONFIG_FIELD_NUMBER
Field Value
MANIFESTS_FIELD_NUMBER
public static final int MANIFESTS_FIELD_NUMBER
Field Value
MUX_STREAMS_FIELD_NUMBER
public static final int MUX_STREAMS_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
OUTPUT_FIELD_NUMBER
public static final int OUTPUT_FIELD_NUMBER
Field Value
SPRITE_SHEETS_FIELD_NUMBER
public static final int SPRITE_SHEETS_FIELD_NUMBER
Field Value
STREAMING_ERROR_FIELD_NUMBER
public static final int STREAMING_ERROR_FIELD_NUMBER
Field Value
STREAMING_STATE_FIELD_NUMBER
public static final int STREAMING_STATE_FIELD_NUMBER
Field Value
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Channel getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Channel.Builder newBuilder()
Returns
newBuilder(Channel prototype)
public static Channel.Builder newBuilder(Channel prototype)
Parameter
Returns
public static Channel parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Channel parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Channel parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Channel parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Channel parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Channel parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Channel parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Channel parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Channel parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Channel parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Channel parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Channel parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Channel> parser()
Returns
Methods
containsLabels(String key)
public boolean containsLabels(String key)
User-defined key/value metadata.
map<string, string> labels = 4;
Parameter
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
public String getActiveInput()
Output only. The InputAttachment.key that serves as the current input source. The
first input in the input_attachments is the initial input source.
string active_input = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
String | The activeInput.
|
public ByteString getActiveInputBytes()
Output only. The InputAttachment.key that serves as the current input source. The
first input in the input_attachments is the initial input source.
string active_input = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
ByteString | The bytes for activeInput.
|
getCreateTime()
public Timestamp getCreateTime()
Output only. The creation time.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The creation time.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getDefaultInstanceForType()
public Channel getDefaultInstanceForType()
Returns
getElementaryStreams(int index)
public ElementaryStream getElementaryStreams(int index)
List of elementary streams.
repeated .google.cloud.video.livestream.v1.ElementaryStream elementary_streams = 10;
Parameter
Returns
getElementaryStreamsCount()
public int getElementaryStreamsCount()
List of elementary streams.
repeated .google.cloud.video.livestream.v1.ElementaryStream elementary_streams = 10;
Returns
getElementaryStreamsList()
public List<ElementaryStream> getElementaryStreamsList()
List of elementary streams.
repeated .google.cloud.video.livestream.v1.ElementaryStream elementary_streams = 10;
Returns
getElementaryStreamsOrBuilder(int index)
public ElementaryStreamOrBuilder getElementaryStreamsOrBuilder(int index)
List of elementary streams.
repeated .google.cloud.video.livestream.v1.ElementaryStream elementary_streams = 10;
Parameter
Returns
getElementaryStreamsOrBuilderList()
public List<? extends ElementaryStreamOrBuilder> getElementaryStreamsOrBuilderList()
List of elementary streams.
repeated .google.cloud.video.livestream.v1.ElementaryStream elementary_streams = 10;
Returns
Type | Description |
List<? extends com.google.cloud.video.livestream.v1.ElementaryStreamOrBuilder> | |
public InputAttachment getInputAttachments(int index)
A list of input attachments that this channel uses.
One channel can have multiple inputs as the input sources. Only one
input can be selected as the input source at one time.
repeated .google.cloud.video.livestream.v1.InputAttachment input_attachments = 16;
Parameter
Returns
public int getInputAttachmentsCount()
A list of input attachments that this channel uses.
One channel can have multiple inputs as the input sources. Only one
input can be selected as the input source at one time.
repeated .google.cloud.video.livestream.v1.InputAttachment input_attachments = 16;
Returns
public List<InputAttachment> getInputAttachmentsList()
A list of input attachments that this channel uses.
One channel can have multiple inputs as the input sources. Only one
input can be selected as the input source at one time.
repeated .google.cloud.video.livestream.v1.InputAttachment input_attachments = 16;
Returns
public InputAttachmentOrBuilder getInputAttachmentsOrBuilder(int index)
A list of input attachments that this channel uses.
One channel can have multiple inputs as the input sources. Only one
input can be selected as the input source at one time.
repeated .google.cloud.video.livestream.v1.InputAttachment input_attachments = 16;
Parameter
Returns
public List<? extends InputAttachmentOrBuilder> getInputAttachmentsOrBuilderList()
A list of input attachments that this channel uses.
One channel can have multiple inputs as the input sources. Only one
input can be selected as the input source at one time.
repeated .google.cloud.video.livestream.v1.InputAttachment input_attachments = 16;
Returns
Type | Description |
List<? extends com.google.cloud.video.livestream.v1.InputAttachmentOrBuilder> | |
getLabels()
public Map<String,String> getLabels()
Returns
getLabelsCount()
public int getLabelsCount()
User-defined key/value metadata.
map<string, string> labels = 4;
Returns
getLabelsMap()
public Map<String,String> getLabelsMap()
User-defined key/value metadata.
map<string, string> labels = 4;
Returns
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
User-defined key/value metadata.
map<string, string> labels = 4;
Parameters
Returns
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
User-defined key/value metadata.
map<string, string> labels = 4;
Parameter
Returns
getLogConfig()
public LogConfig getLogConfig()
Configuration of platform logs for this channel.
.google.cloud.video.livestream.v1.LogConfig log_config = 19;
Returns
getLogConfigOrBuilder()
public LogConfigOrBuilder getLogConfigOrBuilder()
Configuration of platform logs for this channel.
.google.cloud.video.livestream.v1.LogConfig log_config = 19;
Returns
getManifests(int index)
public Manifest getManifests(int index)
List of output manifests.
repeated .google.cloud.video.livestream.v1.Manifest manifests = 12;
Parameter
Returns
getManifestsCount()
public int getManifestsCount()
List of output manifests.
repeated .google.cloud.video.livestream.v1.Manifest manifests = 12;
Returns
getManifestsList()
public List<Manifest> getManifestsList()
List of output manifests.
repeated .google.cloud.video.livestream.v1.Manifest manifests = 12;
Returns
getManifestsOrBuilder(int index)
public ManifestOrBuilder getManifestsOrBuilder(int index)
List of output manifests.
repeated .google.cloud.video.livestream.v1.Manifest manifests = 12;
Parameter
Returns
getManifestsOrBuilderList()
public List<? extends ManifestOrBuilder> getManifestsOrBuilderList()
List of output manifests.
repeated .google.cloud.video.livestream.v1.Manifest manifests = 12;
Returns
Type | Description |
List<? extends com.google.cloud.video.livestream.v1.ManifestOrBuilder> | |
getMuxStreams(int index)
public MuxStream getMuxStreams(int index)
List of multiplexing settings for output streams.
repeated .google.cloud.video.livestream.v1.MuxStream mux_streams = 11;
Parameter
Returns
getMuxStreamsCount()
public int getMuxStreamsCount()
List of multiplexing settings for output streams.
repeated .google.cloud.video.livestream.v1.MuxStream mux_streams = 11;
Returns
getMuxStreamsList()
public List<MuxStream> getMuxStreamsList()
List of multiplexing settings for output streams.
repeated .google.cloud.video.livestream.v1.MuxStream mux_streams = 11;
Returns
getMuxStreamsOrBuilder(int index)
public MuxStreamOrBuilder getMuxStreamsOrBuilder(int index)
List of multiplexing settings for output streams.
repeated .google.cloud.video.livestream.v1.MuxStream mux_streams = 11;
Parameter
Returns
getMuxStreamsOrBuilderList()
public List<? extends MuxStreamOrBuilder> getMuxStreamsOrBuilderList()
List of multiplexing settings for output streams.
repeated .google.cloud.video.livestream.v1.MuxStream mux_streams = 11;
Returns
Type | Description |
List<? extends com.google.cloud.video.livestream.v1.MuxStreamOrBuilder> | |
getName()
The resource name of the channel, in the form of:
projects/{project}/locations/{location}/channels/{channelId}
.
string name = 1;
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
The resource name of the channel, in the form of:
projects/{project}/locations/{location}/channels/{channelId}
.
string name = 1;
Returns
getOutput()
public Channel.Output getOutput()
Required. Information about the output (that is, the Cloud Storage bucket to store
the generated live stream).
.google.cloud.video.livestream.v1.Channel.Output output = 9 [(.google.api.field_behavior) = REQUIRED];
Returns
getOutputOrBuilder()
public Channel.OutputOrBuilder getOutputOrBuilder()
Required. Information about the output (that is, the Cloud Storage bucket to store
the generated live stream).
.google.cloud.video.livestream.v1.Channel.Output output = 9 [(.google.api.field_behavior) = REQUIRED];
Returns
getParserForType()
public Parser<Channel> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getSpriteSheets(int index)
public SpriteSheet getSpriteSheets(int index)
List of output sprite sheets.
repeated .google.cloud.video.livestream.v1.SpriteSheet sprite_sheets = 13;
Parameter
Returns
getSpriteSheetsCount()
public int getSpriteSheetsCount()
List of output sprite sheets.
repeated .google.cloud.video.livestream.v1.SpriteSheet sprite_sheets = 13;
Returns
getSpriteSheetsList()
public List<SpriteSheet> getSpriteSheetsList()
List of output sprite sheets.
repeated .google.cloud.video.livestream.v1.SpriteSheet sprite_sheets = 13;
Returns
getSpriteSheetsOrBuilder(int index)
public SpriteSheetOrBuilder getSpriteSheetsOrBuilder(int index)
List of output sprite sheets.
repeated .google.cloud.video.livestream.v1.SpriteSheet sprite_sheets = 13;
Parameter
Returns
getSpriteSheetsOrBuilderList()
public List<? extends SpriteSheetOrBuilder> getSpriteSheetsOrBuilderList()
List of output sprite sheets.
repeated .google.cloud.video.livestream.v1.SpriteSheet sprite_sheets = 13;
Returns
Type | Description |
List<? extends com.google.cloud.video.livestream.v1.SpriteSheetOrBuilder> | |
getStreamingError()
public Status getStreamingError()
Output only. A description of the reason for the streaming error. This property is
always present when streaming_state is
STREAMING_ERROR.
.google.rpc.Status streaming_error = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
com.google.rpc.Status | The streamingError.
|
getStreamingErrorOrBuilder()
public StatusOrBuilder getStreamingErrorOrBuilder()
Output only. A description of the reason for the streaming error. This property is
always present when streaming_state is
STREAMING_ERROR.
.google.rpc.Status streaming_error = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
com.google.rpc.StatusOrBuilder | |
getStreamingState()
public Channel.StreamingState getStreamingState()
Output only. State of the streaming operation.
.google.cloud.video.livestream.v1.Channel.StreamingState streaming_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getStreamingStateValue()
public int getStreamingStateValue()
Output only. State of the streaming operation.
.google.cloud.video.livestream.v1.Channel.StreamingState streaming_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
int | The enum numeric value on the wire for streamingState.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getUpdateTime()
public Timestamp getUpdateTime()
Output only. The update time.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The update time.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
hasCreateTime()
public boolean hasCreateTime()
Output only. The creation time.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the createTime field is set.
|
hasLogConfig()
public boolean hasLogConfig()
Configuration of platform logs for this channel.
.google.cloud.video.livestream.v1.LogConfig log_config = 19;
Returns
Type | Description |
boolean | Whether the logConfig field is set.
|
hasOutput()
public boolean hasOutput()
Required. Information about the output (that is, the Cloud Storage bucket to store
the generated live stream).
.google.cloud.video.livestream.v1.Channel.Output output = 9 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the output field is set.
|
hasStreamingError()
public boolean hasStreamingError()
Output only. A description of the reason for the streaming error. This property is
always present when streaming_state is
STREAMING_ERROR.
.google.rpc.Status streaming_error = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the streamingError field is set.
|
hasUpdateTime()
public boolean hasUpdateTime()
Output only. The update time.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the updateTime field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Channel.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Channel.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Channel.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions