Variables
Manifest_ManifestType_name, Manifest_ManifestType_value
var (
Manifest_ManifestType_name = map[int32]string{
0: "MANIFEST_TYPE_UNSPECIFIED",
1: "HLS",
2: "DASH",
}
Manifest_ManifestType_value = map[string]int32{
"MANIFEST_TYPE_UNSPECIFIED": 0,
"HLS": 1,
"DASH": 2,
}
)
Enum value maps for Manifest_ManifestType.
Input_Type_name, Input_Type_value
var (
Input_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "RTMP_PUSH",
2: "SRT_PUSH",
}
Input_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"RTMP_PUSH": 1,
"SRT_PUSH": 2,
}
)
Enum value maps for Input_Type.
Input_Tier_name, Input_Tier_value
var (
Input_Tier_name = map[int32]string{
0: "TIER_UNSPECIFIED",
1: "SD",
2: "HD",
3: "UHD",
}
Input_Tier_value = map[string]int32{
"TIER_UNSPECIFIED": 0,
"SD": 1,
"HD": 2,
"UHD": 3,
}
)
Enum value maps for Input_Tier.
Channel_StreamingState_name, Channel_StreamingState_value
var (
Channel_StreamingState_name = map[int32]string{
0: "STREAMING_STATE_UNSPECIFIED",
1: "STREAMING",
2: "AWAITING_INPUT",
4: "STREAMING_ERROR",
5: "STREAMING_NO_INPUT",
6: "STOPPED",
7: "STARTING",
8: "STOPPING",
}
Channel_StreamingState_value = map[string]int32{
"STREAMING_STATE_UNSPECIFIED": 0,
"STREAMING": 1,
"AWAITING_INPUT": 2,
"STREAMING_ERROR": 4,
"STREAMING_NO_INPUT": 5,
"STOPPED": 6,
"STARTING": 7,
"STOPPING": 8,
}
)
Enum value maps for Channel_StreamingState.
LogConfig_LogSeverity_name, LogConfig_LogSeverity_value
var (
LogConfig_LogSeverity_name = map[int32]string{
0: "LOG_SEVERITY_UNSPECIFIED",
1: "OFF",
100: "DEBUG",
200: "INFO",
400: "WARNING",
500: "ERROR",
}
LogConfig_LogSeverity_value = map[string]int32{
"LOG_SEVERITY_UNSPECIFIED": 0,
"OFF": 1,
"DEBUG": 100,
"INFO": 200,
"WARNING": 400,
"ERROR": 500,
}
)
Enum value maps for LogConfig_LogSeverity.
Event_State_name, Event_State_value
var (
Event_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "SCHEDULED",
2: "RUNNING",
3: "SUCCEEDED",
4: "FAILED",
5: "PENDING",
6: "STOPPED",
}
Event_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"SCHEDULED": 1,
"RUNNING": 2,
"SUCCEEDED": 3,
"FAILED": 4,
"PENDING": 5,
"STOPPED": 6,
}
)
Enum value maps for Event_State.
File_google_cloud_video_livestream_v1_outputs_proto
var File_google_cloud_video_livestream_v1_outputs_proto protoreflect.FileDescriptor
File_google_cloud_video_livestream_v1_resources_proto
var File_google_cloud_video_livestream_v1_resources_proto protoreflect.FileDescriptor
File_google_cloud_video_livestream_v1_service_proto
var File_google_cloud_video_livestream_v1_service_proto protoreflect.FileDescriptor
Functions
func RegisterLivestreamServiceServer
func RegisterLivestreamServiceServer(s *grpc.Server, srv LivestreamServiceServer)
AudioFormat
type AudioFormat struct {
// Audio codec used in this audio stream.
Codec string `protobuf:"bytes,1,opt,name=codec,proto3" json:"codec,omitempty"`
// The number of audio channels.
ChannelCount int32 `protobuf:"varint,2,opt,name=channel_count,json=channelCount,proto3" json:"channel_count,omitempty"`
// A list of channel names specifying the layout of the audio channels.
ChannelLayout []string `protobuf:"bytes,3,rep,name=channel_layout,json=channelLayout,proto3" json:"channel_layout,omitempty"`
// contains filtered or unexported fields
}
Properties of the audio format.
func (*AudioFormat) Descriptor
func (*AudioFormat) Descriptor() ([]byte, []int)
Deprecated: Use AudioFormat.ProtoReflect.Descriptor instead.
func (*AudioFormat) GetChannelCount
func (x *AudioFormat) GetChannelCount() int32
func (*AudioFormat) GetChannelLayout
func (x *AudioFormat) GetChannelLayout() []string
func (*AudioFormat) GetCodec
func (x *AudioFormat) GetCodec() string
func (*AudioFormat) ProtoMessage
func (*AudioFormat) ProtoMessage()
func (*AudioFormat) ProtoReflect
func (x *AudioFormat) ProtoReflect() protoreflect.Message
func (*AudioFormat) Reset
func (x *AudioFormat) Reset()
func (*AudioFormat) String
func (x *AudioFormat) String() string
AudioStream
type AudioStream struct {
// Specifies whether pass through (transmuxing) is enabled or not.
// If set to `true`, the rest of the settings, other than `mapping`, will be
// ignored. The default is `false`.
Transmux bool `protobuf:"varint,8,opt,name=transmux,proto3" json:"transmux,omitempty"`
// The codec for this audio stream. The default is `aac`.
//
// Supported audio codecs:
//
// - `aac`
Codec string `protobuf:"bytes,1,opt,name=codec,proto3" json:"codec,omitempty"`
// Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000.
BitrateBps int32 `protobuf:"varint,2,opt,name=bitrate_bps,json=bitrateBps,proto3" json:"bitrate_bps,omitempty"`
// Number of audio channels. Must be between 1 and 6. The default is 2.
ChannelCount int32 `protobuf:"varint,3,opt,name=channel_count,json=channelCount,proto3" json:"channel_count,omitempty"`
// A list of channel names specifying layout of the audio channels.
// This only affects the metadata embedded in the container headers, if
// supported by the specified format. The default is `[fl, fr]`.
//
// Supported channel names:
//
// - `fl` - Front left channel
// - `fr` - Front right channel
// - `sl` - Side left channel
// - `sr` - Side right channel
// - `fc` - Front center channel
// - `lfe` - Low frequency
ChannelLayout []string `protobuf:"bytes,4,rep,name=channel_layout,json=channelLayout,proto3" json:"channel_layout,omitempty"`
// The mapping for the input streams and audio channels.
Mapping []*AudioStream_AudioMapping `protobuf:"bytes,5,rep,name=mapping,proto3" json:"mapping,omitempty"`
// The audio sample rate in Hertz. The default is 48000 Hertz.
SampleRateHertz int32 `protobuf:"varint,6,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"`
// contains filtered or unexported fields
}
Audio stream resource.
func (*AudioStream) Descriptor
func (*AudioStream) Descriptor() ([]byte, []int)
Deprecated: Use AudioStream.ProtoReflect.Descriptor instead.
func (*AudioStream) GetBitrateBps
func (x *AudioStream) GetBitrateBps() int32
func (*AudioStream) GetChannelCount
func (x *AudioStream) GetChannelCount() int32
func (*AudioStream) GetChannelLayout
func (x *AudioStream) GetChannelLayout() []string
func (*AudioStream) GetCodec
func (x *AudioStream) GetCodec() string
func (*AudioStream) GetMapping
func (x *AudioStream) GetMapping() []*AudioStream_AudioMapping
func (*AudioStream) GetSampleRateHertz
func (x *AudioStream) GetSampleRateHertz() int32
func (*AudioStream) GetTransmux
func (x *AudioStream) GetTransmux() bool
func (*AudioStream) ProtoMessage
func (*AudioStream) ProtoMessage()
func (*AudioStream) ProtoReflect
func (x *AudioStream) ProtoReflect() protoreflect.Message
func (*AudioStream) Reset
func (x *AudioStream) Reset()
func (*AudioStream) String
func (x *AudioStream) String() string
AudioStreamProperty
type AudioStreamProperty struct {
// Index of this audio stream.
Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
// Properties of the audio format.
AudioFormat *AudioFormat `protobuf:"bytes,2,opt,name=audio_format,json=audioFormat,proto3" json:"audio_format,omitempty"`
// contains filtered or unexported fields
}
Properties of the audio stream.
func (*AudioStreamProperty) Descriptor
func (*AudioStreamProperty) Descriptor() ([]byte, []int)
Deprecated: Use AudioStreamProperty.ProtoReflect.Descriptor instead.
func (*AudioStreamProperty) GetAudioFormat
func (x *AudioStreamProperty) GetAudioFormat() *AudioFormat
func (*AudioStreamProperty) GetIndex
func (x *AudioStreamProperty) GetIndex() int32
func (*AudioStreamProperty) ProtoMessage
func (*AudioStreamProperty) ProtoMessage()
func (*AudioStreamProperty) ProtoReflect
func (x *AudioStreamProperty) ProtoReflect() protoreflect.Message
func (*AudioStreamProperty) Reset
func (x *AudioStreamProperty) Reset()
func (*AudioStreamProperty) String
func (x *AudioStreamProperty) String() string
AudioStream_AudioMapping
type AudioStream_AudioMapping struct {
// Required. The `Channel` [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key] that identifies the input that this
// audio mapping applies to. If an active input doesn't have an audio
// mapping, the primary audio track in the input stream will be selected.
InputKey string `protobuf:"bytes,6,opt,name=input_key,json=inputKey,proto3" json:"input_key,omitempty"`
// Required. The zero-based index of the track in the input stream.
// All [mapping][google.cloud.video.livestream.v1.AudioStream.mapping]s in the same [AudioStream][google.cloud.video.livestream.v1.AudioStream]
// must have the same input track.
InputTrack int32 `protobuf:"varint,2,opt,name=input_track,json=inputTrack,proto3" json:"input_track,omitempty"`
// Required. The zero-based index of the channel in the input stream.
InputChannel int32 `protobuf:"varint,3,opt,name=input_channel,json=inputChannel,proto3" json:"input_channel,omitempty"`
// Required. The zero-based index of the channel in the output audio stream.
// Must be consistent with the [input_channel][google.cloud.video.livestream.v1.AudioStream.AudioMapping.input_channel].
OutputChannel int32 `protobuf:"varint,4,opt,name=output_channel,json=outputChannel,proto3" json:"output_channel,omitempty"`
// contains filtered or unexported fields
}
The mapping for the input streams and audio channels.
func (*AudioStream_AudioMapping) Descriptor
func (*AudioStream_AudioMapping) Descriptor() ([]byte, []int)
Deprecated: Use AudioStream_AudioMapping.ProtoReflect.Descriptor instead.
func (*AudioStream_AudioMapping) GetInputChannel
func (x *AudioStream_AudioMapping) GetInputChannel() int32
func (*AudioStream_AudioMapping) GetInputKey
func (x *AudioStream_AudioMapping) GetInputKey() string
func (*AudioStream_AudioMapping) GetInputTrack
func (x *AudioStream_AudioMapping) GetInputTrack() int32
func (*AudioStream_AudioMapping) GetOutputChannel
func (x *AudioStream_AudioMapping) GetOutputChannel() int32
func (*AudioStream_AudioMapping) ProtoMessage
func (*AudioStream_AudioMapping) ProtoMessage()
func (*AudioStream_AudioMapping) ProtoReflect
func (x *AudioStream_AudioMapping) ProtoReflect() protoreflect.Message
func (*AudioStream_AudioMapping) Reset
func (x *AudioStream_AudioMapping) Reset()
func (*AudioStream_AudioMapping) String
func (x *AudioStream_AudioMapping) String() string
Channel
type Channel struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
Labels map[string]string "" /* 153 byte string literal not displayed */
InputAttachments []*InputAttachment `protobuf:"bytes,16,rep,name=input_attachments,json=inputAttachments,proto3" json:"input_attachments,omitempty"`
ActiveInput string `protobuf:"bytes,6,opt,name=active_input,json=activeInput,proto3" json:"active_input,omitempty"`
Output *Channel_Output `protobuf:"bytes,9,opt,name=output,proto3" json:"output,omitempty"`
ElementaryStreams []*ElementaryStream `protobuf:"bytes,10,rep,name=elementary_streams,json=elementaryStreams,proto3" json:"elementary_streams,omitempty"`
MuxStreams []*MuxStream `protobuf:"bytes,11,rep,name=mux_streams,json=muxStreams,proto3" json:"mux_streams,omitempty"`
Manifests []*Manifest `protobuf:"bytes,12,rep,name=manifests,proto3" json:"manifests,omitempty"`
SpriteSheets []*SpriteSheet `protobuf:"bytes,13,rep,name=sprite_sheets,json=spriteSheets,proto3" json:"sprite_sheets,omitempty"`
StreamingState Channel_StreamingState "" /* 166 byte string literal not displayed */
StreamingError *status.Status `protobuf:"bytes,18,opt,name=streaming_error,json=streamingError,proto3" json:"streaming_error,omitempty"`
LogConfig *LogConfig `protobuf:"bytes,19,opt,name=log_config,json=logConfig,proto3" json:"log_config,omitempty"`
}
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.
func (*Channel) Descriptor
Deprecated: Use Channel.ProtoReflect.Descriptor instead.
func (*Channel) GetActiveInput
func (*Channel) GetCreateTime
func (*Channel) GetElementaryStreams
func (x *Channel) GetElementaryStreams() []*ElementaryStream
func (*Channel) GetInputAttachments
func (x *Channel) GetInputAttachments() []*InputAttachment
func (*Channel) GetLabels
func (*Channel) GetLogConfig
func (*Channel) GetManifests
func (*Channel) GetMuxStreams
func (*Channel) GetName
func (*Channel) GetOutput
func (x *Channel) GetOutput() *Channel_Output
func (*Channel) GetSpriteSheets
func (x *Channel) GetSpriteSheets() []*SpriteSheet
func (*Channel) GetStreamingError
func (*Channel) GetStreamingState
func (x *Channel) GetStreamingState() Channel_StreamingState
func (*Channel) GetUpdateTime
func (*Channel) ProtoMessage
func (*Channel) ProtoMessage()
func (*Channel) ProtoReflect
func (x *Channel) ProtoReflect() protoreflect.Message
func (*Channel) Reset
func (x *Channel) Reset()
func (*Channel) String
ChannelOperationResponse
type ChannelOperationResponse struct {
// contains filtered or unexported fields
}
Response message for Start/Stop Channel long-running operations.
func (*ChannelOperationResponse) Descriptor
func (*ChannelOperationResponse) Descriptor() ([]byte, []int)
Deprecated: Use ChannelOperationResponse.ProtoReflect.Descriptor instead.
func (*ChannelOperationResponse) ProtoMessage
func (*ChannelOperationResponse) ProtoMessage()
func (*ChannelOperationResponse) ProtoReflect
func (x *ChannelOperationResponse) ProtoReflect() protoreflect.Message
func (*ChannelOperationResponse) Reset
func (x *ChannelOperationResponse) Reset()
func (*ChannelOperationResponse) String
func (x *ChannelOperationResponse) String() string
Channel_Output
type Channel_Output struct {
// URI for the output file(s). For example, `gs://my-bucket/outputs/`.
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
// contains filtered or unexported fields
}
Location of output file(s) in a Google Cloud Storage bucket.
func (*Channel_Output) Descriptor
func (*Channel_Output) Descriptor() ([]byte, []int)
Deprecated: Use Channel_Output.ProtoReflect.Descriptor instead.
func (*Channel_Output) GetUri
func (x *Channel_Output) GetUri() string
func (*Channel_Output) ProtoMessage
func (*Channel_Output) ProtoMessage()
func (*Channel_Output) ProtoReflect
func (x *Channel_Output) ProtoReflect() protoreflect.Message
func (*Channel_Output) Reset
func (x *Channel_Output) Reset()
func (*Channel_Output) String
func (x *Channel_Output) String() string
Channel_StreamingState
type Channel_StreamingState int32
State of streaming operation that the channel is running.
Channel_STREAMING_STATE_UNSPECIFIED, Channel_STREAMING, Channel_AWAITING_INPUT, Channel_STREAMING_ERROR, Channel_STREAMING_NO_INPUT, Channel_STOPPED, Channel_STARTING, Channel_STOPPING
const (
// Streaming state is not specified.
Channel_STREAMING_STATE_UNSPECIFIED Channel_StreamingState = 0
// Channel is getting the input stream, generating the live streams to the
// specified output location.
Channel_STREAMING Channel_StreamingState = 1
// Channel is waiting for the input stream through the input.
Channel_AWAITING_INPUT Channel_StreamingState = 2
// Channel is running, but has trouble publishing the live streams onto the
// specified output location (for example, the specified Cloud Storage
// bucket is not writable).
Channel_STREAMING_ERROR Channel_StreamingState = 4
// Channel is generating live streams with no input stream. Live streams are
// filled out with black screen, while input stream is missing.
// Not supported yet.
Channel_STREAMING_NO_INPUT Channel_StreamingState = 5
// Channel is stopped, finishing live streams.
Channel_STOPPED Channel_StreamingState = 6
// Channel is starting.
Channel_STARTING Channel_StreamingState = 7
// Channel is stopping.
Channel_STOPPING Channel_StreamingState = 8
)
func (Channel_StreamingState) Descriptor
func (Channel_StreamingState) Descriptor() protoreflect.EnumDescriptor
func (Channel_StreamingState) Enum
func (x Channel_StreamingState) Enum() *Channel_StreamingState
func (Channel_StreamingState) EnumDescriptor
func (Channel_StreamingState) EnumDescriptor() ([]byte, []int)
Deprecated: Use Channel_StreamingState.Descriptor instead.
func (Channel_StreamingState) Number
func (x Channel_StreamingState) Number() protoreflect.EnumNumber
func (Channel_StreamingState) String
func (x Channel_StreamingState) String() string
func (Channel_StreamingState) Type
func (Channel_StreamingState) Type() protoreflect.EnumType
CreateChannelRequest
type CreateChannelRequest struct {
// Required. The parent location for the resource, in the form of:
// `projects/{project}/locations/{location}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The channel resource to be created.
Channel *Channel `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel,omitempty"`
// Required. The ID of the channel resource to be created.
// This value must be 1-63 characters, begin and end with `[a-z0-9]`,
// could contain dashes (-) in between.
ChannelId string `protobuf:"bytes,3,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
// A request ID to identify requests. Specify a unique request ID
// so that if you must retry your request, the server will know to ignore
// the request if it has already been completed. The server will guarantee
// that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request ID,
// the server can check if original operation with the same request ID was
// received, and if so, will ignore the second request. This prevents clients
// from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported `(00000000-0000-0000-0000-000000000000)`.
RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}
Request message for "LivestreamService.CreateChannel".
func (*CreateChannelRequest) Descriptor
func (*CreateChannelRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateChannelRequest.ProtoReflect.Descriptor instead.
func (*CreateChannelRequest) GetChannel
func (x *CreateChannelRequest) GetChannel() *Channel
func (*CreateChannelRequest) GetChannelId
func (x *CreateChannelRequest) GetChannelId() string
func (*CreateChannelRequest) GetParent
func (x *CreateChannelRequest) GetParent() string
func (*CreateChannelRequest) GetRequestId
func (x *CreateChannelRequest) GetRequestId() string
func (*CreateChannelRequest) ProtoMessage
func (*CreateChannelRequest) ProtoMessage()
func (*CreateChannelRequest) ProtoReflect
func (x *CreateChannelRequest) ProtoReflect() protoreflect.Message
func (*CreateChannelRequest) Reset
func (x *CreateChannelRequest) Reset()
func (*CreateChannelRequest) String
func (x *CreateChannelRequest) String() string
CreateEventRequest
type CreateEventRequest struct {
// Required. The parent channel for the resource, in the form of:
// `projects/{project}/locations/{location}/channels/{channelId}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The event resource to be created.
Event *Event `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"`
// Required. The ID of the event resource to be created.
// This value must be 1-63 characters, begin and end with `[a-z0-9]`,
// could contain dashes (-) in between.
EventId string `protobuf:"bytes,3,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"`
// A request ID to identify requests. Specify a unique request ID
// so that if you must retry your request, the server will know to ignore
// the request if it has already been completed. The server will guarantee
// that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request ID,
// the server can check if original operation with the same request ID was
// received, and if so, will ignore the second request. This prevents clients
// from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported `(00000000-0000-0000-0000-000000000000)`.
RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}
Request message for "LivestreamService.CreateEvent".
func (*CreateEventRequest) Descriptor
func (*CreateEventRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateEventRequest.ProtoReflect.Descriptor instead.
func (*CreateEventRequest) GetEvent
func (x *CreateEventRequest) GetEvent() *Event
func (*CreateEventRequest) GetEventId
func (x *CreateEventRequest) GetEventId() string
func (*CreateEventRequest) GetParent
func (x *CreateEventRequest) GetParent() string
func (*CreateEventRequest) GetRequestId
func (x *CreateEventRequest) GetRequestId() string
func (*CreateEventRequest) ProtoMessage
func (*CreateEventRequest) ProtoMessage()
func (*CreateEventRequest) ProtoReflect
func (x *CreateEventRequest) ProtoReflect() protoreflect.Message
func (*CreateEventRequest) Reset
func (x *CreateEventRequest) Reset()
func (*CreateEventRequest) String
func (x *CreateEventRequest) String() string
CreateInputRequest
type CreateInputRequest struct {
// Required. The parent location for the resource, in the form of:
// `projects/{project}/locations/{location}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The input resource to be created.
Input *Input `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"`
// Required. The ID of the input resource to be created.
// This value must be 1-63 characters, begin and end with `[a-z0-9]`,
// could contain dashes (-) in between.
InputId string `protobuf:"bytes,3,opt,name=input_id,json=inputId,proto3" json:"input_id,omitempty"`
// A request ID to identify requests. Specify a unique request ID
// so that if you must retry your request, the server will know to ignore
// the request if it has already been completed. The server will guarantee
// that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request ID,
// the server can check if original operation with the same request ID was
// received, and if so, will ignore the second request. This prevents clients
// from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported `(00000000-0000-0000-0000-000000000000)`.
RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}
Request message for "LivestreamService.CreateInput".
func (*CreateInputRequest) Descriptor
func (*CreateInputRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateInputRequest.ProtoReflect.Descriptor instead.
func (*CreateInputRequest) GetInput
func (x *CreateInputRequest) GetInput() *Input
func (*CreateInputRequest) GetInputId
func (x *CreateInputRequest) GetInputId() string
func (*CreateInputRequest) GetParent
func (x *CreateInputRequest) GetParent() string
func (*CreateInputRequest) GetRequestId
func (x *CreateInputRequest) GetRequestId() string
func (*CreateInputRequest) ProtoMessage
func (*CreateInputRequest) ProtoMessage()
func (*CreateInputRequest) ProtoReflect
func (x *CreateInputRequest) ProtoReflect() protoreflect.Message
func (*CreateInputRequest) Reset
func (x *CreateInputRequest) Reset()
func (*CreateInputRequest) String
func (x *CreateInputRequest) String() string
DeleteChannelRequest
type DeleteChannelRequest struct {
// Required. The name of the channel resource, in the form of:
// `projects/{project}/locations/{location}/channels/{channelId}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// A request ID to identify requests. Specify a unique request ID
// so that if you must retry your request, the server will know to ignore
// the request if it has already been completed. The server will guarantee
// that for at least 60 minutes after the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request ID,
// the server can check if original operation with the same request ID was
// received, and if so, will ignore the second request. This prevents clients
// from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported `(00000000-0000-0000-0000-000000000000)`.
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// If the `force` field is set to the default value of `false`, you must
// delete all of a channel's events before you can delete the channel itself.
// If the field is set to `true`, requests to delete a channel also delete
// associated channel events.
Force bool `protobuf:"varint,3,opt,name=force,proto3" json:"force,omitempty"`
// contains filtered or unexported fields
}
Request message for "LivestreamService.DeleteChannel".
func (*DeleteChannelRequest) Descriptor
func (*DeleteChannelRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteChannelRequest.ProtoReflect.Descriptor instead.
func (*DeleteChannelRequest) GetForce
func (x *DeleteChannelRequest) GetForce() bool
func (*DeleteChannelRequest) GetName
func (x *DeleteChannelRequest) GetName() string
func (*DeleteChannelRequest) GetRequestId
func (x *DeleteChannelRequest) GetRequestId() string
func (*DeleteChannelRequest) ProtoMessage
func (*DeleteChannelRequest) ProtoMessage()
func (*DeleteChannelRequest) ProtoReflect
func (x *DeleteChannelRequest) ProtoReflect() protoreflect.Message
func (*DeleteChannelRequest) Reset
func (x *DeleteChannelRequest) Reset()
func (*DeleteChannelRequest) String
func (x *DeleteChannelRequest) String() string
DeleteEventRequest
type DeleteEventRequest struct {
// Required. The name of the event resource, in the form of:
// `projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// A request ID to identify requests. Specify a unique request ID
// so that if you must retry your request, the server will know to ignore
// the request if it has already been completed. The server will guarantee
// that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request ID,
// the server can check if original operation with the same request ID was
// received, and if so, will ignore the second request. This prevents clients
// from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported `(00000000-0000-0000-0000-000000000000)`.
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}
Request message for "LivestreamService.DeleteEvent".
func (*DeleteEventRequest) Descriptor
func (*DeleteEventRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteEventRequest.ProtoReflect.Descriptor instead.
func (*DeleteEventRequest) GetName
func (x *DeleteEventRequest) GetName() string
func (*DeleteEventRequest) GetRequestId
func (x *DeleteEventRequest) GetRequestId() string
func (*DeleteEventRequest) ProtoMessage
func (*DeleteEventRequest) ProtoMessage()
func (*DeleteEventRequest) ProtoReflect
func (x *DeleteEventRequest) ProtoReflect() protoreflect.Message
func (*DeleteEventRequest) Reset
func (x *DeleteEventRequest) Reset()
func (*DeleteEventRequest) String
func (x *DeleteEventRequest) String() string
DeleteInputRequest
type DeleteInputRequest struct {
// Required. The name of the input resource, in the form of:
// `projects/{project}/locations/{location}/inputs/{inputId}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// A request ID to identify requests. Specify a unique request ID
// so that if you must retry your request, the server will know to ignore
// the request if it has already been completed. The server will guarantee
// that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request ID,
// the server can check if original operation with the same request ID was
// received, and if so, will ignore the second request. This prevents clients
// from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported `(00000000-0000-0000-0000-000000000000)`.
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}
Request message for "LivestreamService.DeleteInput".
func (*DeleteInputRequest) Descriptor
func (*DeleteInputRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteInputRequest.ProtoReflect.Descriptor instead.
func (*DeleteInputRequest) GetName
func (x *DeleteInputRequest) GetName() string
func (*DeleteInputRequest) GetRequestId
func (x *DeleteInputRequest) GetRequestId() string
func (*DeleteInputRequest) ProtoMessage
func (*DeleteInputRequest) ProtoMessage()
func (*DeleteInputRequest) ProtoReflect
func (x *DeleteInputRequest) ProtoReflect() protoreflect.Message
func (*DeleteInputRequest) Reset
func (x *DeleteInputRequest) Reset()
func (*DeleteInputRequest) String
func (x *DeleteInputRequest) String() string
ElementaryStream
type ElementaryStream struct {
// A unique key for this elementary stream.
Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
// Required. Encoding of an audio, video, or text track.
//
// Types that are assignable to ElementaryStream:
//
// *ElementaryStream_VideoStream
// *ElementaryStream_AudioStream
// *ElementaryStream_TextStream
ElementaryStream isElementaryStream_ElementaryStream `protobuf_oneof:"elementary_stream"`
// contains filtered or unexported fields
}
Encoding of an input element such as an audio, video, or text track. Elementary streams must be packaged before mapping and sharing between different output formats.
func (*ElementaryStream) Descriptor
func (*ElementaryStream) Descriptor() ([]byte, []int)
Deprecated: Use ElementaryStream.ProtoReflect.Descriptor instead.
func (*ElementaryStream) GetAudioStream
func (x *ElementaryStream) GetAudioStream() *AudioStream
func (*ElementaryStream) GetElementaryStream
func (m *ElementaryStream) GetElementaryStream() isElementaryStream_ElementaryStream
func (*ElementaryStream) GetKey
func (x *ElementaryStream) GetKey() string
func (*ElementaryStream) GetTextStream
func (x *ElementaryStream) GetTextStream() *TextStream
func (*ElementaryStream) GetVideoStream
func (x *ElementaryStream) GetVideoStream() *VideoStream
func (*ElementaryStream) ProtoMessage
func (*ElementaryStream) ProtoMessage()
func (*ElementaryStream) ProtoReflect
func (x *ElementaryStream) ProtoReflect() protoreflect.Message
func (*ElementaryStream) Reset
func (x *ElementaryStream) Reset()
func (*ElementaryStream) String
func (x *ElementaryStream) String() string
ElementaryStream_AudioStream
type ElementaryStream_AudioStream struct {
// Encoding of an audio stream.
AudioStream *AudioStream `protobuf:"bytes,2,opt,name=audio_stream,json=audioStream,proto3,oneof"`
}
ElementaryStream_TextStream
type ElementaryStream_TextStream struct {
// Encoding of a text stream. For example, closed captions or subtitles.
TextStream *TextStream `protobuf:"bytes,3,opt,name=text_stream,json=textStream,proto3,oneof"`
}
ElementaryStream_VideoStream
type ElementaryStream_VideoStream struct {
// Encoding of a video stream.
VideoStream *VideoStream `protobuf:"bytes,1,opt,name=video_stream,json=videoStream,proto3,oneof"`
}
Event
type Event struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
Labels map[string]string "" /* 153 byte string literal not displayed */
Task isEvent_Task `protobuf_oneof:"task"`
ExecuteNow bool `protobuf:"varint,9,opt,name=execute_now,json=executeNow,proto3" json:"execute_now,omitempty"`
ExecutionTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=execution_time,json=executionTime,proto3" json:"execution_time,omitempty"`
State Event_State `protobuf:"varint,11,opt,name=state,proto3,enum=google.cloud.video.livestream.v1.Event_State" json:"state,omitempty"`
Error *status.Status `protobuf:"bytes,12,opt,name=error,proto3" json:"error,omitempty"`
}
Event is a sub-resource of a channel, which can be scheduled by the user to execute operations on a channel resource without having to stop the channel.
func (*Event) Descriptor
Deprecated: Use Event.ProtoReflect.Descriptor instead.
func (*Event) GetAdBreak
func (x *Event) GetAdBreak() *Event_AdBreakTask
func (*Event) GetCreateTime
func (*Event) GetError
func (*Event) GetExecuteNow
func (*Event) GetExecutionTime
func (*Event) GetLabels
func (*Event) GetName
func (*Event) GetState
func (x *Event) GetState() Event_State
func (*Event) GetTask
func (m *Event) GetTask() isEvent_Task
func (*Event) GetUpdateTime
func (*Event) ProtoMessage
func (*Event) ProtoMessage()
func (*Event) ProtoReflect
func (x *Event) ProtoReflect() protoreflect.Message
func (*Event) Reset
func (x *Event) Reset()
func (*Event) String
Event_AdBreak
type Event_AdBreak struct {
// Required. Inserts a new ad opportunity.
AdBreak *Event_AdBreakTask `protobuf:"bytes,6,opt,name=ad_break,json=adBreak,proto3,oneof"`
}
Event_AdBreakTask
type Event_AdBreakTask struct {
// Duration of an ad opportunity. Must be greater than 0.
Duration *duration.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"`
// contains filtered or unexported fields
}
Inserts a new ad opportunity.
func (*Event_AdBreakTask) Descriptor
func (*Event_AdBreakTask) Descriptor() ([]byte, []int)
Deprecated: Use Event_AdBreakTask.ProtoReflect.Descriptor instead.
func (*Event_AdBreakTask) GetDuration
func (x *Event_AdBreakTask) GetDuration() *duration.Duration
func (*Event_AdBreakTask) ProtoMessage
func (*Event_AdBreakTask) ProtoMessage()
func (*Event_AdBreakTask) ProtoReflect
func (x *Event_AdBreakTask) ProtoReflect() protoreflect.Message
func (*Event_AdBreakTask) Reset
func (x *Event_AdBreakTask) Reset()
func (*Event_AdBreakTask) String
func (x *Event_AdBreakTask) String() string
Event_State
type Event_State int32
State of the event
Event_STATE_UNSPECIFIED, Event_SCHEDULED, Event_RUNNING, Event_SUCCEEDED, Event_FAILED, Event_PENDING, Event_STOPPED
const (
// Event state is not specified.
Event_STATE_UNSPECIFIED Event_State = 0
// Event is scheduled but not executed yet.
Event_SCHEDULED Event_State = 1
// Event is being executed.
Event_RUNNING Event_State = 2
// Event has been successfully executed.
Event_SUCCEEDED Event_State = 3
// Event fails to be executed.
Event_FAILED Event_State = 4
// Event has been created but not scheduled yet.
Event_PENDING Event_State = 5
// Event was stopped before running for its full duration.
Event_STOPPED Event_State = 6
)
func (Event_State) Descriptor
func (Event_State) Descriptor() protoreflect.EnumDescriptor
func (Event_State) Enum
func (x Event_State) Enum() *Event_State
func (Event_State) EnumDescriptor
func (Event_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use Event_State.Descriptor instead.
func (Event_State) Number
func (x Event_State) Number() protoreflect.EnumNumber
func (Event_State) String
func (x Event_State) String() string
func (Event_State) Type
func (Event_State) Type() protoreflect.EnumType
GetChannelRequest
type GetChannelRequest struct {
// Required. The name of the channel resource, in the form of:
// `projects/{project}/locations/{location}/channels/{channelId}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for "LivestreamService.GetChannel".
func (*GetChannelRequest) Descriptor
func (*GetChannelRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetChannelRequest.ProtoReflect.Descriptor instead.
func (*GetChannelRequest) GetName
func (x *GetChannelRequest) GetName() string
func (*GetChannelRequest) ProtoMessage
func (*GetChannelRequest) ProtoMessage()
func (*GetChannelRequest) ProtoReflect
func (x *GetChannelRequest) ProtoReflect() protoreflect.Message
func (*GetChannelRequest) Reset
func (x *GetChannelRequest) Reset()
func (*GetChannelRequest) String
func (x *GetChannelRequest) String() string
GetEventRequest
type GetEventRequest struct {
// Required. The name of the event resource, in the form of:
// `projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for "LivestreamService.GetEvent".
func (*GetEventRequest) Descriptor
func (*GetEventRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetEventRequest.ProtoReflect.Descriptor instead.
func (*GetEventRequest) GetName
func (x *GetEventRequest) GetName() string
func (*GetEventRequest) ProtoMessage
func (*GetEventRequest) ProtoMessage()
func (*GetEventRequest) ProtoReflect
func (x *GetEventRequest) ProtoReflect() protoreflect.Message
func (*GetEventRequest) Reset
func (x *GetEventRequest) Reset()
func (*GetEventRequest) String
func (x *GetEventRequest) String() string
GetInputRequest
type GetInputRequest struct {
// Required. The name of the input resource, in the form of:
// `projects/{project}/locations/{location}/inputs/{inputId}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for "LivestreamService.GetInput".
func (*GetInputRequest) Descriptor
func (*GetInputRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetInputRequest.ProtoReflect.Descriptor instead.
func (*GetInputRequest) GetName
func (x *GetInputRequest) GetName() string
func (*GetInputRequest) ProtoMessage
func (*GetInputRequest) ProtoMessage()
func (*GetInputRequest) ProtoReflect
func (x *GetInputRequest) ProtoReflect() protoreflect.Message
func (*GetInputRequest) Reset
func (x *GetInputRequest) Reset()
func (*GetInputRequest) String
func (x *GetInputRequest) String() string
Input
type Input struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
Labels map[string]string "" /* 153 byte string literal not displayed */
Type Input_Type `protobuf:"varint,5,opt,name=type,proto3,enum=google.cloud.video.livestream.v1.Input_Type" json:"type,omitempty"`
Tier Input_Tier `protobuf:"varint,14,opt,name=tier,proto3,enum=google.cloud.video.livestream.v1.Input_Tier" json:"tier,omitempty"`
Uri string `protobuf:"bytes,6,opt,name=uri,proto3" json:"uri,omitempty"`
PreprocessingConfig *PreprocessingConfig `protobuf:"bytes,9,opt,name=preprocessing_config,json=preprocessingConfig,proto3" json:"preprocessing_config,omitempty"`
SecurityRules *Input_SecurityRule `protobuf:"bytes,12,opt,name=security_rules,json=securityRules,proto3" json:"security_rules,omitempty"`
InputStreamProperty *InputStreamProperty `protobuf:"bytes,15,opt,name=input_stream_property,json=inputStreamProperty,proto3" json:"input_stream_property,omitempty"`
}
Input resource represents the endpoint from which the channel ingests the input stream.
func (*Input) Descriptor
Deprecated: Use Input.ProtoReflect.Descriptor instead.
func (*Input) GetCreateTime
func (*Input) GetInputStreamProperty
func (x *Input) GetInputStreamProperty() *InputStreamProperty
func (*Input) GetLabels
func (*Input) GetName
func (*Input) GetPreprocessingConfig
func (x *Input) GetPreprocessingConfig() *PreprocessingConfig
func (*Input) GetSecurityRules
func (x *Input) GetSecurityRules() *Input_SecurityRule
func (*Input) GetTier
func (x *Input) GetTier() Input_Tier
func (*Input) GetType
func (x *Input) GetType() Input_Type
func (*Input) GetUpdateTime
func (*Input) GetUri
func (*Input) ProtoMessage
func (*Input) ProtoMessage()
func (*Input) ProtoReflect
func (x *Input) ProtoReflect() protoreflect.Message
func (*Input) Reset
func (x *Input) Reset()
func (*Input) String
InputAttachment
type InputAttachment struct {
// A unique key for this input attachment.
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// The resource name of an existing input, in the form of:
// `projects/{project}/locations/{location}/inputs/{inputId}`.
Input string `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"`
// Automatic failover configurations.
AutomaticFailover *InputAttachment_AutomaticFailover `protobuf:"bytes,3,opt,name=automatic_failover,json=automaticFailover,proto3" json:"automatic_failover,omitempty"`
// contains filtered or unexported fields
}
A group of information for attaching an input resource to this channel.
func (*InputAttachment) Descriptor
func (*InputAttachment) Descriptor() ([]byte, []int)
Deprecated: Use InputAttachment.ProtoReflect.Descriptor instead.
func (*InputAttachment) GetAutomaticFailover
func (x *InputAttachment) GetAutomaticFailover() *InputAttachment_AutomaticFailover
func (*InputAttachment) GetInput
func (x *InputAttachment) GetInput() string
func (*InputAttachment) GetKey
func (x *InputAttachment) GetKey() string
func (*InputAttachment) ProtoMessage
func (*InputAttachment) ProtoMessage()
func (*InputAttachment) ProtoReflect
func (x *InputAttachment) ProtoReflect() protoreflect.Message
func (*InputAttachment) Reset
func (x *InputAttachment) Reset()
func (*InputAttachment) String
func (x *InputAttachment) String() string
InputAttachment_AutomaticFailover
type InputAttachment_AutomaticFailover struct {
// The [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]s of inputs to failover to when this input is
// disconnected. Currently, only up to one backup input is supported.
InputKeys []string `protobuf:"bytes,1,rep,name=input_keys,json=inputKeys,proto3" json:"input_keys,omitempty"`
// contains filtered or unexported fields
}
Configurations to follow when automatic failover happens.
func (*InputAttachment_AutomaticFailover) Descriptor
func (*InputAttachment_AutomaticFailover) Descriptor() ([]byte, []int)
Deprecated: Use InputAttachment_AutomaticFailover.ProtoReflect.Descriptor instead.
func (*InputAttachment_AutomaticFailover) GetInputKeys
func (x *InputAttachment_AutomaticFailover) GetInputKeys() []string
func (*InputAttachment_AutomaticFailover) ProtoMessage
func (*InputAttachment_AutomaticFailover) ProtoMessage()
func (*InputAttachment_AutomaticFailover) ProtoReflect
func (x *InputAttachment_AutomaticFailover) ProtoReflect() protoreflect.Message
func (*InputAttachment_AutomaticFailover) Reset
func (x *InputAttachment_AutomaticFailover) Reset()
func (*InputAttachment_AutomaticFailover) String
func (x *InputAttachment_AutomaticFailover) String() string
InputStreamProperty
type InputStreamProperty struct {
// The time that the current input stream is accepted and the connection is
// established.
LastEstablishTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=last_establish_time,json=lastEstablishTime,proto3" json:"last_establish_time,omitempty"`
// Properties of the video streams.
VideoStreams []*VideoStreamProperty `protobuf:"bytes,2,rep,name=video_streams,json=videoStreams,proto3" json:"video_streams,omitempty"`
// Properties of the audio streams.
AudioStreams []*AudioStreamProperty `protobuf:"bytes,3,rep,name=audio_streams,json=audioStreams,proto3" json:"audio_streams,omitempty"`
// contains filtered or unexported fields
}
Properties of the input stream.
func (*InputStreamProperty) Descriptor
func (*InputStreamProperty) Descriptor() ([]byte, []int)
Deprecated: Use InputStreamProperty.ProtoReflect.Descriptor instead.
func (*InputStreamProperty) GetAudioStreams
func (x *InputStreamProperty) GetAudioStreams() []*AudioStreamProperty
func (*InputStreamProperty) GetLastEstablishTime
func (x *InputStreamProperty) GetLastEstablishTime() *timestamp.Timestamp
func (*InputStreamProperty) GetVideoStreams
func (x *InputStreamProperty) GetVideoStreams() []*VideoStreamProperty
func (*InputStreamProperty) ProtoMessage
func (*InputStreamProperty) ProtoMessage()
func (*InputStreamProperty) ProtoReflect
func (x *InputStreamProperty) ProtoReflect() protoreflect.Message
func (*InputStreamProperty) Reset
func (x *InputStreamProperty) Reset()
func (*InputStreamProperty) String
func (x *InputStreamProperty) String() string
Input_SecurityRule
type Input_SecurityRule struct {
// At least one ip range must match unless none specified. The IP range is
// defined by CIDR block: for example, `192.0.1.0/24` for a range and
// `192.0.1.0/32` for a single IP address.
IpRanges []string `protobuf:"bytes,1,rep,name=ip_ranges,json=ipRanges,proto3" json:"ip_ranges,omitempty"`
// contains filtered or unexported fields
}
Security rules for access control. Each field represents one security rule. Only when the source of the input stream satisfies all the fields, this input stream can be accepted.
func (*Input_SecurityRule) Descriptor
func (*Input_SecurityRule) Descriptor() ([]byte, []int)
Deprecated: Use Input_SecurityRule.ProtoReflect.Descriptor instead.
func (*Input_SecurityRule) GetIpRanges
func (x *Input_SecurityRule) GetIpRanges() []string
func (*Input_SecurityRule) ProtoMessage
func (*Input_SecurityRule) ProtoMessage()
func (*Input_SecurityRule) ProtoReflect
func (x *Input_SecurityRule) ProtoReflect() protoreflect.Message
func (*Input_SecurityRule) Reset
func (x *Input_SecurityRule) Reset()
func (*Input_SecurityRule) String
func (x *Input_SecurityRule) String() string
Input_Tier
type Input_Tier int32
Tier of the input specification.
Input_TIER_UNSPECIFIED, Input_SD, Input_HD, Input_UHD
const (
// Tier is not specified.
Input_TIER_UNSPECIFIED Input_Tier = 0
// Resolution < 1280x720.="" bitrate=""><= 6="" mbps.="" fps=""><= 60.="" input_sd="">Input_Tier = 1
// Resolution <= 1920x1080.="" bitrate=""><= 25="" mbps.="" fps=""><= 60.="" input_hd="">Input_Tier = 2
// Resolution <= 4096x2160.="" not="" supported="" yet.="" input_uhd="">Input_Tier = 3
)
func (Input_Tier) Descriptor
func (Input_Tier) Descriptor() protoreflect.EnumDescriptor
func (Input_Tier) Enum
func (x Input_Tier) Enum() *Input_Tier
func (Input_Tier) EnumDescriptor
func (Input_Tier) EnumDescriptor() ([]byte, []int)
Deprecated: Use Input_Tier.Descriptor instead.
func (Input_Tier) Number
func (x Input_Tier) Number() protoreflect.EnumNumber
func (Input_Tier) String
func (x Input_Tier) String() string
func (Input_Tier) Type
func (Input_Tier) Type() protoreflect.EnumType
Input_Type
type Input_Type int32
The type of the input.
Input_TYPE_UNSPECIFIED, Input_RTMP_PUSH, Input_SRT_PUSH
const (
// Input type is not specified.
Input_TYPE_UNSPECIFIED Input_Type = 0
// Input will take an rtmp input stream.
Input_RTMP_PUSH Input_Type = 1
// Input will take an srt (Secure Reliable Transport) input stream.
Input_SRT_PUSH Input_Type = 2
)
func (Input_Type) Descriptor
func (Input_Type) Descriptor() protoreflect.EnumDescriptor
func (Input_Type) Enum
func (x Input_Type) Enum() *Input_Type
func (Input_Type) EnumDescriptor
func (Input_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Input_Type.Descriptor instead.
func (Input_Type) Number
func (x Input_Type) Number() protoreflect.EnumNumber
func (Input_Type) String
func (x Input_Type) String() string
func (Input_Type) Type
func (Input_Type) Type() protoreflect.EnumType
ListChannelsRequest
type ListChannelsRequest struct {
// Required. The parent location for the resource, in the form of:
// `projects/{project}/locations/{location}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The maximum number of items to return. If unspecified, server
// will pick an appropriate default. Server may return fewer items than
// requested. A caller should only rely on response's
// [next_page_token][google.cloud.video.livestream.v1.ListChannelsResponse.next_page_token] to
// determine if there are more items left to be queried.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The next_page_token value returned from a previous List request, if any.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// The filter to apply to list results.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Specifies the ordering of results following syntax at
// https://cloud.google.com/apis/design/design_patterns#sorting_order.
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}
Request message for "LivestreamService.ListChannels".
func (*ListChannelsRequest) Descriptor
func (*ListChannelsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListChannelsRequest.ProtoReflect.Descriptor instead.
func (*ListChannelsRequest) GetFilter
func (x *ListChannelsRequest) GetFilter() string
func (*ListChannelsRequest) GetOrderBy
func (x *ListChannelsRequest) GetOrderBy() string
func (*ListChannelsRequest) GetPageSize
func (x *ListChannelsRequest) GetPageSize() int32
func (*ListChannelsRequest) GetPageToken
func (x *ListChannelsRequest) GetPageToken() string
func (*ListChannelsRequest) GetParent
func (x *ListChannelsRequest) GetParent() string
func (*ListChannelsRequest) ProtoMessage
func (*ListChannelsRequest) ProtoMessage()
func (*ListChannelsRequest) ProtoReflect
func (x *ListChannelsRequest) ProtoReflect() protoreflect.Message
func (*ListChannelsRequest) Reset
func (x *ListChannelsRequest) Reset()
func (*ListChannelsRequest) String
func (x *ListChannelsRequest) String() string
ListChannelsResponse
type ListChannelsResponse struct {
// A list of channels.
Channels []*Channel `protobuf:"bytes,1,rep,name=channels,proto3" json:"channels,omitempty"`
// Token to retrieve the next page of results, or empty if there are no more
// results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}
Response message for "LivestreamService.ListChannels".
func (*ListChannelsResponse) Descriptor
func (*ListChannelsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListChannelsResponse.ProtoReflect.Descriptor instead.
func (*ListChannelsResponse) GetChannels
func (x *ListChannelsResponse) GetChannels() []*Channel
func (*ListChannelsResponse) GetNextPageToken
func (x *ListChannelsResponse) GetNextPageToken() string
func (*ListChannelsResponse) GetUnreachable
func (x *ListChannelsResponse) GetUnreachable() []string
func (*ListChannelsResponse) ProtoMessage
func (*ListChannelsResponse) ProtoMessage()
func (*ListChannelsResponse) ProtoReflect
func (x *ListChannelsResponse) ProtoReflect() protoreflect.Message
func (*ListChannelsResponse) Reset
func (x *ListChannelsResponse) Reset()
func (*ListChannelsResponse) String
func (x *ListChannelsResponse) String() string
ListEventsRequest
type ListEventsRequest struct {
// Required. The parent channel for the resource, in the form of:
// `projects/{project}/locations/{location}/channels/{channelId}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The maximum number of items to return. If unspecified, server
// will pick an appropriate default. Server may return fewer items than
// requested. A caller should only rely on response's
// [next_page_token][google.cloud.video.livestream.v1.ListEventsResponse.next_page_token] to
// determine if there are more items left to be queried.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The next_page_token value returned from a previous List request, if any.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// The filter to apply to list results.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Specifies the ordering of results following syntax at
// https://cloud.google.com/apis/design/design_patterns#sorting_order.
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}
Request message for "LivestreamService.ListEvents".
func (*ListEventsRequest) Descriptor
func (*ListEventsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListEventsRequest.ProtoReflect.Descriptor instead.
func (*ListEventsRequest) GetFilter
func (x *ListEventsRequest) GetFilter() string
func (*ListEventsRequest) GetOrderBy
func (x *ListEventsRequest) GetOrderBy() string
func (*ListEventsRequest) GetPageSize
func (x *ListEventsRequest) GetPageSize() int32
func (*ListEventsRequest) GetPageToken
func (x *ListEventsRequest) GetPageToken() string
func (*ListEventsRequest) GetParent
func (x *ListEventsRequest) GetParent() string
func (*ListEventsRequest) ProtoMessage
func (*ListEventsRequest) ProtoMessage()
func (*ListEventsRequest) ProtoReflect
func (x *ListEventsRequest) ProtoReflect() protoreflect.Message
func (*ListEventsRequest) Reset
func (x *ListEventsRequest) Reset()
func (*ListEventsRequest) String
func (x *ListEventsRequest) String() string
ListEventsResponse
type ListEventsResponse struct {
// A list of events.
Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
// Token to retrieve the next page of results, or empty if there are no more
// results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}
Response message for "LivestreamService.ListEvents".
func (*ListEventsResponse) Descriptor
func (*ListEventsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListEventsResponse.ProtoReflect.Descriptor instead.
func (*ListEventsResponse) GetEvents
func (x *ListEventsResponse) GetEvents() []*Event
func (*ListEventsResponse) GetNextPageToken
func (x *ListEventsResponse) GetNextPageToken() string
func (*ListEventsResponse) GetUnreachable
func (x *ListEventsResponse) GetUnreachable() []string
func (*ListEventsResponse) ProtoMessage
func (*ListEventsResponse) ProtoMessage()
func (*ListEventsResponse) ProtoReflect
func (x *ListEventsResponse) ProtoReflect() protoreflect.Message
func (*ListEventsResponse) Reset
func (x *ListEventsResponse) Reset()
func (*ListEventsResponse) String
func (x *ListEventsResponse) String() string
ListInputsRequest
type ListInputsRequest struct {
// Required. The parent location for the resource, in the form of:
// `projects/{project}/locations/{location}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The maximum number of items to return. If unspecified, server
// will pick an appropriate default. Server may return fewer items than
// requested. A caller should only rely on response's
// [next_page_token][google.cloud.video.livestream.v1.ListInputsResponse.next_page_token] to
// determine if there are more items left to be queried.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The next_page_token value returned from a previous List request, if any.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// The filter to apply to list results.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Specifies the ordering of results following syntax at [Sorting
// Order](https://cloud.google.com/apis/design/design_patterns#sorting_order).
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}
Request message for "LivestreamService.ListInputs".
func (*ListInputsRequest) Descriptor
func (*ListInputsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListInputsRequest.ProtoReflect.Descriptor instead.
func (*ListInputsRequest) GetFilter
func (x *ListInputsRequest) GetFilter() string
func (*ListInputsRequest) GetOrderBy
func (x *ListInputsRequest) GetOrderBy() string
func (*ListInputsRequest) GetPageSize
func (x *ListInputsRequest) GetPageSize() int32
func (*ListInputsRequest) GetPageToken
func (x *ListInputsRequest) GetPageToken() string
func (*ListInputsRequest) GetParent
func (x *ListInputsRequest) GetParent() string
func (*ListInputsRequest) ProtoMessage
func (*ListInputsRequest) ProtoMessage()
func (*ListInputsRequest) ProtoReflect
func (x *ListInputsRequest) ProtoReflect() protoreflect.Message
func (*ListInputsRequest) Reset
func (x *ListInputsRequest) Reset()
func (*ListInputsRequest) String
func (x *ListInputsRequest) String() string
ListInputsResponse
type ListInputsResponse struct {
// A list of inputs.
Inputs []*Input `protobuf:"bytes,1,rep,name=inputs,proto3" json:"inputs,omitempty"`
// Token to retrieve the next page of results, or empty if there are no more
// results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}
Response message for "LivestreamService.ListInputs".
func (*ListInputsResponse) Descriptor
func (*ListInputsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListInputsResponse.ProtoReflect.Descriptor instead.
func (*ListInputsResponse) GetInputs
func (x *ListInputsResponse) GetInputs() []*Input
func (*ListInputsResponse) GetNextPageToken
func (x *ListInputsResponse) GetNextPageToken() string
func (*ListInputsResponse) GetUnreachable
func (x *ListInputsResponse) GetUnreachable() []string
func (*ListInputsResponse) ProtoMessage
func (*ListInputsResponse) ProtoMessage()
func (*ListInputsResponse) ProtoReflect
func (x *ListInputsResponse) ProtoReflect() protoreflect.Message
func (*ListInputsResponse) Reset
func (x *ListInputsResponse) Reset()
func (*ListInputsResponse) String
func (x *ListInputsResponse) String() string
LivestreamServiceClient
type LivestreamServiceClient interface {
// Creates a channel with the provided unique ID in the specified
// region.
CreateChannel(ctx context.Context, in *CreateChannelRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// Returns a list of all channels in the specified region.
ListChannels(ctx context.Context, in *ListChannelsRequest, opts ...grpc.CallOption) (*ListChannelsResponse, error)
// Returns the specified channel.
GetChannel(ctx context.Context, in *GetChannelRequest, opts ...grpc.CallOption) (*Channel, error)
// Deletes the specified channel.
DeleteChannel(ctx context.Context, in *DeleteChannelRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// Updates the specified channel.
UpdateChannel(ctx context.Context, in *UpdateChannelRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// Starts the specified channel. Part of the video pipeline will be created
// only when the StartChannel request is received by the server.
StartChannel(ctx context.Context, in *StartChannelRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// Stops the specified channel. Part of the video pipeline will be released
// when the StopChannel request is received by the server.
StopChannel(ctx context.Context, in *StopChannelRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// Creates an input with the provided unique ID in the specified region.
CreateInput(ctx context.Context, in *CreateInputRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// Returns a list of all inputs in the specified region.
ListInputs(ctx context.Context, in *ListInputsRequest, opts ...grpc.CallOption) (*ListInputsResponse, error)
// Returns the specified input.
GetInput(ctx context.Context, in *GetInputRequest, opts ...grpc.CallOption) (*Input, error)
// Deletes the specified input.
DeleteInput(ctx context.Context, in *DeleteInputRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// Updates the specified input.
UpdateInput(ctx context.Context, in *UpdateInputRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// Creates an event with the provided unique ID in the specified channel.
CreateEvent(ctx context.Context, in *CreateEventRequest, opts ...grpc.CallOption) (*Event, error)
// Returns a list of all events in the specified channel.
ListEvents(ctx context.Context, in *ListEventsRequest, opts ...grpc.CallOption) (*ListEventsResponse, error)
// Returns the specified event.
GetEvent(ctx context.Context, in *GetEventRequest, opts ...grpc.CallOption) (*Event, error)
// Deletes the specified event.
DeleteEvent(ctx context.Context, in *DeleteEventRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}
LivestreamServiceClient is the client API for LivestreamService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLivestreamServiceClient
func NewLivestreamServiceClient(cc grpc.ClientConnInterface) LivestreamServiceClient
LivestreamServiceServer
type LivestreamServiceServer interface {
// Creates a channel with the provided unique ID in the specified
// region.
CreateChannel(context.Context, *CreateChannelRequest) (*longrunning.Operation, error)
// Returns a list of all channels in the specified region.
ListChannels(context.Context, *ListChannelsRequest) (*ListChannelsResponse, error)
// Returns the specified channel.
GetChannel(context.Context, *GetChannelRequest) (*Channel, error)
// Deletes the specified channel.
DeleteChannel(context.Context, *DeleteChannelRequest) (*longrunning.Operation, error)
// Updates the specified channel.
UpdateChannel(context.Context, *UpdateChannelRequest) (*longrunning.Operation, error)
// Starts the specified channel. Part of the video pipeline will be created
// only when the StartChannel request is received by the server.
StartChannel(context.Context, *StartChannelRequest) (*longrunning.Operation, error)
// Stops the specified channel. Part of the video pipeline will be released
// when the StopChannel request is received by the server.
StopChannel(context.Context, *StopChannelRequest) (*longrunning.Operation, error)
// Creates an input with the provided unique ID in the specified region.
CreateInput(context.Context, *CreateInputRequest) (*longrunning.Operation, error)
// Returns a list of all inputs in the specified region.
ListInputs(context.Context, *ListInputsRequest) (*ListInputsResponse, error)
// Returns the specified input.
GetInput(context.Context, *GetInputRequest) (*Input, error)
// Deletes the specified input.
DeleteInput(context.Context, *DeleteInputRequest) (*longrunning.Operation, error)
// Updates the specified input.
UpdateInput(context.Context, *UpdateInputRequest) (*longrunning.Operation, error)
// Creates an event with the provided unique ID in the specified channel.
CreateEvent(context.Context, *CreateEventRequest) (*Event, error)
// Returns a list of all events in the specified channel.
ListEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error)
// Returns the specified event.
GetEvent(context.Context, *GetEventRequest) (*Event, error)
// Deletes the specified event.
DeleteEvent(context.Context, *DeleteEventRequest) (*empty.Empty, error)
}
LivestreamServiceServer is the server API for LivestreamService service.
LogConfig
type LogConfig struct {
LogSeverity LogConfig_LogSeverity "" /* 155 byte string literal not displayed */
}
Configuration of platform logs. See Using and managing platform logs for more information about how to view platform logs through Cloud Logging.
func (*LogConfig) Descriptor
Deprecated: Use LogConfig.ProtoReflect.Descriptor instead.
func (*LogConfig) GetLogSeverity
func (x *LogConfig) GetLogSeverity() LogConfig_LogSeverity
func (*LogConfig) ProtoMessage
func (*LogConfig) ProtoMessage()
func (*LogConfig) ProtoReflect
func (x *LogConfig) ProtoReflect() protoreflect.Message
func (*LogConfig) Reset
func (x *LogConfig) Reset()
func (*LogConfig) String
LogConfig_LogSeverity
type LogConfig_LogSeverity int32
The severity level of platform logging for this channel. Logs with a severity level higher than or equal to the chosen severity level will be logged and can be viewed through Cloud Logging. The severity level of a log is ranked as followed from low to high: DEBUG < INFO < NOTICE < WARNING < ERROR < CRITICAL < ALERT < EMERGENCY. See LogSeverity for more information.
LogConfig_LOG_SEVERITY_UNSPECIFIED, LogConfig_OFF, LogConfig_DEBUG, LogConfig_INFO, LogConfig_WARNING, LogConfig_ERROR
const (
// Log severity is not specified. This is the same as log severity is OFF.
LogConfig_LOG_SEVERITY_UNSPECIFIED LogConfig_LogSeverity = 0
// Log is turned off.
LogConfig_OFF LogConfig_LogSeverity = 1
// Log with severity higher than or equal to DEBUG are logged.
LogConfig_DEBUG LogConfig_LogSeverity = 100
// Logs with severity higher than or equal to INFO are logged.
LogConfig_INFO LogConfig_LogSeverity = 200
// Logs with severity higher than or equal to WARNING are logged.
LogConfig_WARNING LogConfig_LogSeverity = 400
// Logs with severity higher than or equal to ERROR are logged.
LogConfig_ERROR LogConfig_LogSeverity = 500
)
func (LogConfig_LogSeverity) Descriptor
func (LogConfig_LogSeverity) Descriptor() protoreflect.EnumDescriptor
func (LogConfig_LogSeverity) Enum
func (x LogConfig_LogSeverity) Enum() *LogConfig_LogSeverity
func (LogConfig_LogSeverity) EnumDescriptor
func (LogConfig_LogSeverity) EnumDescriptor() ([]byte, []int)
Deprecated: Use LogConfig_LogSeverity.Descriptor instead.
func (LogConfig_LogSeverity) Number
func (x LogConfig_LogSeverity) Number() protoreflect.EnumNumber
func (LogConfig_LogSeverity) String
func (x LogConfig_LogSeverity) String() string
func (LogConfig_LogSeverity) Type
func (LogConfig_LogSeverity) Type() protoreflect.EnumType
Manifest
type Manifest struct {
// The name of the generated file. The default is `manifest` with the
// extension suffix corresponding to the `Manifest` [type][google.cloud.video.livestream.v1.Manifest.type]. If multiple
// manifests are added to the channel, each must have a unique file name.
FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
// Required. Type of the manifest, can be `HLS` or `DASH`.
Type Manifest_ManifestType `protobuf:"varint,2,opt,name=type,proto3,enum=google.cloud.video.livestream.v1.Manifest_ManifestType" json:"type,omitempty"`
// Required. List of `MuxStream` [key][google.cloud.video.livestream.v1.MuxStream.key]s that should appear in this
// manifest.
//
// - For HLS, either `fmp4` or `ts` mux streams can be specified but not
// mixed.
// - For DASH, only `fmp4` mux streams can be specified.
MuxStreams []string `protobuf:"bytes,3,rep,name=mux_streams,json=muxStreams,proto3" json:"mux_streams,omitempty"`
// Maximum number of segments that this manifest holds. Once the manifest
// reaches this maximum number of segments, whenever a new segment is added to
// the manifest, the oldest segment will be removed from the manifest.
// The minimum value is 3 and the default value is 5.
MaxSegmentCount int32 `protobuf:"varint,4,opt,name=max_segment_count,json=maxSegmentCount,proto3" json:"max_segment_count,omitempty"`
// How long to keep a segment on the output Google Cloud Storage bucket after
// it is removed from the manifest. This field should be large enough to cover
// the manifest propagation delay. Otherwise, a player could receive 404
// errors while accessing segments which are listed in the manifest that the
// player has, but were already deleted from the output Google Cloud Storage
// bucket. Default value is `60s`.
SegmentKeepDuration *duration.Duration `protobuf:"bytes,5,opt,name=segment_keep_duration,json=segmentKeepDuration,proto3" json:"segment_keep_duration,omitempty"`
// contains filtered or unexported fields
}
Manifest configuration.
func (*Manifest) Descriptor
Deprecated: Use Manifest.ProtoReflect.Descriptor instead.
func (*Manifest) GetFileName
func (*Manifest) GetMaxSegmentCount
func (*Manifest) GetMuxStreams
func (*Manifest) GetSegmentKeepDuration
func (*Manifest) GetType
func (x *Manifest) GetType() Manifest_ManifestType
func (*Manifest) ProtoMessage
func (*Manifest) ProtoMessage()
func (*Manifest) ProtoReflect
func (x *Manifest) ProtoReflect() protoreflect.Message
func (*Manifest) Reset
func (x *Manifest) Reset()
func (*Manifest) String
Manifest_ManifestType
type Manifest_ManifestType int32
The manifest type can be either HLS
or DASH
.
Manifest_MANIFEST_TYPE_UNSPECIFIED, Manifest_HLS, Manifest_DASH
const (
// The manifest type is not specified.
Manifest_MANIFEST_TYPE_UNSPECIFIED Manifest_ManifestType = 0
// Create an `HLS` manifest. The corresponding file extension is `.m3u8`.
Manifest_HLS Manifest_ManifestType = 1
// Create a `DASH` manifest. The corresponding file extension is `.mpd`.
Manifest_DASH Manifest_ManifestType = 2
)
func (Manifest_ManifestType) Descriptor
func (Manifest_ManifestType) Descriptor() protoreflect.EnumDescriptor
func (Manifest_ManifestType) Enum
func (x Manifest_ManifestType) Enum() *Manifest_ManifestType
func (Manifest_ManifestType) EnumDescriptor
func (Manifest_ManifestType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Manifest_ManifestType.Descriptor instead.
func (Manifest_ManifestType) Number
func (x Manifest_ManifestType) Number() protoreflect.EnumNumber
func (Manifest_ManifestType) String
func (x Manifest_ManifestType) String() string
func (Manifest_ManifestType) Type
func (Manifest_ManifestType) Type() protoreflect.EnumType
MuxStream
type MuxStream struct {
// A unique key for this multiplexed stream.
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// The container format. The default is `fmp4`.
//
// Supported container formats:
//
// - `fmp4` - the corresponding file extension is `.m4s`
// - `ts` - the corresponding file extension is `.ts`
Container string `protobuf:"bytes,3,opt,name=container,proto3" json:"container,omitempty"`
// List of `ElementaryStream` [key][google.cloud.video.livestream.v1.ElementaryStream.key]s multiplexed in this
// stream.
//
// - For `fmp4` container, must contain either one video or one audio stream.
// - For `ts` container, must contain exactly one audio stream and up to one
// video stream.
ElementaryStreams []string `protobuf:"bytes,4,rep,name=elementary_streams,json=elementaryStreams,proto3" json:"elementary_streams,omitempty"`
// Segment settings for `fmp4` and `ts`.
SegmentSettings *SegmentSettings `protobuf:"bytes,5,opt,name=segment_settings,json=segmentSettings,proto3" json:"segment_settings,omitempty"`
// contains filtered or unexported fields
}
Multiplexing settings for output stream.
func (*MuxStream) Descriptor
Deprecated: Use MuxStream.ProtoReflect.Descriptor instead.
func (*MuxStream) GetContainer
func (*MuxStream) GetElementaryStreams
func (*MuxStream) GetKey
func (*MuxStream) GetSegmentSettings
func (x *MuxStream) GetSegmentSettings() *SegmentSettings
func (*MuxStream) ProtoMessage
func (*MuxStream) ProtoMessage()
func (*MuxStream) ProtoReflect
func (x *MuxStream) ProtoReflect() protoreflect.Message
func (*MuxStream) Reset
func (x *MuxStream) Reset()
func (*MuxStream) String
OperationMetadata
type OperationMetadata struct {
// Output only. The time the operation was created.
CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time the operation finished running.
EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// Output only. Server-defined resource path for the target of the operation.
Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
// Output only. Name of the verb executed by the operation.
Verb string `protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"`
// Output only. Identifies whether the user has requested cancellation
// of the operation. Operations that have successfully been cancelled
// have [Operation.error][] value with a
// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
// `Code.CANCELLED`.
RequestedCancellation bool `protobuf:"varint,5,opt,name=requested_cancellation,json=requestedCancellation,proto3" json:"requested_cancellation,omitempty"`
// Output only. API version used to start the operation.
ApiVersion string `protobuf:"bytes,6,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
// contains filtered or unexported fields
}
Represents the metadata of the long-running operation.
func (*OperationMetadata) Descriptor
func (*OperationMetadata) Descriptor() ([]byte, []int)
Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead.
func (*OperationMetadata) GetApiVersion
func (x *OperationMetadata) GetApiVersion() string
func (*OperationMetadata) GetCreateTime
func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp
func (*OperationMetadata) GetEndTime
func (x *OperationMetadata) GetEndTime() *timestamp.Timestamp
func (*OperationMetadata) GetRequestedCancellation
func (x *OperationMetadata) GetRequestedCancellation() bool
func (*OperationMetadata) GetTarget
func (x *OperationMetadata) GetTarget() string
func (*OperationMetadata) GetVerb
func (x *OperationMetadata) GetVerb() string
func (*OperationMetadata) ProtoMessage
func (*OperationMetadata) ProtoMessage()
func (*OperationMetadata) ProtoReflect
func (x *OperationMetadata) ProtoReflect() protoreflect.Message
func (*OperationMetadata) Reset
func (x *OperationMetadata) Reset()
func (*OperationMetadata) String
func (x *OperationMetadata) String() string
PreprocessingConfig
type PreprocessingConfig struct {
// Specify the video cropping configuration.
Crop *PreprocessingConfig_Crop `protobuf:"bytes,2,opt,name=crop,proto3" json:"crop,omitempty"`
// Specify the video pad filter configuration.
Pad *PreprocessingConfig_Pad `protobuf:"bytes,3,opt,name=pad,proto3" json:"pad,omitempty"`
// contains filtered or unexported fields
}
Preprocessing configurations.
func (*PreprocessingConfig) Descriptor
func (*PreprocessingConfig) Descriptor() ([]byte, []int)
Deprecated: Use PreprocessingConfig.ProtoReflect.Descriptor instead.
func (*PreprocessingConfig) GetCrop
func (x *PreprocessingConfig) GetCrop() *PreprocessingConfig_Crop
func (*PreprocessingConfig) GetPad
func (x *PreprocessingConfig) GetPad() *PreprocessingConfig_Pad
func (*PreprocessingConfig) ProtoMessage
func (*PreprocessingConfig) ProtoMessage()
func (*PreprocessingConfig) ProtoReflect
func (x *PreprocessingConfig) ProtoReflect() protoreflect.Message
func (*PreprocessingConfig) Reset
func (x *PreprocessingConfig) Reset()
func (*PreprocessingConfig) String
func (x *PreprocessingConfig) String() string
PreprocessingConfig_Crop
type PreprocessingConfig_Crop struct {
// The number of pixels to crop from the top. The default is 0.
TopPixels int32 `protobuf:"varint,1,opt,name=top_pixels,json=topPixels,proto3" json:"top_pixels,omitempty"`
// The number of pixels to crop from the bottom. The default is 0.
BottomPixels int32 `protobuf:"varint,2,opt,name=bottom_pixels,json=bottomPixels,proto3" json:"bottom_pixels,omitempty"`
// The number of pixels to crop from the left. The default is 0.
LeftPixels int32 `protobuf:"varint,3,opt,name=left_pixels,json=leftPixels,proto3" json:"left_pixels,omitempty"`
// The number of pixels to crop from the right. The default is 0.
RightPixels int32 `protobuf:"varint,4,opt,name=right_pixels,json=rightPixels,proto3" json:"right_pixels,omitempty"`
// contains filtered or unexported fields
}
Video cropping configuration for the input video. The cropped input video is scaled to match the output resolution.
func (*PreprocessingConfig_Crop) Descriptor
func (*PreprocessingConfig_Crop) Descriptor() ([]byte, []int)
Deprecated: Use PreprocessingConfig_Crop.ProtoReflect.Descriptor instead.
func (*PreprocessingConfig_Crop) GetBottomPixels
func (x *PreprocessingConfig_Crop) GetBottomPixels() int32
func (*PreprocessingConfig_Crop) GetLeftPixels
func (x *PreprocessingConfig_Crop) GetLeftPixels() int32
func (*PreprocessingConfig_Crop) GetRightPixels
func (x *PreprocessingConfig_Crop) GetRightPixels() int32
func (*PreprocessingConfig_Crop) GetTopPixels
func (x *PreprocessingConfig_Crop) GetTopPixels() int32
func (*PreprocessingConfig_Crop) ProtoMessage
func (*PreprocessingConfig_Crop) ProtoMessage()
func (*PreprocessingConfig_Crop) ProtoReflect
func (x *PreprocessingConfig_Crop) ProtoReflect() protoreflect.Message
func (*PreprocessingConfig_Crop) Reset
func (x *PreprocessingConfig_Crop) Reset()
func (*PreprocessingConfig_Crop) String
func (x *PreprocessingConfig_Crop) String() string
PreprocessingConfig_Pad
type PreprocessingConfig_Pad struct {
// The number of pixels to add to the top. The default is 0.
TopPixels int32 `protobuf:"varint,1,opt,name=top_pixels,json=topPixels,proto3" json:"top_pixels,omitempty"`
// The number of pixels to add to the bottom. The default is 0.
BottomPixels int32 `protobuf:"varint,2,opt,name=bottom_pixels,json=bottomPixels,proto3" json:"bottom_pixels,omitempty"`
// The number of pixels to add to the left. The default is 0.
LeftPixels int32 `protobuf:"varint,3,opt,name=left_pixels,json=leftPixels,proto3" json:"left_pixels,omitempty"`
// The number of pixels to add to the right. The default is 0.
RightPixels int32 `protobuf:"varint,4,opt,name=right_pixels,json=rightPixels,proto3" json:"right_pixels,omitempty"`
// contains filtered or unexported fields
}
Pad filter configuration for the input video. The padded input video is scaled after padding with black to match the output resolution.
func (*PreprocessingConfig_Pad) Descriptor
func (*PreprocessingConfig_Pad) Descriptor() ([]byte, []int)
Deprecated: Use PreprocessingConfig_Pad.ProtoReflect.Descriptor instead.
func (*PreprocessingConfig_Pad) GetBottomPixels
func (x *PreprocessingConfig_Pad) GetBottomPixels() int32
func (*PreprocessingConfig_Pad) GetLeftPixels
func (x *PreprocessingConfig_Pad) GetLeftPixels() int32
func (*PreprocessingConfig_Pad) GetRightPixels
func (x *PreprocessingConfig_Pad) GetRightPixels() int32
func (*PreprocessingConfig_Pad) GetTopPixels
func (x *PreprocessingConfig_Pad) GetTopPixels() int32
func (*PreprocessingConfig_Pad) ProtoMessage
func (*PreprocessingConfig_Pad) ProtoMessage()
func (*PreprocessingConfig_Pad) ProtoReflect
func (x *PreprocessingConfig_Pad) ProtoReflect() protoreflect.Message
func (*PreprocessingConfig_Pad) Reset
func (x *PreprocessingConfig_Pad) Reset()
func (*PreprocessingConfig_Pad) String
func (x *PreprocessingConfig_Pad) String() string
SegmentSettings
type SegmentSettings struct {
// Duration of the segments in seconds. The default is `6s`. Note that
// `segmentDuration` must be greater than or equal to
// [gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration], and
// `segmentDuration` must be divisible by
// [gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration].
// Valid range is [2s, 20s].
//
// All [mux_streams][google.cloud.video.livestream.v1.Manifest.mux_streams] in the same manifest must have the
// same segment duration.
SegmentDuration *duration.Duration `protobuf:"bytes,1,opt,name=segment_duration,json=segmentDuration,proto3" json:"segment_duration,omitempty"`
// contains filtered or unexported fields
}
Segment settings for fmp4
and ts
.
func (*SegmentSettings) Descriptor
func (*SegmentSettings) Descriptor() ([]byte, []int)
Deprecated: Use SegmentSettings.ProtoReflect.Descriptor instead.
func (*SegmentSettings) GetSegmentDuration
func (x *SegmentSettings) GetSegmentDuration() *duration.Duration
func (*SegmentSettings) ProtoMessage
func (*SegmentSettings) ProtoMessage()
func (*SegmentSettings) ProtoReflect
func (x *SegmentSettings) ProtoReflect() protoreflect.Message
func (*SegmentSettings) Reset
func (x *SegmentSettings) Reset()
func (*SegmentSettings) String
func (x *SegmentSettings) String() string
SpriteSheet
type SpriteSheet struct {
// Format type. The default is `jpeg`.
//
// Supported formats:
//
// - `jpeg`
Format string `protobuf:"bytes,1,opt,name=format,proto3" json:"format,omitempty"`
// Required. File name prefix for the generated sprite sheets. If multiple
// sprite sheets are added to the channel, each must have a unique file
// prefix.
// Each sprite sheet has an incremental 10-digit zero-padded suffix starting
// from 0 before the extension, such as `sprite_sheet0000000123.jpeg`.
FilePrefix string `protobuf:"bytes,2,opt,name=file_prefix,json=filePrefix,proto3" json:"file_prefix,omitempty"`
// Required. The width of the sprite in pixels. Must be an even integer.
SpriteWidthPixels int32 `protobuf:"varint,3,opt,name=sprite_width_pixels,json=spriteWidthPixels,proto3" json:"sprite_width_pixels,omitempty"`
// Required. The height of the sprite in pixels. Must be an even integer.
SpriteHeightPixels int32 `protobuf:"varint,4,opt,name=sprite_height_pixels,json=spriteHeightPixels,proto3" json:"sprite_height_pixels,omitempty"`
// The maximum number of sprites per row in a sprite sheet. Valid range is
// [1, 10] and the default value is 1.
ColumnCount int32 `protobuf:"varint,5,opt,name=column_count,json=columnCount,proto3" json:"column_count,omitempty"`
// The maximum number of rows per sprite sheet. When the sprite sheet is full,
// a new sprite sheet is created. Valid range is [1, 10] and the default value
// is 1.
RowCount int32 `protobuf:"varint,6,opt,name=row_count,json=rowCount,proto3" json:"row_count,omitempty"`
// Create sprites at regular intervals. Valid range is [1 second, 1 hour] and
// the default value is `10s`.
Interval *duration.Duration `protobuf:"bytes,7,opt,name=interval,proto3" json:"interval,omitempty"`
// The quality of the generated sprite sheet. Enter a value between 1
// and 100, where 1 is the lowest quality and 100 is the highest quality.
// The default is 100. A high quality value corresponds to a low image data
// compression ratio.
Quality int32 `protobuf:"varint,8,opt,name=quality,proto3" json:"quality,omitempty"`
// contains filtered or unexported fields
}
Sprite sheet configuration.
func (*SpriteSheet) Descriptor
func (*SpriteSheet) Descriptor() ([]byte, []int)
Deprecated: Use SpriteSheet.ProtoReflect.Descriptor instead.
func (*SpriteSheet) GetColumnCount
func (x *SpriteSheet) GetColumnCount() int32
func (*SpriteSheet) GetFilePrefix
func (x *SpriteSheet) GetFilePrefix() string
func (*SpriteSheet) GetFormat
func (x *SpriteSheet) GetFormat() string
func (*SpriteSheet) GetInterval
func (x *SpriteSheet) GetInterval() *duration.Duration
func (*SpriteSheet) GetQuality
func (x *SpriteSheet) GetQuality() int32
func (*SpriteSheet) GetRowCount
func (x *SpriteSheet) GetRowCount() int32
func (*SpriteSheet) GetSpriteHeightPixels
func (x *SpriteSheet) GetSpriteHeightPixels() int32
func (*SpriteSheet) GetSpriteWidthPixels
func (x *SpriteSheet) GetSpriteWidthPixels() int32
func (*SpriteSheet) ProtoMessage
func (*SpriteSheet) ProtoMessage()
func (*SpriteSheet) ProtoReflect
func (x *SpriteSheet) ProtoReflect() protoreflect.Message
func (*SpriteSheet) Reset
func (x *SpriteSheet) Reset()
func (*SpriteSheet) String
func (x *SpriteSheet) String() string
StartChannelRequest
type StartChannelRequest struct {
// Required. The name of the channel resource, in the form of:
// `projects/{project}/locations/{location}/channels/{channelId}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// A request ID to identify requests. Specify a unique request ID
// so that if you must retry your request, the server will know to ignore
// the request if it has already been completed. The server will guarantee
// that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request ID,
// the server can check if original operation with the same request ID was
// received, and if so, will ignore the second request. This prevents clients
// from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported `(00000000-0000-0000-0000-000000000000)`.
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}
Request message for "LivestreamService.StartChannel".
func (*StartChannelRequest) Descriptor
func (*StartChannelRequest) Descriptor() ([]byte, []int)
Deprecated: Use StartChannelRequest.ProtoReflect.Descriptor instead.
func (*StartChannelRequest) GetName
func (x *StartChannelRequest) GetName() string
func (*StartChannelRequest) GetRequestId
func (x *StartChannelRequest) GetRequestId() string
func (*StartChannelRequest) ProtoMessage
func (*StartChannelRequest) ProtoMessage()
func (*StartChannelRequest) ProtoReflect
func (x *StartChannelRequest) ProtoReflect() protoreflect.Message
func (*StartChannelRequest) Reset
func (x *StartChannelRequest) Reset()
func (*StartChannelRequest) String
func (x *StartChannelRequest) String() string
StopChannelRequest
type StopChannelRequest struct {
// Required. The name of the channel resource, in the form of:
// `projects/{project}/locations/{location}/channels/{channelId}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// A request ID to identify requests. Specify a unique request ID
// so that if you must retry your request, the server will know to ignore
// the request if it has already been completed. The server will guarantee
// that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request ID,
// the server can check if original operation with the same request ID was
// received, and if so, will ignore the second request. This prevents clients
// from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported `(00000000-0000-0000-0000-000000000000)`.
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}
Request message for "LivestreamService.StopChannel".
func (*StopChannelRequest) Descriptor
func (*StopChannelRequest) Descriptor() ([]byte, []int)
Deprecated: Use StopChannelRequest.ProtoReflect.Descriptor instead.
func (*StopChannelRequest) GetName
func (x *StopChannelRequest) GetName() string
func (*StopChannelRequest) GetRequestId
func (x *StopChannelRequest) GetRequestId() string
func (*StopChannelRequest) ProtoMessage
func (*StopChannelRequest) ProtoMessage()
func (*StopChannelRequest) ProtoReflect
func (x *StopChannelRequest) ProtoReflect() protoreflect.Message
func (*StopChannelRequest) Reset
func (x *StopChannelRequest) Reset()
func (*StopChannelRequest) String
func (x *StopChannelRequest) String() string
TextStream
type TextStream struct {
// Required. The codec for this text stream.
//
// Supported text codecs:
//
// - `cea608`
// - `cea708`
Codec string `protobuf:"bytes,1,opt,name=codec,proto3" json:"codec,omitempty"`
// contains filtered or unexported fields
}
Encoding of a text stream. For example, closed captions or subtitles.
func (*TextStream) Descriptor
func (*TextStream) Descriptor() ([]byte, []int)
Deprecated: Use TextStream.ProtoReflect.Descriptor instead.
func (*TextStream) GetCodec
func (x *TextStream) GetCodec() string
func (*TextStream) ProtoMessage
func (*TextStream) ProtoMessage()
func (*TextStream) ProtoReflect
func (x *TextStream) ProtoReflect() protoreflect.Message
func (*TextStream) Reset
func (x *TextStream) Reset()
func (*TextStream) String
func (x *TextStream) String() string
UnimplementedLivestreamServiceServer
type UnimplementedLivestreamServiceServer struct {
}
UnimplementedLivestreamServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedLivestreamServiceServer) CreateChannel
func (*UnimplementedLivestreamServiceServer) CreateChannel(context.Context, *CreateChannelRequest) (*longrunning.Operation, error)
func (*UnimplementedLivestreamServiceServer) CreateEvent
func (*UnimplementedLivestreamServiceServer) CreateEvent(context.Context, *CreateEventRequest) (*Event, error)
func (*UnimplementedLivestreamServiceServer) CreateInput
func (*UnimplementedLivestreamServiceServer) CreateInput(context.Context, *CreateInputRequest) (*longrunning.Operation, error)
func (*UnimplementedLivestreamServiceServer) DeleteChannel
func (*UnimplementedLivestreamServiceServer) DeleteChannel(context.Context, *DeleteChannelRequest) (*longrunning.Operation, error)
func (*UnimplementedLivestreamServiceServer) DeleteEvent
func (*UnimplementedLivestreamServiceServer) DeleteEvent(context.Context, *DeleteEventRequest) (*empty.Empty, error)
func (*UnimplementedLivestreamServiceServer) DeleteInput
func (*UnimplementedLivestreamServiceServer) DeleteInput(context.Context, *DeleteInputRequest) (*longrunning.Operation, error)
func (*UnimplementedLivestreamServiceServer) GetChannel
func (*UnimplementedLivestreamServiceServer) GetChannel(context.Context, *GetChannelRequest) (*Channel, error)
func (*UnimplementedLivestreamServiceServer) GetEvent
func (*UnimplementedLivestreamServiceServer) GetEvent(context.Context, *GetEventRequest) (*Event, error)
func (*UnimplementedLivestreamServiceServer) GetInput
func (*UnimplementedLivestreamServiceServer) GetInput(context.Context, *GetInputRequest) (*Input, error)
func (*UnimplementedLivestreamServiceServer) ListChannels
func (*UnimplementedLivestreamServiceServer) ListChannels(context.Context, *ListChannelsRequest) (*ListChannelsResponse, error)
func (*UnimplementedLivestreamServiceServer) ListEvents
func (*UnimplementedLivestreamServiceServer) ListEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error)
func (*UnimplementedLivestreamServiceServer) ListInputs
func (*UnimplementedLivestreamServiceServer) ListInputs(context.Context, *ListInputsRequest) (*ListInputsResponse, error)
func (*UnimplementedLivestreamServiceServer) StartChannel
func (*UnimplementedLivestreamServiceServer) StartChannel(context.Context, *StartChannelRequest) (*longrunning.Operation, error)
func (*UnimplementedLivestreamServiceServer) StopChannel
func (*UnimplementedLivestreamServiceServer) StopChannel(context.Context, *StopChannelRequest) (*longrunning.Operation, error)
func (*UnimplementedLivestreamServiceServer) UpdateChannel
func (*UnimplementedLivestreamServiceServer) UpdateChannel(context.Context, *UpdateChannelRequest) (*longrunning.Operation, error)
func (*UnimplementedLivestreamServiceServer) UpdateInput
func (*UnimplementedLivestreamServiceServer) UpdateInput(context.Context, *UpdateInputRequest) (*longrunning.Operation, error)
UpdateChannelRequest
type UpdateChannelRequest struct {
// Field mask is used to specify the fields to be overwritten in the Channel
// resource by the update. You can only update the following fields:
//
// * [`inputAttachments`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#inputattachment)
// * [`output`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#output)
// * [`elementaryStreams`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#ElementaryStream)
// * [`muxStreams`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#muxstream)
// * [`manifests`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#Manifest)
// * [`spritesheets`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#spritesheet)
//
// The fields specified in the update_mask are relative to the resource, not
// the full request. A field will be overwritten if it is in the mask.
UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// Required. The channel resource to be updated.
Channel *Channel `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel,omitempty"`
// A request ID to identify requests. Specify a unique request ID
// so that if you must retry your request, the server will know to ignore
// the request if it has already been completed. The server will guarantee
// that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request ID,
// the server can check if original operation with the same request ID was
// received, and if so, will ignore the second request. This prevents clients
// from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported `(00000000-0000-0000-0000-000000000000)`.
RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}
Request message for "LivestreamService.UpdateChannel".
func (*UpdateChannelRequest) Descriptor
func (*UpdateChannelRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateChannelRequest.ProtoReflect.Descriptor instead.
func (*UpdateChannelRequest) GetChannel
func (x *UpdateChannelRequest) GetChannel() *Channel
func (*UpdateChannelRequest) GetRequestId
func (x *UpdateChannelRequest) GetRequestId() string
func (*UpdateChannelRequest) GetUpdateMask
func (x *UpdateChannelRequest) GetUpdateMask() *field_mask.FieldMask
func (*UpdateChannelRequest) ProtoMessage
func (*UpdateChannelRequest) ProtoMessage()
func (*UpdateChannelRequest) ProtoReflect
func (x *UpdateChannelRequest) ProtoReflect() protoreflect.Message
func (*UpdateChannelRequest) Reset
func (x *UpdateChannelRequest) Reset()
func (*UpdateChannelRequest) String
func (x *UpdateChannelRequest) String() string
UpdateInputRequest
type UpdateInputRequest struct {
// Field mask is used to specify the fields to be overwritten in the Input
// resource by the update. You can only update the following fields:
//
// * [`preprocessingConfig`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.inputs#PreprocessingConfig)
// * [`securityRules`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.inputs#SecurityRule)
//
// The fields specified in the update_mask are relative to the resource, not
// the full request. A field will be overwritten if it is in the mask.
UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// Required. The input resource to be updated.
Input *Input `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"`
// A request ID to identify requests. Specify a unique request ID
// so that if you must retry your request, the server will know to ignore
// the request if it has already been completed. The server will guarantee
// that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request ID,
// the server can check if original operation with the same request ID was
// received, and if so, will ignore the second request. This prevents clients
// from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported `(00000000-0000-0000-0000-000000000000)`.
RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}
Request message for "LivestreamService.UpdateInput".
func (*UpdateInputRequest) Descriptor
func (*UpdateInputRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateInputRequest.ProtoReflect.Descriptor instead.
func (*UpdateInputRequest) GetInput
func (x *UpdateInputRequest) GetInput() *Input
func (*UpdateInputRequest) GetRequestId
func (x *UpdateInputRequest) GetRequestId() string
func (*UpdateInputRequest) GetUpdateMask
func (x *UpdateInputRequest) GetUpdateMask() *field_mask.FieldMask
func (*UpdateInputRequest) ProtoMessage
func (*UpdateInputRequest) ProtoMessage()
func (*UpdateInputRequest) ProtoReflect
func (x *UpdateInputRequest) ProtoReflect() protoreflect.Message
func (*UpdateInputRequest) Reset
func (x *UpdateInputRequest) Reset()
func (*UpdateInputRequest) String
func (x *UpdateInputRequest) String() string
VideoFormat
type VideoFormat struct {
// Video codec used in this video stream.
Codec string `protobuf:"bytes,1,opt,name=codec,proto3" json:"codec,omitempty"`
// The width of the video stream in pixels.
WidthPixels int32 `protobuf:"varint,2,opt,name=width_pixels,json=widthPixels,proto3" json:"width_pixels,omitempty"`
// The height of the video stream in pixels.
HeightPixels int32 `protobuf:"varint,3,opt,name=height_pixels,json=heightPixels,proto3" json:"height_pixels,omitempty"`
// The frame rate of the input video stream.
FrameRate float64 `protobuf:"fixed64,4,opt,name=frame_rate,json=frameRate,proto3" json:"frame_rate,omitempty"`
// contains filtered or unexported fields
}
Properties of the video format.
func (*VideoFormat) Descriptor
func (*VideoFormat) Descriptor() ([]byte, []int)
Deprecated: Use VideoFormat.ProtoReflect.Descriptor instead.
func (*VideoFormat) GetCodec
func (x *VideoFormat) GetCodec() string
func (*VideoFormat) GetFrameRate
func (x *VideoFormat) GetFrameRate() float64
func (*VideoFormat) GetHeightPixels
func (x *VideoFormat) GetHeightPixels() int32
func (*VideoFormat) GetWidthPixels
func (x *VideoFormat) GetWidthPixels() int32
func (*VideoFormat) ProtoMessage
func (*VideoFormat) ProtoMessage()
func (*VideoFormat) ProtoReflect
func (x *VideoFormat) ProtoReflect() protoreflect.Message
func (*VideoFormat) Reset
func (x *VideoFormat) Reset()
func (*VideoFormat) String
func (x *VideoFormat) String() string
VideoStream
type VideoStream struct {
// Codec settings.
//
// Types that are assignable to CodecSettings:
//
// *VideoStream_H264
CodecSettings isVideoStream_CodecSettings `protobuf_oneof:"codec_settings"`
// contains filtered or unexported fields
}
Video stream resource.
func (*VideoStream) Descriptor
func (*VideoStream) Descriptor() ([]byte, []int)
Deprecated: Use VideoStream.ProtoReflect.Descriptor instead.
func (*VideoStream) GetCodecSettings
func (m *VideoStream) GetCodecSettings() isVideoStream_CodecSettings
func (*VideoStream) GetH264
func (x *VideoStream) GetH264() *VideoStream_H264CodecSettings
func (*VideoStream) ProtoMessage
func (*VideoStream) ProtoMessage()
func (*VideoStream) ProtoReflect
func (x *VideoStream) ProtoReflect() protoreflect.Message
func (*VideoStream) Reset
func (x *VideoStream) Reset()
func (*VideoStream) String
func (x *VideoStream) String() string
VideoStreamProperty
type VideoStreamProperty struct {
// Index of this video stream.
Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
// Properties of the video format.
VideoFormat *VideoFormat `protobuf:"bytes,2,opt,name=video_format,json=videoFormat,proto3" json:"video_format,omitempty"`
// contains filtered or unexported fields
}
Properties of the video stream.
func (*VideoStreamProperty) Descriptor
func (*VideoStreamProperty) Descriptor() ([]byte, []int)
Deprecated: Use VideoStreamProperty.ProtoReflect.Descriptor instead.
func (*VideoStreamProperty) GetIndex
func (x *VideoStreamProperty) GetIndex() int32
func (*VideoStreamProperty) GetVideoFormat
func (x *VideoStreamProperty) GetVideoFormat() *VideoFormat
func (*VideoStreamProperty) ProtoMessage
func (*VideoStreamProperty) ProtoMessage()
func (*VideoStreamProperty) ProtoReflect
func (x *VideoStreamProperty) ProtoReflect() protoreflect.Message
func (*VideoStreamProperty) Reset
func (x *VideoStreamProperty) Reset()
func (*VideoStreamProperty) String
func (x *VideoStreamProperty) String() string
VideoStream_H264
type VideoStream_H264 struct {
// H264 codec settings.
H264 *VideoStream_H264CodecSettings `protobuf:"bytes,20,opt,name=h264,proto3,oneof"`
}
VideoStream_H264CodecSettings
type VideoStream_H264CodecSettings struct {
// Required. The width of the video in pixels. Must be an even integer.
// Valid range is [320, 1920].
WidthPixels int32 `protobuf:"varint,1,opt,name=width_pixels,json=widthPixels,proto3" json:"width_pixels,omitempty"`
// Required. The height of the video in pixels. Must be an even integer.
// Valid range is [180, 1080].
HeightPixels int32 `protobuf:"varint,2,opt,name=height_pixels,json=heightPixels,proto3" json:"height_pixels,omitempty"`
// Required. The target video frame rate in frames per second (FPS). Must be less
// than or equal to 60. Will default to the input frame rate if larger
// than the input frame rate. The API will generate an output FPS that is
// divisible by the input FPS, and smaller or equal to the target FPS. See
// [Calculating frame
// rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for
// more information.
FrameRate float64 `protobuf:"fixed64,3,opt,name=frame_rate,json=frameRate,proto3" json:"frame_rate,omitempty"`
// Required. The video bitrate in bits per second. Minimum value is 10,000.
//
// - For SD resolution (< 720p),="" must="" be=""><= 3,000,000="" (3="" mbps).="" -="" for="" hd="" resolution=""><= 1080p),="" must="" be=""><= 15,000,000="" (15="" mbps).="" bitratebps="">int32 `protobuf:"varint,4,opt,name=bitrate_bps,json=bitrateBps,proto3" json:"bitrate_bps,omitempty"`
// Specifies whether an open Group of Pictures (GOP) structure should be
// allowed or not. The default is `false`.
AllowOpenGop bool `protobuf:"varint,6,opt,name=allow_open_gop,json=allowOpenGop,proto3" json:"allow_open_gop,omitempty"`
// GOP mode can be either by frame count or duration.
//
// Types that are assignable to GopMode:
//
// *VideoStream_H264CodecSettings_GopFrameCount
// *VideoStream_H264CodecSettings_GopDuration
GopMode isVideoStream_H264CodecSettings_GopMode `protobuf_oneof:"gop_mode"`
// Size of the Video Buffering Verifier (VBV) buffer in bits. Must be
// greater than zero. The default is equal to [bitrate_bps][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.bitrate_bps].
VbvSizeBits int32 `protobuf:"varint,9,opt,name=vbv_size_bits,json=vbvSizeBits,proto3" json:"vbv_size_bits,omitempty"`
// Initial fullness of the Video Buffering Verifier (VBV) buffer in bits.
// Must be greater than zero. The default is equal to 90% of
// [vbv_size_bits][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.vbv_size_bits].
VbvFullnessBits int32 `protobuf:"varint,10,opt,name=vbv_fullness_bits,json=vbvFullnessBits,proto3" json:"vbv_fullness_bits,omitempty"`
// The entropy coder to use. The default is `cabac`.
//
// Supported entropy coders:
//
// - `cavlc`
// - `cabac`
EntropyCoder string `protobuf:"bytes,11,opt,name=entropy_coder,json=entropyCoder,proto3" json:"entropy_coder,omitempty"`
// Allow B-pyramid for reference frame selection. This may not be supported
// on all decoders. The default is `false`.
BPyramid bool `protobuf:"varint,12,opt,name=b_pyramid,json=bPyramid,proto3" json:"b_pyramid,omitempty"`
// The number of consecutive B-frames. Must be greater than or equal to
// zero. Must be less than [gop_frame_count][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_frame_count] if set. The default
// is 0.
BFrameCount int32 `protobuf:"varint,13,opt,name=b_frame_count,json=bFrameCount,proto3" json:"b_frame_count,omitempty"`
// Specify the intensity of the adaptive quantizer (AQ). Must be between 0
// and 1, where 0 disables the quantizer and 1 maximizes the quantizer. A
// higher value equals a lower bitrate but smoother image. The default is 0.
AqStrength float64 `protobuf:"fixed64,14,opt,name=aq_strength,json=aqStrength,proto3" json:"aq_strength,omitempty"`
// Enforces the specified codec profile. The following profiles are
// supported:
//
// * `baseline`
// * `main` (default)
// * `high`
//
// The available options are [FFmpeg-compatible Profile
// Options](https://trac.ffmpeg.org/wiki/Encode/H.264#Profile).
// Note that certain values for this field may cause the
// transcoder to override other fields you set in the [H264CodecSettings][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings]
// message.
Profile string `protobuf:"bytes,15,opt,name=profile,proto3" json:"profile,omitempty"`
// Enforces the specified codec tune. The available options are
// [FFmpeg-compatible Encode
// Options](https://trac.ffmpeg.org/wiki/Encode/H.264#Tune)
// Note that certain values for this field may cause the transcoder to
// override other fields you set in the [H264CodecSettings][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings] message.
Tune string `protobuf:"bytes,16,opt,name=tune,proto3" json:"tune,omitempty"`
// contains filtered or unexported fields
}
H264 codec settings.
func (*VideoStream_H264CodecSettings) Descriptor
func (*VideoStream_H264CodecSettings) Descriptor() ([]byte, []int)
Deprecated: Use VideoStream_H264CodecSettings.ProtoReflect.Descriptor instead.
func (*VideoStream_H264CodecSettings) GetAllowOpenGop
func (x *VideoStream_H264CodecSettings) GetAllowOpenGop() bool
func (*VideoStream_H264CodecSettings) GetAqStrength
func (x *VideoStream_H264CodecSettings) GetAqStrength() float64
func (*VideoStream_H264CodecSettings) GetBFrameCount
func (x *VideoStream_H264CodecSettings) GetBFrameCount() int32
func (*VideoStream_H264CodecSettings) GetBPyramid
func (x *VideoStream_H264CodecSettings) GetBPyramid() bool
func (*VideoStream_H264CodecSettings) GetBitrateBps
func (x *VideoStream_H264CodecSettings) GetBitrateBps() int32
func (*VideoStream_H264CodecSettings) GetEntropyCoder
func (x *VideoStream_H264CodecSettings) GetEntropyCoder() string
func (*VideoStream_H264CodecSettings) GetFrameRate
func (x *VideoStream_H264CodecSettings) GetFrameRate() float64
func (*VideoStream_H264CodecSettings) GetGopDuration
func (x *VideoStream_H264CodecSettings) GetGopDuration() *duration.Duration
func (*VideoStream_H264CodecSettings) GetGopFrameCount
func (x *VideoStream_H264CodecSettings) GetGopFrameCount() int32
func (*VideoStream_H264CodecSettings) GetGopMode
func (m *VideoStream_H264CodecSettings) GetGopMode() isVideoStream_H264CodecSettings_GopMode
func (*VideoStream_H264CodecSettings) GetHeightPixels
func (x *VideoStream_H264CodecSettings) GetHeightPixels() int32
func (*VideoStream_H264CodecSettings) GetProfile
func (x *VideoStream_H264CodecSettings) GetProfile() string
func (*VideoStream_H264CodecSettings) GetTune
func (x *VideoStream_H264CodecSettings) GetTune() string
func (*VideoStream_H264CodecSettings) GetVbvFullnessBits
func (x *VideoStream_H264CodecSettings) GetVbvFullnessBits() int32
func (*VideoStream_H264CodecSettings) GetVbvSizeBits
func (x *VideoStream_H264CodecSettings) GetVbvSizeBits() int32
func (*VideoStream_H264CodecSettings) GetWidthPixels
func (x *VideoStream_H264CodecSettings) GetWidthPixels() int32
func (*VideoStream_H264CodecSettings) ProtoMessage
func (*VideoStream_H264CodecSettings) ProtoMessage()
func (*VideoStream_H264CodecSettings) ProtoReflect
func (x *VideoStream_H264CodecSettings) ProtoReflect() protoreflect.Message
func (*VideoStream_H264CodecSettings) Reset
func (x *VideoStream_H264CodecSettings) Reset()
func (*VideoStream_H264CodecSettings) String
func (x *VideoStream_H264CodecSettings) String() string
VideoStream_H264CodecSettings_GopDuration
type VideoStream_H264CodecSettings_GopDuration struct {
// Select the GOP size based on the specified duration. The default is
// `2s`. Note that `gopDuration` must be less than or equal to
// [segment_duration][google.cloud.video.livestream.v1.SegmentSettings.segment_duration], and
// [segment_duration][google.cloud.video.livestream.v1.SegmentSettings.segment_duration] must be divisible
// by `gopDuration`. Valid range is [2s, 20s].
//
// All video streams in the same channel must have the same GOP size.
GopDuration *duration.Duration `protobuf:"bytes,8,opt,name=gop_duration,json=gopDuration,proto3,oneof"`
}
VideoStream_H264CodecSettings_GopFrameCount
type VideoStream_H264CodecSettings_GopFrameCount struct {
// Select the GOP size based on the specified frame count.
// If GOP frame count is set instead of GOP duration, GOP duration will be
// calculated by `gopFrameCount`/`frameRate`. The calculated GOP duration
// must satisfy the limitations on `gopDuration` as well.
// Valid range is [60, 600].
GopFrameCount int32 `protobuf:"varint,7,opt,name=gop_frame_count,json=gopFrameCount,proto3,oneof"`
}