# Interface EventOrBuilder (0.95.0)

0.95.0 (latest) 0.93.0 0.90.0 0.89.0 0.87.0 0.85.0 0.84.0 0.82.0 0.80.0 0.78.0 0.77.0 0.76.0 0.75.0 0.74.0 0.72.0 0.70.0 0.69.0 0.66.0 0.65.0 0.64.0 0.62.0 0.61.0 0.60.0 0.59.0 0.58.0 0.57.0 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 interface EventOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### containsLabels(String key)

    public abstract boolean containsLabels(String key)

User-defined key/value metadata.

`map<string, string> labels = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getAdBreak()

    public abstract Event.AdBreakTask getAdBreak()

Inserts a new ad opportunity.

`.google.cloud.video.livestream.v1.Event.AdBreakTask ad_break = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/com.google.cloud.video.livestream.v1.Event.AdBreakTask` | The adBreak. |

### getAdBreakOrBuilder()

    public abstract Event.AdBreakTaskOrBuilder getAdBreakOrBuilder()

Inserts a new ad opportunity.

`.google.cloud.video.livestream.v1.Event.AdBreakTask ad_break = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/com.google.cloud.video.livestream.v1.Event.AdBreakTaskOrBuilder` |   |

### getCreateTime()

    public abstract Timestamp getCreateTime()

Output only. The creation time.

`.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The createTime. |

### getCreateTimeOrBuilder()

    public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation time.

`.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getError()

    public abstract 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. |

### getErrorOrBuilder()

    public abstract 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 abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The executeNow. |

### getExecutionTime()

    public abstract 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The executionTime. |

### getExecutionTimeOrBuilder()

    public abstract 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getInputSwitch()

    public abstract Event.InputSwitchTask getInputSwitch()

Switches to another input stream.

`.google.cloud.video.livestream.v1.Event.InputSwitchTask input_switch = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/com.google.cloud.video.livestream.v1.Event.InputSwitchTask` | The inputSwitch. |

### getInputSwitchOrBuilder()

    public abstract Event.InputSwitchTaskOrBuilder getInputSwitchOrBuilder()

Switches to another input stream.

`.google.cloud.video.livestream.v1.Event.InputSwitchTask input_switch = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/com.google.cloud.video.livestream.v1.Event.InputSwitchTaskOrBuilder` |   |

### getLabels() (deprecated)

    public abstract Map<String,String> getLabels()

Use [#getLabelsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/com.google.cloud.video.livestream.v1.EventOrBuilder#com_google_cloud_video_livestream_v1_EventOrBuilder_getLabelsMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getLabelsCount()

    public abstract int getLabelsCount()

User-defined key/value metadata.

`map<string, string> labels = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getLabelsMap()

    public abstract Map<String,String> getLabelsMap()

User-defined key/value metadata.

`map<string, string> labels = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getLabelsOrDefault(String key, String defaultValue)

    public abstract String getLabelsOrDefault(String key, String defaultValue)

User-defined key/value metadata.

`map<string, string> labels = 4;`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getLabelsOrThrow(String key)

    public abstract String getLabelsOrThrow(String key)

User-defined key/value metadata.

`map<string, string> labels = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getMute()

    public abstract Event.MuteTask getMute()

Mutes the stream.

`.google.cloud.video.livestream.v1.Event.MuteTask mute = 15;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/com.google.cloud.video.livestream.v1.Event.MuteTask` | The mute. |

### getMuteOrBuilder()

    public abstract Event.MuteTaskOrBuilder getMuteOrBuilder()

Mutes the stream.

`.google.cloud.video.livestream.v1.Event.MuteTask mute = 15;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/com.google.cloud.video.livestream.v1.Event.MuteTaskOrBuilder` |   |

### getName()

    public abstract 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public abstract 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getReturnToProgram()

    public abstract Event.ReturnToProgramTask getReturnToProgram()

Stops any running ad break.

`.google.cloud.video.livestream.v1.Event.ReturnToProgramTask return_to_program = 13;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask` | The returnToProgram. |

### getReturnToProgramOrBuilder()

    public abstract Event.ReturnToProgramTaskOrBuilder getReturnToProgramOrBuilder()

Stops any running ad break.

`.google.cloud.video.livestream.v1.Event.ReturnToProgramTask return_to_program = 13;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/com.google.cloud.video.livestream.v1.Event.ReturnToProgramTaskOrBuilder` |   |

### getSlate()

    public abstract Event.SlateTask getSlate()

Inserts a slate.

`.google.cloud.video.livestream.v1.Event.SlateTask slate = 14;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/com.google.cloud.video.livestream.v1.Event.SlateTask` | The slate. |

### getSlateOrBuilder()

    public abstract Event.SlateTaskOrBuilder getSlateOrBuilder()

Inserts a slate.

`.google.cloud.video.livestream.v1.Event.SlateTask slate = 14;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/com.google.cloud.video.livestream.v1.Event.SlateTaskOrBuilder` |   |

### getState()

    public abstract 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** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/com.google.cloud.video.livestream.v1.Event.State` | The state. |

### getStateValue()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for state. |

### getTaskCase()

    public abstract Event.TaskCase getTaskCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/com.google.cloud.video.livestream.v1.Event.TaskCase` |   |

### getUnmute()

    public abstract Event.UnmuteTask getUnmute()

Unmutes the stream.

`.google.cloud.video.livestream.v1.Event.UnmuteTask unmute = 16;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/com.google.cloud.video.livestream.v1.Event.UnmuteTask` | The unmute. |

### getUnmuteOrBuilder()

    public abstract Event.UnmuteTaskOrBuilder getUnmuteOrBuilder()

Unmutes the stream.

`.google.cloud.video.livestream.v1.Event.UnmuteTask unmute = 16;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/com.google.cloud.video.livestream.v1.Event.UnmuteTaskOrBuilder` |   |

### getUpdateEncryptions()

    public abstract Event.UpdateEncryptionsTask getUpdateEncryptions()

Updates encryption settings.

`.google.cloud.video.livestream.v1.Event.UpdateEncryptionsTask update_encryptions = 17;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/com.google.cloud.video.livestream.v1.Event.UpdateEncryptionsTask` | The updateEncryptions. |

### getUpdateEncryptionsOrBuilder()

    public abstract Event.UpdateEncryptionsTaskOrBuilder getUpdateEncryptionsOrBuilder()

Updates encryption settings.

`.google.cloud.video.livestream.v1.Event.UpdateEncryptionsTask update_encryptions = 17;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/com.google.cloud.video.livestream.v1.Event.UpdateEncryptionsTaskOrBuilder` |   |

### getUpdateTime()

    public abstract Timestamp getUpdateTime()

Output only. The update time.

`.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The updateTime. |

### getUpdateTimeOrBuilder()

    public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The update time.

`.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### hasAdBreak()

    public abstract boolean hasAdBreak()

Inserts a new ad opportunity.

`.google.cloud.video.livestream.v1.Event.AdBreakTask ad_break = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the adBreak field is set. |

### hasCreateTime()

    public abstract boolean hasCreateTime()

Output only. The creation time.

`.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the createTime field is set. |

### hasError()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the error field is set. |

### hasExecutionTime()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the executionTime field is set. |

### hasInputSwitch()

    public abstract boolean hasInputSwitch()

Switches to another input stream.

`.google.cloud.video.livestream.v1.Event.InputSwitchTask input_switch = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the inputSwitch field is set. |

### hasMute()

    public abstract boolean hasMute()

Mutes the stream.

`.google.cloud.video.livestream.v1.Event.MuteTask mute = 15;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the mute field is set. |

### hasReturnToProgram()

    public abstract boolean hasReturnToProgram()

Stops any running ad break.

`.google.cloud.video.livestream.v1.Event.ReturnToProgramTask return_to_program = 13;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the returnToProgram field is set. |

### hasSlate()

    public abstract boolean hasSlate()

Inserts a slate.

`.google.cloud.video.livestream.v1.Event.SlateTask slate = 14;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the slate field is set. |

### hasUnmute()

    public abstract boolean hasUnmute()

Unmutes the stream.

`.google.cloud.video.livestream.v1.Event.UnmuteTask unmute = 16;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the unmute field is set. |

### hasUpdateEncryptions()

    public abstract boolean hasUpdateEncryptions()

Updates encryption settings.

`.google.cloud.video.livestream.v1.Event.UpdateEncryptionsTask update_encryptions = 17;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the updateEncryptions field is set. |

### hasUpdateTime()

    public abstract boolean hasUpdateTime()

Output only. The update time.

`.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the updateTime field is set. |