- 0.57.0 (latest)
- 0.56.0
- 0.55.0
- 0.54.0
- 0.53.0
- 0.51.0
- 0.50.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.8
- 0.3.0
public static final class Event.Builder extends GeneratedMessageV3.Builder<Event.Builder> implements EventOrBuilder
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.
Protobuf type google.cloud.video.livestream.v1.Event
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Event.BuilderImplements
EventOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Event.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Event.Builder |
build()
public Event build()
Returns | |
---|---|
Type | Description |
Event |
buildPartial()
public Event buildPartial()
Returns | |
---|---|
Type | Description |
Event |
clear()
public Event.Builder clear()
Returns | |
---|---|
Type | Description |
Event.Builder |
clearAdBreak()
public Event.Builder clearAdBreak()
Required. Inserts a new ad opportunity.
.google.cloud.video.livestream.v1.Event.AdBreakTask ad_break = 6 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Event.Builder |
clearCreateTime()
public Event.Builder clearCreateTime()
Output only. The creation time.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Event.Builder |
clearError()
public Event.Builder clearError()
Output only. An error object that describes the reason for the failure.
This property is always present when state
is FAILED
.
.google.rpc.Status error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Event.Builder |
clearExecuteNow()
public Event.Builder clearExecuteNow()
When this field is set to true, the event will be executed at the earliest time that the server can schedule the event and execution_time will be populated with the time that the server actually schedules the event.
bool execute_now = 9;
Returns | |
---|---|
Type | Description |
Event.Builder | This builder for chaining. |
clearExecutionTime()
public Event.Builder clearExecutionTime()
The time to execute the event. If you set
execute_now to
true
, then do not set this field in the CreateEvent
request. In
this case, the server schedules the event and populates this field. If you
set execute_now to
false
, then you must set this field to at least 10 seconds in the future
or else the event can't be created.
.google.protobuf.Timestamp execution_time = 10;
Returns | |
---|---|
Type | Description |
Event.Builder |
clearField(Descriptors.FieldDescriptor field)
public Event.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
Event.Builder |
clearInputSwitch()
public Event.Builder clearInputSwitch()
Required. Switches to another input stream.
.google.cloud.video.livestream.v1.Event.InputSwitchTask input_switch = 5 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Event.Builder |
clearLabels()
public Event.Builder clearLabels()
Returns | |
---|---|
Type | Description |
Event.Builder |
clearMute()
public Event.Builder clearMute()
Required. Mutes the stream.
.google.cloud.video.livestream.v1.Event.MuteTask mute = 15 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Event.Builder |
clearName()
public Event.Builder clearName()
The resource name of the event, in the form of:
projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}
.
string name = 1;
Returns | |
---|---|
Type | Description |
Event.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Event.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
Event.Builder |
clearReturnToProgram()
public Event.Builder clearReturnToProgram()
Required. Stops any running ad break.
.google.cloud.video.livestream.v1.Event.ReturnToProgramTask return_to_program = 13 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Event.Builder |
clearState()
public Event.Builder clearState()
Output only. The state of the event.
.google.cloud.video.livestream.v1.Event.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Event.Builder | This builder for chaining. |
clearTask()
public Event.Builder clearTask()
Returns | |
---|---|
Type | Description |
Event.Builder |
clearUnmute()
public Event.Builder clearUnmute()
Required. Unmutes the stream.
.google.cloud.video.livestream.v1.Event.UnmuteTask unmute = 16 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Event.Builder |
clearUpdateTime()
public Event.Builder clearUpdateTime()
Output only. The update time.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Event.Builder |
clone()
public Event.Builder clone()
Returns | |
---|---|
Type | Description |
Event.Builder |
containsLabels(String key)
public boolean containsLabels(String key)
User-defined key/value metadata.
map<string, string> labels = 4;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
boolean |
getAdBreak()
public Event.AdBreakTask getAdBreak()
Required. Inserts a new ad opportunity.
.google.cloud.video.livestream.v1.Event.AdBreakTask ad_break = 6 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Event.AdBreakTask | The adBreak. |
getAdBreakBuilder()
public Event.AdBreakTask.Builder getAdBreakBuilder()
Required. Inserts a new ad opportunity.
.google.cloud.video.livestream.v1.Event.AdBreakTask ad_break = 6 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Event.AdBreakTask.Builder |
getAdBreakOrBuilder()
public Event.AdBreakTaskOrBuilder getAdBreakOrBuilder()
Required. Inserts a new ad opportunity.
.google.cloud.video.livestream.v1.Event.AdBreakTask ad_break = 6 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Event.AdBreakTaskOrBuilder |
getCreateTime()
public Timestamp getCreateTime()
Output only. The creation time.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. The creation time.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The creation time.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public Event getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Event |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getError()
public Status getError()
Output only. An error object that describes the reason for the failure.
This property is always present when state
is FAILED
.
.google.rpc.Status error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
com.google.rpc.Status | The error. |
getErrorBuilder()
public Status.Builder getErrorBuilder()
Output only. An error object that describes the reason for the failure.
This property is always present when state
is FAILED
.
.google.rpc.Status error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
com.google.rpc.Status.Builder |
getErrorOrBuilder()
public StatusOrBuilder getErrorOrBuilder()
Output only. An error object that describes the reason for the failure.
This property is always present when state
is FAILED
.
.google.rpc.Status error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
com.google.rpc.StatusOrBuilder |
getExecuteNow()
public boolean getExecuteNow()
When this field is set to true, the event will be executed at the earliest time that the server can schedule the event and execution_time will be populated with the time that the server actually schedules the event.
bool execute_now = 9;
Returns | |
---|---|
Type | Description |
boolean | The executeNow. |
getExecutionTime()
public Timestamp getExecutionTime()
The time to execute the event. If you set
execute_now to
true
, then do not set this field in the CreateEvent
request. In
this case, the server schedules the event and populates this field. If you
set execute_now to
false
, then you must set this field to at least 10 seconds in the future
or else the event can't be created.
.google.protobuf.Timestamp execution_time = 10;
Returns | |
---|---|
Type | Description |
Timestamp | The executionTime. |
getExecutionTimeBuilder()
public Timestamp.Builder getExecutionTimeBuilder()
The time to execute the event. If you set
execute_now to
true
, then do not set this field in the CreateEvent
request. In
this case, the server schedules the event and populates this field. If you
set execute_now to
false
, then you must set this field to at least 10 seconds in the future
or else the event can't be created.
.google.protobuf.Timestamp execution_time = 10;
Returns | |
---|---|
Type | Description |
Builder |
getExecutionTimeOrBuilder()
public TimestampOrBuilder getExecutionTimeOrBuilder()
The time to execute the event. If you set
execute_now to
true
, then do not set this field in the CreateEvent
request. In
this case, the server schedules the event and populates this field. If you
set execute_now to
false
, then you must set this field to at least 10 seconds in the future
or else the event can't be created.
.google.protobuf.Timestamp execution_time = 10;
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getInputSwitch()
public Event.InputSwitchTask getInputSwitch()
Required. Switches to another input stream.
.google.cloud.video.livestream.v1.Event.InputSwitchTask input_switch = 5 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Event.InputSwitchTask | The inputSwitch. |
getInputSwitchBuilder()
public Event.InputSwitchTask.Builder getInputSwitchBuilder()
Required. Switches to another input stream.
.google.cloud.video.livestream.v1.Event.InputSwitchTask input_switch = 5 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Event.InputSwitchTask.Builder |
getInputSwitchOrBuilder()
public Event.InputSwitchTaskOrBuilder getInputSwitchOrBuilder()
Required. Switches to another input stream.
.google.cloud.video.livestream.v1.Event.InputSwitchTask input_switch = 5 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Event.InputSwitchTaskOrBuilder |
getLabels()
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsCount()
public int getLabelsCount()
User-defined key/value metadata.
map<string, string> labels = 4;
Returns | |
---|---|
Type | Description |
int |
getLabelsMap()
public Map<String,String> getLabelsMap()
User-defined key/value metadata.
map<string, string> labels = 4;
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
User-defined key/value metadata.
map<string, string> labels = 4;
Parameters | |
---|---|
Name | Description |
key | String |
defaultValue | String |
Returns | |
---|---|
Type | Description |
String |
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
User-defined key/value metadata.
map<string, string> labels = 4;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
String |
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getMute()
public Event.MuteTask getMute()
Required. Mutes the stream.
.google.cloud.video.livestream.v1.Event.MuteTask mute = 15 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Event.MuteTask | The mute. |
getMuteBuilder()
public Event.MuteTask.Builder getMuteBuilder()
Required. Mutes the stream.
.google.cloud.video.livestream.v1.Event.MuteTask mute = 15 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Event.MuteTask.Builder |
getMuteOrBuilder()
public Event.MuteTaskOrBuilder getMuteOrBuilder()
Required. Mutes the stream.
.google.cloud.video.livestream.v1.Event.MuteTask mute = 15 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Event.MuteTaskOrBuilder |
getName()
public String getName()
The resource name of the event, in the form of:
projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}
.
string name = 1;
Returns | |
---|---|
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
The resource name of the event, in the form of:
projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}
.
string name = 1;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for name. |
getReturnToProgram()
public Event.ReturnToProgramTask getReturnToProgram()
Required. Stops any running ad break.
.google.cloud.video.livestream.v1.Event.ReturnToProgramTask return_to_program = 13 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Event.ReturnToProgramTask | The returnToProgram. |
getReturnToProgramBuilder()
public Event.ReturnToProgramTask.Builder getReturnToProgramBuilder()
Required. Stops any running ad break.
.google.cloud.video.livestream.v1.Event.ReturnToProgramTask return_to_program = 13 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Event.ReturnToProgramTask.Builder |
getReturnToProgramOrBuilder()
public Event.ReturnToProgramTaskOrBuilder getReturnToProgramOrBuilder()
Required. Stops any running ad break.
.google.cloud.video.livestream.v1.Event.ReturnToProgramTask return_to_program = 13 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Event.ReturnToProgramTaskOrBuilder |
getState()
public Event.State getState()
Output only. The state of the event.
.google.cloud.video.livestream.v1.Event.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Event.State | The state. |
getStateValue()
public int getStateValue()
Output only. The state of the event.
.google.cloud.video.livestream.v1.Event.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int | The enum numeric value on the wire for state. |
getTaskCase()
public Event.TaskCase getTaskCase()
Returns | |
---|---|
Type | Description |
Event.TaskCase |
getUnmute()
public Event.UnmuteTask getUnmute()
Required. Unmutes the stream.
.google.cloud.video.livestream.v1.Event.UnmuteTask unmute = 16 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Event.UnmuteTask | The unmute. |
getUnmuteBuilder()
public Event.UnmuteTask.Builder getUnmuteBuilder()
Required. Unmutes the stream.
.google.cloud.video.livestream.v1.Event.UnmuteTask unmute = 16 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Event.UnmuteTask.Builder |
getUnmuteOrBuilder()
public Event.UnmuteTaskOrBuilder getUnmuteOrBuilder()
Required. Unmutes the stream.
.google.cloud.video.livestream.v1.Event.UnmuteTask unmute = 16 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Event.UnmuteTaskOrBuilder |
getUpdateTime()
public Timestamp getUpdateTime()
Output only. The update time.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp | The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()
Output only. The update time.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The update time.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
hasAdBreak()
public boolean hasAdBreak()
Required. Inserts a new ad opportunity.
.google.cloud.video.livestream.v1.Event.AdBreakTask ad_break = 6 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean | Whether the adBreak field is set. |
hasCreateTime()
public boolean hasCreateTime()
Output only. The creation time.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean | Whether the createTime field is set. |
hasError()
public boolean hasError()
Output only. An error object that describes the reason for the failure.
This property is always present when state
is FAILED
.
.google.rpc.Status error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean | Whether the error field is set. |
hasExecutionTime()
public boolean hasExecutionTime()
The time to execute the event. If you set
execute_now to
true
, then do not set this field in the CreateEvent
request. In
this case, the server schedules the event and populates this field. If you
set execute_now to
false
, then you must set this field to at least 10 seconds in the future
or else the event can't be created.
.google.protobuf.Timestamp execution_time = 10;
Returns | |
---|---|
Type | Description |
boolean | Whether the executionTime field is set. |
hasInputSwitch()
public boolean hasInputSwitch()
Required. Switches to another input stream.
.google.cloud.video.livestream.v1.Event.InputSwitchTask input_switch = 5 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean | Whether the inputSwitch field is set. |
hasMute()
public boolean hasMute()
Required. Mutes the stream.
.google.cloud.video.livestream.v1.Event.MuteTask mute = 15 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean | Whether the mute field is set. |
hasReturnToProgram()
public boolean hasReturnToProgram()
Required. Stops any running ad break.
.google.cloud.video.livestream.v1.Event.ReturnToProgramTask return_to_program = 13 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean | Whether the returnToProgram field is set. |
hasUnmute()
public boolean hasUnmute()
Required. Unmutes the stream.
.google.cloud.video.livestream.v1.Event.UnmuteTask unmute = 16 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean | Whether the unmute field is set. |
hasUpdateTime()
public boolean hasUpdateTime()
Output only. The update time.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean | Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeAdBreak(Event.AdBreakTask value)
public Event.Builder mergeAdBreak(Event.AdBreakTask value)
Required. Inserts a new ad opportunity.
.google.cloud.video.livestream.v1.Event.AdBreakTask ad_break = 6 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value | Event.AdBreakTask |
Returns | |
---|---|
Type | Description |
Event.Builder |
mergeCreateTime(Timestamp value)
public Event.Builder mergeCreateTime(Timestamp value)
Output only. The creation time.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
Event.Builder |
mergeError(Status value)
public Event.Builder mergeError(Status value)
Output only. An error object that describes the reason for the failure.
This property is always present when state
is FAILED
.
.google.rpc.Status error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | com.google.rpc.Status |
Returns | |
---|---|
Type | Description |
Event.Builder |
mergeExecutionTime(Timestamp value)
public Event.Builder mergeExecutionTime(Timestamp value)
The time to execute the event. If you set
execute_now to
true
, then do not set this field in the CreateEvent
request. In
this case, the server schedules the event and populates this field. If you
set execute_now to
false
, then you must set this field to at least 10 seconds in the future
or else the event can't be created.
.google.protobuf.Timestamp execution_time = 10;
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
Event.Builder |
mergeFrom(Event other)
public Event.Builder mergeFrom(Event other)
Parameter | |
---|---|
Name | Description |
other | Event |
Returns | |
---|---|
Type | Description |
Event.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Event.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Event.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Event.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
Event.Builder |
mergeInputSwitch(Event.InputSwitchTask value)
public Event.Builder mergeInputSwitch(Event.InputSwitchTask value)
Required. Switches to another input stream.
.google.cloud.video.livestream.v1.Event.InputSwitchTask input_switch = 5 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value | Event.InputSwitchTask |
Returns | |
---|---|
Type | Description |
Event.Builder |
mergeMute(Event.MuteTask value)
public Event.Builder mergeMute(Event.MuteTask value)
Required. Mutes the stream.
.google.cloud.video.livestream.v1.Event.MuteTask mute = 15 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value | Event.MuteTask |
Returns | |
---|---|
Type | Description |
Event.Builder |
mergeReturnToProgram(Event.ReturnToProgramTask value)
public Event.Builder mergeReturnToProgram(Event.ReturnToProgramTask value)
Required. Stops any running ad break.
.google.cloud.video.livestream.v1.Event.ReturnToProgramTask return_to_program = 13 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value | Event.ReturnToProgramTask |
Returns | |
---|---|
Type | Description |
Event.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Event.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Event.Builder |
mergeUnmute(Event.UnmuteTask value)
public Event.Builder mergeUnmute(Event.UnmuteTask value)
Required. Unmutes the stream.
.google.cloud.video.livestream.v1.Event.UnmuteTask unmute = 16 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value | Event.UnmuteTask |
Returns | |
---|---|
Type | Description |
Event.Builder |
mergeUpdateTime(Timestamp value)
public Event.Builder mergeUpdateTime(Timestamp value)
Output only. The update time.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
Event.Builder |
putAllLabels(Map<String,String> values)
public Event.Builder putAllLabels(Map<String,String> values)
User-defined key/value metadata.
map<string, string> labels = 4;
Parameter | |
---|---|
Name | Description |
values | Map<String,String> |
Returns | |
---|---|
Type | Description |
Event.Builder |
putLabels(String key, String value)
public Event.Builder putLabels(String key, String value)
User-defined key/value metadata.
map<string, string> labels = 4;
Parameters | |
---|---|
Name | Description |
key | String |
value | String |
Returns | |
---|---|
Type | Description |
Event.Builder |
removeLabels(String key)
public Event.Builder removeLabels(String key)
User-defined key/value metadata.
map<string, string> labels = 4;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
Event.Builder |
setAdBreak(Event.AdBreakTask value)
public Event.Builder setAdBreak(Event.AdBreakTask value)
Required. Inserts a new ad opportunity.
.google.cloud.video.livestream.v1.Event.AdBreakTask ad_break = 6 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value | Event.AdBreakTask |
Returns | |
---|---|
Type | Description |
Event.Builder |
setAdBreak(Event.AdBreakTask.Builder builderForValue)
public Event.Builder setAdBreak(Event.AdBreakTask.Builder builderForValue)
Required. Inserts a new ad opportunity.
.google.cloud.video.livestream.v1.Event.AdBreakTask ad_break = 6 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue | Event.AdBreakTask.Builder |
Returns | |
---|---|
Type | Description |
Event.Builder |
setCreateTime(Timestamp value)
public Event.Builder setCreateTime(Timestamp value)
Output only. The creation time.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
Event.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public Event.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. The creation time.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
Event.Builder |
setError(Status value)
public Event.Builder setError(Status value)
Output only. An error object that describes the reason for the failure.
This property is always present when state
is FAILED
.
.google.rpc.Status error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | com.google.rpc.Status |
Returns | |
---|---|
Type | Description |
Event.Builder |
setError(Status.Builder builderForValue)
public Event.Builder setError(Status.Builder builderForValue)
Output only. An error object that describes the reason for the failure.
This property is always present when state
is FAILED
.
.google.rpc.Status error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue | com.google.rpc.Status.Builder |
Returns | |
---|---|
Type | Description |
Event.Builder |
setExecuteNow(boolean value)
public Event.Builder setExecuteNow(boolean value)
When this field is set to true, the event will be executed at the earliest time that the server can schedule the event and execution_time will be populated with the time that the server actually schedules the event.
bool execute_now = 9;
Parameter | |
---|---|
Name | Description |
value | boolean The executeNow to set. |
Returns | |
---|---|
Type | Description |
Event.Builder | This builder for chaining. |
setExecutionTime(Timestamp value)
public Event.Builder setExecutionTime(Timestamp value)
The time to execute the event. If you set
execute_now to
true
, then do not set this field in the CreateEvent
request. In
this case, the server schedules the event and populates this field. If you
set execute_now to
false
, then you must set this field to at least 10 seconds in the future
or else the event can't be created.
.google.protobuf.Timestamp execution_time = 10;
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
Event.Builder |
setExecutionTime(Timestamp.Builder builderForValue)
public Event.Builder setExecutionTime(Timestamp.Builder builderForValue)
The time to execute the event. If you set
execute_now to
true
, then do not set this field in the CreateEvent
request. In
this case, the server schedules the event and populates this field. If you
set execute_now to
false
, then you must set this field to at least 10 seconds in the future
or else the event can't be created.
.google.protobuf.Timestamp execution_time = 10;
Parameter | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
Event.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Event.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Event.Builder |
setInputSwitch(Event.InputSwitchTask value)
public Event.Builder setInputSwitch(Event.InputSwitchTask value)
Required. Switches to another input stream.
.google.cloud.video.livestream.v1.Event.InputSwitchTask input_switch = 5 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value | Event.InputSwitchTask |
Returns | |
---|---|
Type | Description |
Event.Builder |
setInputSwitch(Event.InputSwitchTask.Builder builderForValue)
public Event.Builder setInputSwitch(Event.InputSwitchTask.Builder builderForValue)
Required. Switches to another input stream.
.google.cloud.video.livestream.v1.Event.InputSwitchTask input_switch = 5 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue | Event.InputSwitchTask.Builder |
Returns | |
---|---|
Type | Description |
Event.Builder |
setMute(Event.MuteTask value)
public Event.Builder setMute(Event.MuteTask value)
Required. Mutes the stream.
.google.cloud.video.livestream.v1.Event.MuteTask mute = 15 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value | Event.MuteTask |
Returns | |
---|---|
Type | Description |
Event.Builder |
setMute(Event.MuteTask.Builder builderForValue)
public Event.Builder setMute(Event.MuteTask.Builder builderForValue)
Required. Mutes the stream.
.google.cloud.video.livestream.v1.Event.MuteTask mute = 15 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue | Event.MuteTask.Builder |
Returns | |
---|---|
Type | Description |
Event.Builder |
setName(String value)
public Event.Builder setName(String value)
The resource name of the event, in the form of:
projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}
.
string name = 1;
Parameter | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
Type | Description |
Event.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Event.Builder setNameBytes(ByteString value)
The resource name of the event, in the form of:
projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}
.
string name = 1;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
Event.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Event.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
Event.Builder |
setReturnToProgram(Event.ReturnToProgramTask value)
public Event.Builder setReturnToProgram(Event.ReturnToProgramTask value)
Required. Stops any running ad break.
.google.cloud.video.livestream.v1.Event.ReturnToProgramTask return_to_program = 13 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value | Event.ReturnToProgramTask |
Returns | |
---|---|
Type | Description |
Event.Builder |
setReturnToProgram(Event.ReturnToProgramTask.Builder builderForValue)
public Event.Builder setReturnToProgram(Event.ReturnToProgramTask.Builder builderForValue)
Required. Stops any running ad break.
.google.cloud.video.livestream.v1.Event.ReturnToProgramTask return_to_program = 13 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue | Event.ReturnToProgramTask.Builder |
Returns | |
---|---|
Type | Description |
Event.Builder |
setState(Event.State value)
public Event.Builder setState(Event.State value)
Output only. The state of the event.
.google.cloud.video.livestream.v1.Event.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | Event.State The state to set. |
Returns | |
---|---|
Type | Description |
Event.Builder | This builder for chaining. |
setStateValue(int value)
public Event.Builder setStateValue(int value)
Output only. The state of the event.
.google.cloud.video.livestream.v1.Event.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for state to set. |
Returns | |
---|---|
Type | Description |
Event.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Event.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Event.Builder |
setUnmute(Event.UnmuteTask value)
public Event.Builder setUnmute(Event.UnmuteTask value)
Required. Unmutes the stream.
.google.cloud.video.livestream.v1.Event.UnmuteTask unmute = 16 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value | Event.UnmuteTask |
Returns | |
---|---|
Type | Description |
Event.Builder |
setUnmute(Event.UnmuteTask.Builder builderForValue)
public Event.Builder setUnmute(Event.UnmuteTask.Builder builderForValue)
Required. Unmutes the stream.
.google.cloud.video.livestream.v1.Event.UnmuteTask unmute = 16 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue | Event.UnmuteTask.Builder |
Returns | |
---|---|
Type | Description |
Event.Builder |
setUpdateTime(Timestamp value)
public Event.Builder setUpdateTime(Timestamp value)
Output only. The update time.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
Event.Builder |
setUpdateTime(Timestamp.Builder builderForValue)
public Event.Builder setUpdateTime(Timestamp.Builder builderForValue)
Output only. The update time.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
Event.Builder |