public final class Event extends GeneratedMessageV3 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
Static Fields
AD_BREAK_FIELD_NUMBER
public static final int AD_BREAK_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
EXECUTE_NOW_FIELD_NUMBER
public static final int EXECUTE_NOW_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
EXECUTION_TIME_FIELD_NUMBER
public static final int EXECUTION_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static Event getDefaultInstance()
Returns |
---|
Type | Description |
Event | |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Event.Builder newBuilder()
newBuilder(Event prototype)
public static Event.Builder newBuilder(Event prototype)
Parameter |
---|
Name | Description |
prototype | Event
|
public static Event parseDelimitedFrom(InputStream input)
Returns |
---|
Type | Description |
Event | |
public static Event parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Event | |
parseFrom(byte[] data)
public static Event parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
Returns |
---|
Type | Description |
Event | |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Event parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Event | |
parseFrom(ByteString data)
public static Event parseFrom(ByteString data)
Returns |
---|
Type | Description |
Event | |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Event parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Event | |
public static Event parseFrom(CodedInputStream input)
Returns |
---|
Type | Description |
Event | |
public static Event parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Event | |
public static Event parseFrom(InputStream input)
Returns |
---|
Type | Description |
Event | |
public static Event parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Event | |
parseFrom(ByteBuffer data)
public static Event parseFrom(ByteBuffer data)
Returns |
---|
Type | Description |
Event | |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Event parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Event | |
parser()
public static Parser<Event> parser()
Methods
containsLabels(String key)
public boolean containsLabels(String key)
User-defined key/value metadata.
map<string, string> labels = 4;
Parameter |
---|
Name | Description |
key | String
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
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];
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];
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.
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The creation time.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDefaultInstanceForType()
public Event getDefaultInstanceForType()
Returns |
---|
Type | Description |
Event | |
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.
|
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 when the event should be executed. When execute_now is set to
true
, this field should not be set in CreateEvent
request and will be
populated with the time that the server schedules the event.
.google.protobuf.Timestamp execution_time = 10;
Returns |
---|
Type | Description |
Timestamp | The executionTime.
|
getExecutionTimeOrBuilder()
public TimestampOrBuilder getExecutionTimeOrBuilder()
The time when the event should be executed. When execute_now is set to
true
, this field should not be set in CreateEvent
request and will be
populated with the time that the server schedules the event.
.google.protobuf.Timestamp execution_time = 10;
getLabels()
public Map<String,String> getLabels()
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;
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
User-defined key/value metadata.
map<string, string> labels = 4;
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
User-defined key/value metadata.
map<string, string> labels = 4;
Parameter |
---|
Name | Description |
key | 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.
|
getParserForType()
public Parser<Event> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
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];
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()
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
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.
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The update time.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
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 when the event should be executed. When execute_now is set to
true
, this field should not be set in CreateEvent
request and will be
populated with the time that the server schedules the event.
.google.protobuf.Timestamp execution_time = 10;
Returns |
---|
Type | Description |
boolean | Whether the executionTime field is set.
|
hasUpdateTime()
public boolean hasUpdateTime()
Output only. The update time.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
---|
Type | Description |
boolean | Whether the updateTime field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Event.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Event.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public Event.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides