All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.video.livestream.v1.Event Maven / Gradle / Ivy

There is a newer version: 0.57.0
Show newest version
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/video/livestream/v1/resources.proto

// Protobuf Java Version: 3.25.5
package com.google.cloud.video.livestream.v1;

/**
 *
 *
 * 
 * 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 {@code google.cloud.video.livestream.v1.Event} */ public final class Event extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.Event) EventOrBuilder { private static final long serialVersionUID = 0L; // Use Event.newBuilder() to construct. private Event(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Event() { name_ = ""; state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Event(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 4: return internalGetLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.Event.class, com.google.cloud.video.livestream.v1.Event.Builder.class); } /** * * *
   * State of the event
   * 
* * Protobuf enum {@code google.cloud.video.livestream.v1.Event.State} */ public enum State implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Event state is not specified.
     * 
* * STATE_UNSPECIFIED = 0; */ STATE_UNSPECIFIED(0), /** * * *
     * Event is scheduled but not executed yet.
     * 
* * SCHEDULED = 1; */ SCHEDULED(1), /** * * *
     * Event is being executed.
     * 
* * RUNNING = 2; */ RUNNING(2), /** * * *
     * Event has been successfully executed.
     * 
* * SUCCEEDED = 3; */ SUCCEEDED(3), /** * * *
     * Event fails to be executed.
     * 
* * FAILED = 4; */ FAILED(4), /** * * *
     * Event has been created but not scheduled yet.
     * 
* * PENDING = 5; */ PENDING(5), /** * * *
     * Event was stopped before running for its full duration.
     * 
* * STOPPED = 6; */ STOPPED(6), UNRECOGNIZED(-1), ; /** * * *
     * Event state is not specified.
     * 
* * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** * * *
     * Event is scheduled but not executed yet.
     * 
* * SCHEDULED = 1; */ public static final int SCHEDULED_VALUE = 1; /** * * *
     * Event is being executed.
     * 
* * RUNNING = 2; */ public static final int RUNNING_VALUE = 2; /** * * *
     * Event has been successfully executed.
     * 
* * SUCCEEDED = 3; */ public static final int SUCCEEDED_VALUE = 3; /** * * *
     * Event fails to be executed.
     * 
* * FAILED = 4; */ public static final int FAILED_VALUE = 4; /** * * *
     * Event has been created but not scheduled yet.
     * 
* * PENDING = 5; */ public static final int PENDING_VALUE = 5; /** * * *
     * Event was stopped before running for its full duration.
     * 
* * STOPPED = 6; */ public static final int STOPPED_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static State valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static State forNumber(int value) { switch (value) { case 0: return STATE_UNSPECIFIED; case 1: return SCHEDULED; case 2: return RUNNING; case 3: return SUCCEEDED; case 4: return FAILED; case 5: return PENDING; case 6: return STOPPED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public State findValueByNumber(int number) { return State.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.video.livestream.v1.Event.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private State(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.video.livestream.v1.Event.State) } public interface InputSwitchTaskOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.video.livestream.v1.Event.InputSwitchTask) com.google.protobuf.MessageOrBuilder { /** * * *
     * The
     * [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]
     * of the input to switch to.
     * 
* * string input_key = 1; * * @return The inputKey. */ java.lang.String getInputKey(); /** * * *
     * The
     * [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]
     * of the input to switch to.
     * 
* * string input_key = 1; * * @return The bytes for inputKey. */ com.google.protobuf.ByteString getInputKeyBytes(); } /** * * *
   * Switches to another input stream. Automatic failover is then disabled.
   * 
* * Protobuf type {@code google.cloud.video.livestream.v1.Event.InputSwitchTask} */ public static final class InputSwitchTask extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.Event.InputSwitchTask) InputSwitchTaskOrBuilder { private static final long serialVersionUID = 0L; // Use InputSwitchTask.newBuilder() to construct. private InputSwitchTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InputSwitchTask() { inputKey_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InputSwitchTask(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_InputSwitchTask_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_InputSwitchTask_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.Event.InputSwitchTask.class, com.google.cloud.video.livestream.v1.Event.InputSwitchTask.Builder.class); } public static final int INPUT_KEY_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object inputKey_ = ""; /** * * *
     * The
     * [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]
     * of the input to switch to.
     * 
* * string input_key = 1; * * @return The inputKey. */ @java.lang.Override public java.lang.String getInputKey() { java.lang.Object ref = inputKey_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputKey_ = s; return s; } } /** * * *
     * The
     * [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]
     * of the input to switch to.
     * 
* * string input_key = 1; * * @return The bytes for inputKey. */ @java.lang.Override public com.google.protobuf.ByteString getInputKeyBytes() { java.lang.Object ref = inputKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputKey_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputKey_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.video.livestream.v1.Event.InputSwitchTask)) { return super.equals(obj); } com.google.cloud.video.livestream.v1.Event.InputSwitchTask other = (com.google.cloud.video.livestream.v1.Event.InputSwitchTask) obj; if (!getInputKey().equals(other.getInputKey())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INPUT_KEY_FIELD_NUMBER; hash = (53 * hash) + getInputKey().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.video.livestream.v1.Event.InputSwitchTask parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Event.InputSwitchTask parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.InputSwitchTask parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Event.InputSwitchTask parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.InputSwitchTask parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Event.InputSwitchTask parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.InputSwitchTask parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Event.InputSwitchTask parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.InputSwitchTask parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Event.InputSwitchTask parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.InputSwitchTask parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Event.InputSwitchTask parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.cloud.video.livestream.v1.Event.InputSwitchTask prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * Switches to another input stream. Automatic failover is then disabled.
     * 
* * Protobuf type {@code google.cloud.video.livestream.v1.Event.InputSwitchTask} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.Event.InputSwitchTask) com.google.cloud.video.livestream.v1.Event.InputSwitchTaskOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_InputSwitchTask_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_InputSwitchTask_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.Event.InputSwitchTask.class, com.google.cloud.video.livestream.v1.Event.InputSwitchTask.Builder.class); } // Construct using com.google.cloud.video.livestream.v1.Event.InputSwitchTask.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; inputKey_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_InputSwitchTask_descriptor; } @java.lang.Override public com.google.cloud.video.livestream.v1.Event.InputSwitchTask getDefaultInstanceForType() { return com.google.cloud.video.livestream.v1.Event.InputSwitchTask.getDefaultInstance(); } @java.lang.Override public com.google.cloud.video.livestream.v1.Event.InputSwitchTask build() { com.google.cloud.video.livestream.v1.Event.InputSwitchTask result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.video.livestream.v1.Event.InputSwitchTask buildPartial() { com.google.cloud.video.livestream.v1.Event.InputSwitchTask result = new com.google.cloud.video.livestream.v1.Event.InputSwitchTask(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.video.livestream.v1.Event.InputSwitchTask result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.inputKey_ = inputKey_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.video.livestream.v1.Event.InputSwitchTask) { return mergeFrom((com.google.cloud.video.livestream.v1.Event.InputSwitchTask) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.video.livestream.v1.Event.InputSwitchTask other) { if (other == com.google.cloud.video.livestream.v1.Event.InputSwitchTask.getDefaultInstance()) return this; if (!other.getInputKey().isEmpty()) { inputKey_ = other.inputKey_; bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { inputKey_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object inputKey_ = ""; /** * * *
       * The
       * [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]
       * of the input to switch to.
       * 
* * string input_key = 1; * * @return The inputKey. */ public java.lang.String getInputKey() { java.lang.Object ref = inputKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputKey_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The
       * [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]
       * of the input to switch to.
       * 
* * string input_key = 1; * * @return The bytes for inputKey. */ public com.google.protobuf.ByteString getInputKeyBytes() { java.lang.Object ref = inputKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The
       * [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]
       * of the input to switch to.
       * 
* * string input_key = 1; * * @param value The inputKey to set. * @return This builder for chaining. */ public Builder setInputKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } inputKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The
       * [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]
       * of the input to switch to.
       * 
* * string input_key = 1; * * @return This builder for chaining. */ public Builder clearInputKey() { inputKey_ = getDefaultInstance().getInputKey(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * The
       * [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]
       * of the input to switch to.
       * 
* * string input_key = 1; * * @param value The bytes for inputKey to set. * @return This builder for chaining. */ public Builder setInputKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); inputKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.video.livestream.v1.Event.InputSwitchTask) } // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.Event.InputSwitchTask) private static final com.google.cloud.video.livestream.v1.Event.InputSwitchTask DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.Event.InputSwitchTask(); } public static com.google.cloud.video.livestream.v1.Event.InputSwitchTask getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InputSwitchTask parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.video.livestream.v1.Event.InputSwitchTask getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AdBreakTaskOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.video.livestream.v1.Event.AdBreakTask) com.google.protobuf.MessageOrBuilder { /** * * *
     * Duration of an ad opportunity. Must be greater than 0.
     * 
* * .google.protobuf.Duration duration = 1; * * @return Whether the duration field is set. */ boolean hasDuration(); /** * * *
     * Duration of an ad opportunity. Must be greater than 0.
     * 
* * .google.protobuf.Duration duration = 1; * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** * * *
     * Duration of an ad opportunity. Must be greater than 0.
     * 
* * .google.protobuf.Duration duration = 1; */ com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); } /** * * *
   * Inserts a new ad opportunity.
   * 
* * Protobuf type {@code google.cloud.video.livestream.v1.Event.AdBreakTask} */ public static final class AdBreakTask extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.Event.AdBreakTask) AdBreakTaskOrBuilder { private static final long serialVersionUID = 0L; // Use AdBreakTask.newBuilder() to construct. private AdBreakTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AdBreakTask() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AdBreakTask(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_AdBreakTask_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_AdBreakTask_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.Event.AdBreakTask.class, com.google.cloud.video.livestream.v1.Event.AdBreakTask.Builder.class); } private int bitField0_; public static final int DURATION_FIELD_NUMBER = 1; private com.google.protobuf.Duration duration_; /** * * *
     * Duration of an ad opportunity. Must be greater than 0.
     * 
* * .google.protobuf.Duration duration = 1; * * @return Whether the duration field is set. */ @java.lang.Override public boolean hasDuration() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Duration of an ad opportunity. Must be greater than 0.
     * 
* * .google.protobuf.Duration duration = 1; * * @return The duration. */ @java.lang.Override public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** * * *
     * Duration of an ad opportunity. Must be greater than 0.
     * 
* * .google.protobuf.Duration duration = 1; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getDuration()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDuration()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.video.livestream.v1.Event.AdBreakTask)) { return super.equals(obj); } com.google.cloud.video.livestream.v1.Event.AdBreakTask other = (com.google.cloud.video.livestream.v1.Event.AdBreakTask) obj; if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { if (!getDuration().equals(other.getDuration())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasDuration()) { hash = (37 * hash) + DURATION_FIELD_NUMBER; hash = (53 * hash) + getDuration().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.video.livestream.v1.Event.AdBreakTask parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Event.AdBreakTask parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.AdBreakTask parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Event.AdBreakTask parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.AdBreakTask parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Event.AdBreakTask parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.AdBreakTask parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Event.AdBreakTask parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.AdBreakTask parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Event.AdBreakTask parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.AdBreakTask parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Event.AdBreakTask parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.cloud.video.livestream.v1.Event.AdBreakTask prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * Inserts a new ad opportunity.
     * 
* * Protobuf type {@code google.cloud.video.livestream.v1.Event.AdBreakTask} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.Event.AdBreakTask) com.google.cloud.video.livestream.v1.Event.AdBreakTaskOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_AdBreakTask_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_AdBreakTask_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.Event.AdBreakTask.class, com.google.cloud.video.livestream.v1.Event.AdBreakTask.Builder.class); } // Construct using com.google.cloud.video.livestream.v1.Event.AdBreakTask.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDurationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; duration_ = null; if (durationBuilder_ != null) { durationBuilder_.dispose(); durationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_AdBreakTask_descriptor; } @java.lang.Override public com.google.cloud.video.livestream.v1.Event.AdBreakTask getDefaultInstanceForType() { return com.google.cloud.video.livestream.v1.Event.AdBreakTask.getDefaultInstance(); } @java.lang.Override public com.google.cloud.video.livestream.v1.Event.AdBreakTask build() { com.google.cloud.video.livestream.v1.Event.AdBreakTask result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.video.livestream.v1.Event.AdBreakTask buildPartial() { com.google.cloud.video.livestream.v1.Event.AdBreakTask result = new com.google.cloud.video.livestream.v1.Event.AdBreakTask(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.video.livestream.v1.Event.AdBreakTask result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.video.livestream.v1.Event.AdBreakTask) { return mergeFrom((com.google.cloud.video.livestream.v1.Event.AdBreakTask) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.video.livestream.v1.Event.AdBreakTask other) { if (other == com.google.cloud.video.livestream.v1.Event.AdBreakTask.getDefaultInstance()) return this; if (other.hasDuration()) { mergeDuration(other.getDuration()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; /** * * *
       * Duration of an ad opportunity. Must be greater than 0.
       * 
* * .google.protobuf.Duration duration = 1; * * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
       * Duration of an ad opportunity. Must be greater than 0.
       * 
* * .google.protobuf.Duration duration = 1; * * @return The duration. */ public com.google.protobuf.Duration getDuration() { if (durationBuilder_ == null) { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } else { return durationBuilder_.getMessage(); } } /** * * *
       * Duration of an ad opportunity. Must be greater than 0.
       * 
* * .google.protobuf.Duration duration = 1; */ public Builder setDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } duration_ = value; } else { durationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Duration of an ad opportunity. Must be greater than 0.
       * 
* * .google.protobuf.Duration duration = 1; */ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); } else { durationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Duration of an ad opportunity. Must be greater than 0.
       * 
* * .google.protobuf.Duration duration = 1; */ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && duration_ != null && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { getDurationBuilder().mergeFrom(value); } else { duration_ = value; } } else { durationBuilder_.mergeFrom(value); } if (duration_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * * *
       * Duration of an ad opportunity. Must be greater than 0.
       * 
* * .google.protobuf.Duration duration = 1; */ public Builder clearDuration() { bitField0_ = (bitField0_ & ~0x00000001); duration_ = null; if (durationBuilder_ != null) { durationBuilder_.dispose(); durationBuilder_ = null; } onChanged(); return this; } /** * * *
       * Duration of an ad opportunity. Must be greater than 0.
       * 
* * .google.protobuf.Duration duration = 1; */ public com.google.protobuf.Duration.Builder getDurationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDurationFieldBuilder().getBuilder(); } /** * * *
       * Duration of an ad opportunity. Must be greater than 0.
       * 
* * .google.protobuf.Duration duration = 1; */ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** * * *
       * Duration of an ad opportunity. Must be greater than 0.
       * 
* * .google.protobuf.Duration duration = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getDuration(), getParentForChildren(), isClean()); duration_ = null; } return durationBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.video.livestream.v1.Event.AdBreakTask) } // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.Event.AdBreakTask) private static final com.google.cloud.video.livestream.v1.Event.AdBreakTask DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.Event.AdBreakTask(); } public static com.google.cloud.video.livestream.v1.Event.AdBreakTask getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AdBreakTask parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.video.livestream.v1.Event.AdBreakTask getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SlateTaskOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.video.livestream.v1.Event.SlateTask) com.google.protobuf.MessageOrBuilder { /** * * *
     * Optional. Duration of the slate. Must be greater than 0 if specified.
     * Omit this field for a long running slate.
     * 
* * .google.protobuf.Duration duration = 1; * * @return Whether the duration field is set. */ boolean hasDuration(); /** * * *
     * Optional. Duration of the slate. Must be greater than 0 if specified.
     * Omit this field for a long running slate.
     * 
* * .google.protobuf.Duration duration = 1; * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** * * *
     * Optional. Duration of the slate. Must be greater than 0 if specified.
     * Omit this field for a long running slate.
     * 
* * .google.protobuf.Duration duration = 1; */ com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); /** * * *
     * Slate asset to use for the duration. If its duration is less than the
     * duration of the SlateTask, then the slate loops. The slate must be
     * represented in the form of:
     * `projects/{project}/locations/{location}/assets/{assetId}`.
     * 
* * string asset = 2 [(.google.api.resource_reference) = { ... } * * @return The asset. */ java.lang.String getAsset(); /** * * *
     * Slate asset to use for the duration. If its duration is less than the
     * duration of the SlateTask, then the slate loops. The slate must be
     * represented in the form of:
     * `projects/{project}/locations/{location}/assets/{assetId}`.
     * 
* * string asset = 2 [(.google.api.resource_reference) = { ... } * * @return The bytes for asset. */ com.google.protobuf.ByteString getAssetBytes(); } /** * * *
   * Inserts a slate.
   * 
* * Protobuf type {@code google.cloud.video.livestream.v1.Event.SlateTask} */ public static final class SlateTask extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.Event.SlateTask) SlateTaskOrBuilder { private static final long serialVersionUID = 0L; // Use SlateTask.newBuilder() to construct. private SlateTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SlateTask() { asset_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SlateTask(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_SlateTask_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_SlateTask_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.Event.SlateTask.class, com.google.cloud.video.livestream.v1.Event.SlateTask.Builder.class); } private int bitField0_; public static final int DURATION_FIELD_NUMBER = 1; private com.google.protobuf.Duration duration_; /** * * *
     * Optional. Duration of the slate. Must be greater than 0 if specified.
     * Omit this field for a long running slate.
     * 
* * .google.protobuf.Duration duration = 1; * * @return Whether the duration field is set. */ @java.lang.Override public boolean hasDuration() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Optional. Duration of the slate. Must be greater than 0 if specified.
     * Omit this field for a long running slate.
     * 
* * .google.protobuf.Duration duration = 1; * * @return The duration. */ @java.lang.Override public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** * * *
     * Optional. Duration of the slate. Must be greater than 0 if specified.
     * Omit this field for a long running slate.
     * 
* * .google.protobuf.Duration duration = 1; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } public static final int ASSET_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object asset_ = ""; /** * * *
     * Slate asset to use for the duration. If its duration is less than the
     * duration of the SlateTask, then the slate loops. The slate must be
     * represented in the form of:
     * `projects/{project}/locations/{location}/assets/{assetId}`.
     * 
* * string asset = 2 [(.google.api.resource_reference) = { ... } * * @return The asset. */ @java.lang.Override public java.lang.String getAsset() { java.lang.Object ref = asset_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); asset_ = s; return s; } } /** * * *
     * Slate asset to use for the duration. If its duration is less than the
     * duration of the SlateTask, then the slate loops. The slate must be
     * represented in the form of:
     * `projects/{project}/locations/{location}/assets/{assetId}`.
     * 
* * string asset = 2 [(.google.api.resource_reference) = { ... } * * @return The bytes for asset. */ @java.lang.Override public com.google.protobuf.ByteString getAssetBytes() { java.lang.Object ref = asset_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); asset_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getDuration()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(asset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, asset_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDuration()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(asset_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, asset_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.video.livestream.v1.Event.SlateTask)) { return super.equals(obj); } com.google.cloud.video.livestream.v1.Event.SlateTask other = (com.google.cloud.video.livestream.v1.Event.SlateTask) obj; if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { if (!getDuration().equals(other.getDuration())) return false; } if (!getAsset().equals(other.getAsset())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasDuration()) { hash = (37 * hash) + DURATION_FIELD_NUMBER; hash = (53 * hash) + getDuration().hashCode(); } hash = (37 * hash) + ASSET_FIELD_NUMBER; hash = (53 * hash) + getAsset().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.video.livestream.v1.Event.SlateTask parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Event.SlateTask parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.SlateTask parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Event.SlateTask parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.SlateTask parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Event.SlateTask parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.SlateTask parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Event.SlateTask parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.SlateTask parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Event.SlateTask parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.SlateTask parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Event.SlateTask parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.cloud.video.livestream.v1.Event.SlateTask prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * Inserts a slate.
     * 
* * Protobuf type {@code google.cloud.video.livestream.v1.Event.SlateTask} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.Event.SlateTask) com.google.cloud.video.livestream.v1.Event.SlateTaskOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_SlateTask_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_SlateTask_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.Event.SlateTask.class, com.google.cloud.video.livestream.v1.Event.SlateTask.Builder.class); } // Construct using com.google.cloud.video.livestream.v1.Event.SlateTask.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDurationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; duration_ = null; if (durationBuilder_ != null) { durationBuilder_.dispose(); durationBuilder_ = null; } asset_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_SlateTask_descriptor; } @java.lang.Override public com.google.cloud.video.livestream.v1.Event.SlateTask getDefaultInstanceForType() { return com.google.cloud.video.livestream.v1.Event.SlateTask.getDefaultInstance(); } @java.lang.Override public com.google.cloud.video.livestream.v1.Event.SlateTask build() { com.google.cloud.video.livestream.v1.Event.SlateTask result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.video.livestream.v1.Event.SlateTask buildPartial() { com.google.cloud.video.livestream.v1.Event.SlateTask result = new com.google.cloud.video.livestream.v1.Event.SlateTask(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.video.livestream.v1.Event.SlateTask result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.asset_ = asset_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.video.livestream.v1.Event.SlateTask) { return mergeFrom((com.google.cloud.video.livestream.v1.Event.SlateTask) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.video.livestream.v1.Event.SlateTask other) { if (other == com.google.cloud.video.livestream.v1.Event.SlateTask.getDefaultInstance()) return this; if (other.hasDuration()) { mergeDuration(other.getDuration()); } if (!other.getAsset().isEmpty()) { asset_ = other.asset_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { asset_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; /** * * *
       * Optional. Duration of the slate. Must be greater than 0 if specified.
       * Omit this field for a long running slate.
       * 
* * .google.protobuf.Duration duration = 1; * * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
       * Optional. Duration of the slate. Must be greater than 0 if specified.
       * Omit this field for a long running slate.
       * 
* * .google.protobuf.Duration duration = 1; * * @return The duration. */ public com.google.protobuf.Duration getDuration() { if (durationBuilder_ == null) { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } else { return durationBuilder_.getMessage(); } } /** * * *
       * Optional. Duration of the slate. Must be greater than 0 if specified.
       * Omit this field for a long running slate.
       * 
* * .google.protobuf.Duration duration = 1; */ public Builder setDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } duration_ = value; } else { durationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Optional. Duration of the slate. Must be greater than 0 if specified.
       * Omit this field for a long running slate.
       * 
* * .google.protobuf.Duration duration = 1; */ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); } else { durationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Optional. Duration of the slate. Must be greater than 0 if specified.
       * Omit this field for a long running slate.
       * 
* * .google.protobuf.Duration duration = 1; */ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && duration_ != null && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { getDurationBuilder().mergeFrom(value); } else { duration_ = value; } } else { durationBuilder_.mergeFrom(value); } if (duration_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * * *
       * Optional. Duration of the slate. Must be greater than 0 if specified.
       * Omit this field for a long running slate.
       * 
* * .google.protobuf.Duration duration = 1; */ public Builder clearDuration() { bitField0_ = (bitField0_ & ~0x00000001); duration_ = null; if (durationBuilder_ != null) { durationBuilder_.dispose(); durationBuilder_ = null; } onChanged(); return this; } /** * * *
       * Optional. Duration of the slate. Must be greater than 0 if specified.
       * Omit this field for a long running slate.
       * 
* * .google.protobuf.Duration duration = 1; */ public com.google.protobuf.Duration.Builder getDurationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDurationFieldBuilder().getBuilder(); } /** * * *
       * Optional. Duration of the slate. Must be greater than 0 if specified.
       * Omit this field for a long running slate.
       * 
* * .google.protobuf.Duration duration = 1; */ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** * * *
       * Optional. Duration of the slate. Must be greater than 0 if specified.
       * Omit this field for a long running slate.
       * 
* * .google.protobuf.Duration duration = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getDuration(), getParentForChildren(), isClean()); duration_ = null; } return durationBuilder_; } private java.lang.Object asset_ = ""; /** * * *
       * Slate asset to use for the duration. If its duration is less than the
       * duration of the SlateTask, then the slate loops. The slate must be
       * represented in the form of:
       * `projects/{project}/locations/{location}/assets/{assetId}`.
       * 
* * string asset = 2 [(.google.api.resource_reference) = { ... } * * @return The asset. */ public java.lang.String getAsset() { java.lang.Object ref = asset_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); asset_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Slate asset to use for the duration. If its duration is less than the
       * duration of the SlateTask, then the slate loops. The slate must be
       * represented in the form of:
       * `projects/{project}/locations/{location}/assets/{assetId}`.
       * 
* * string asset = 2 [(.google.api.resource_reference) = { ... } * * @return The bytes for asset. */ public com.google.protobuf.ByteString getAssetBytes() { java.lang.Object ref = asset_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); asset_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Slate asset to use for the duration. If its duration is less than the
       * duration of the SlateTask, then the slate loops. The slate must be
       * represented in the form of:
       * `projects/{project}/locations/{location}/assets/{assetId}`.
       * 
* * string asset = 2 [(.google.api.resource_reference) = { ... } * * @param value The asset to set. * @return This builder for chaining. */ public Builder setAsset(java.lang.String value) { if (value == null) { throw new NullPointerException(); } asset_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Slate asset to use for the duration. If its duration is less than the
       * duration of the SlateTask, then the slate loops. The slate must be
       * represented in the form of:
       * `projects/{project}/locations/{location}/assets/{assetId}`.
       * 
* * string asset = 2 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ public Builder clearAsset() { asset_ = getDefaultInstance().getAsset(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * Slate asset to use for the duration. If its duration is less than the
       * duration of the SlateTask, then the slate loops. The slate must be
       * represented in the form of:
       * `projects/{project}/locations/{location}/assets/{assetId}`.
       * 
* * string asset = 2 [(.google.api.resource_reference) = { ... } * * @param value The bytes for asset to set. * @return This builder for chaining. */ public Builder setAssetBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); asset_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.video.livestream.v1.Event.SlateTask) } // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.Event.SlateTask) private static final com.google.cloud.video.livestream.v1.Event.SlateTask DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.Event.SlateTask(); } public static com.google.cloud.video.livestream.v1.Event.SlateTask getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SlateTask parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.video.livestream.v1.Event.SlateTask getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReturnToProgramTaskOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.video.livestream.v1.Event.ReturnToProgramTask) com.google.protobuf.MessageOrBuilder {} /** * * *
   * Stops any events which are currently running. This only applies to events
   * with a duration.
   * 
* * Protobuf type {@code google.cloud.video.livestream.v1.Event.ReturnToProgramTask} */ public static final class ReturnToProgramTask extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.Event.ReturnToProgramTask) ReturnToProgramTaskOrBuilder { private static final long serialVersionUID = 0L; // Use ReturnToProgramTask.newBuilder() to construct. private ReturnToProgramTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReturnToProgramTask() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReturnToProgramTask(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_ReturnToProgramTask_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_ReturnToProgramTask_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask.class, com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask.Builder.class); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask)) { return super.equals(obj); } com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask other = (com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * Stops any events which are currently running. This only applies to events
     * with a duration.
     * 
* * Protobuf type {@code google.cloud.video.livestream.v1.Event.ReturnToProgramTask} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.Event.ReturnToProgramTask) com.google.cloud.video.livestream.v1.Event.ReturnToProgramTaskOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_ReturnToProgramTask_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_ReturnToProgramTask_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask.class, com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask.Builder.class); } // Construct using com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_ReturnToProgramTask_descriptor; } @java.lang.Override public com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask getDefaultInstanceForType() { return com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask.getDefaultInstance(); } @java.lang.Override public com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask build() { com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask buildPartial() { com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask result = new com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask) { return mergeFrom((com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask other) { if (other == com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.video.livestream.v1.Event.ReturnToProgramTask) } // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.Event.ReturnToProgramTask) private static final com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask(); } public static com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReturnToProgramTask parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MuteTaskOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.video.livestream.v1.Event.MuteTask) com.google.protobuf.MessageOrBuilder { /** * * *
     * Duration for which the stream should be muted. If omitted, the stream
     * will be muted until an UnmuteTask event is sent.
     * 
* * .google.protobuf.Duration duration = 1; * * @return Whether the duration field is set. */ boolean hasDuration(); /** * * *
     * Duration for which the stream should be muted. If omitted, the stream
     * will be muted until an UnmuteTask event is sent.
     * 
* * .google.protobuf.Duration duration = 1; * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** * * *
     * Duration for which the stream should be muted. If omitted, the stream
     * will be muted until an UnmuteTask event is sent.
     * 
* * .google.protobuf.Duration duration = 1; */ com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); } /** * * *
   * Mutes the stream.
   * 
* * Protobuf type {@code google.cloud.video.livestream.v1.Event.MuteTask} */ public static final class MuteTask extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.Event.MuteTask) MuteTaskOrBuilder { private static final long serialVersionUID = 0L; // Use MuteTask.newBuilder() to construct. private MuteTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MuteTask() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MuteTask(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_MuteTask_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_MuteTask_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.Event.MuteTask.class, com.google.cloud.video.livestream.v1.Event.MuteTask.Builder.class); } private int bitField0_; public static final int DURATION_FIELD_NUMBER = 1; private com.google.protobuf.Duration duration_; /** * * *
     * Duration for which the stream should be muted. If omitted, the stream
     * will be muted until an UnmuteTask event is sent.
     * 
* * .google.protobuf.Duration duration = 1; * * @return Whether the duration field is set. */ @java.lang.Override public boolean hasDuration() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Duration for which the stream should be muted. If omitted, the stream
     * will be muted until an UnmuteTask event is sent.
     * 
* * .google.protobuf.Duration duration = 1; * * @return The duration. */ @java.lang.Override public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** * * *
     * Duration for which the stream should be muted. If omitted, the stream
     * will be muted until an UnmuteTask event is sent.
     * 
* * .google.protobuf.Duration duration = 1; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getDuration()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDuration()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.video.livestream.v1.Event.MuteTask)) { return super.equals(obj); } com.google.cloud.video.livestream.v1.Event.MuteTask other = (com.google.cloud.video.livestream.v1.Event.MuteTask) obj; if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { if (!getDuration().equals(other.getDuration())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasDuration()) { hash = (37 * hash) + DURATION_FIELD_NUMBER; hash = (53 * hash) + getDuration().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.video.livestream.v1.Event.MuteTask parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Event.MuteTask parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.MuteTask parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Event.MuteTask parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.MuteTask parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Event.MuteTask parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.MuteTask parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Event.MuteTask parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.MuteTask parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Event.MuteTask parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.MuteTask parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Event.MuteTask parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.cloud.video.livestream.v1.Event.MuteTask prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * Mutes the stream.
     * 
* * Protobuf type {@code google.cloud.video.livestream.v1.Event.MuteTask} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.Event.MuteTask) com.google.cloud.video.livestream.v1.Event.MuteTaskOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_MuteTask_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_MuteTask_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.Event.MuteTask.class, com.google.cloud.video.livestream.v1.Event.MuteTask.Builder.class); } // Construct using com.google.cloud.video.livestream.v1.Event.MuteTask.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDurationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; duration_ = null; if (durationBuilder_ != null) { durationBuilder_.dispose(); durationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_MuteTask_descriptor; } @java.lang.Override public com.google.cloud.video.livestream.v1.Event.MuteTask getDefaultInstanceForType() { return com.google.cloud.video.livestream.v1.Event.MuteTask.getDefaultInstance(); } @java.lang.Override public com.google.cloud.video.livestream.v1.Event.MuteTask build() { com.google.cloud.video.livestream.v1.Event.MuteTask result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.video.livestream.v1.Event.MuteTask buildPartial() { com.google.cloud.video.livestream.v1.Event.MuteTask result = new com.google.cloud.video.livestream.v1.Event.MuteTask(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.video.livestream.v1.Event.MuteTask result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.video.livestream.v1.Event.MuteTask) { return mergeFrom((com.google.cloud.video.livestream.v1.Event.MuteTask) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.video.livestream.v1.Event.MuteTask other) { if (other == com.google.cloud.video.livestream.v1.Event.MuteTask.getDefaultInstance()) return this; if (other.hasDuration()) { mergeDuration(other.getDuration()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; /** * * *
       * Duration for which the stream should be muted. If omitted, the stream
       * will be muted until an UnmuteTask event is sent.
       * 
* * .google.protobuf.Duration duration = 1; * * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
       * Duration for which the stream should be muted. If omitted, the stream
       * will be muted until an UnmuteTask event is sent.
       * 
* * .google.protobuf.Duration duration = 1; * * @return The duration. */ public com.google.protobuf.Duration getDuration() { if (durationBuilder_ == null) { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } else { return durationBuilder_.getMessage(); } } /** * * *
       * Duration for which the stream should be muted. If omitted, the stream
       * will be muted until an UnmuteTask event is sent.
       * 
* * .google.protobuf.Duration duration = 1; */ public Builder setDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } duration_ = value; } else { durationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Duration for which the stream should be muted. If omitted, the stream
       * will be muted until an UnmuteTask event is sent.
       * 
* * .google.protobuf.Duration duration = 1; */ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); } else { durationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Duration for which the stream should be muted. If omitted, the stream
       * will be muted until an UnmuteTask event is sent.
       * 
* * .google.protobuf.Duration duration = 1; */ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && duration_ != null && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { getDurationBuilder().mergeFrom(value); } else { duration_ = value; } } else { durationBuilder_.mergeFrom(value); } if (duration_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * * *
       * Duration for which the stream should be muted. If omitted, the stream
       * will be muted until an UnmuteTask event is sent.
       * 
* * .google.protobuf.Duration duration = 1; */ public Builder clearDuration() { bitField0_ = (bitField0_ & ~0x00000001); duration_ = null; if (durationBuilder_ != null) { durationBuilder_.dispose(); durationBuilder_ = null; } onChanged(); return this; } /** * * *
       * Duration for which the stream should be muted. If omitted, the stream
       * will be muted until an UnmuteTask event is sent.
       * 
* * .google.protobuf.Duration duration = 1; */ public com.google.protobuf.Duration.Builder getDurationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDurationFieldBuilder().getBuilder(); } /** * * *
       * Duration for which the stream should be muted. If omitted, the stream
       * will be muted until an UnmuteTask event is sent.
       * 
* * .google.protobuf.Duration duration = 1; */ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** * * *
       * Duration for which the stream should be muted. If omitted, the stream
       * will be muted until an UnmuteTask event is sent.
       * 
* * .google.protobuf.Duration duration = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getDuration(), getParentForChildren(), isClean()); duration_ = null; } return durationBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.video.livestream.v1.Event.MuteTask) } // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.Event.MuteTask) private static final com.google.cloud.video.livestream.v1.Event.MuteTask DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.Event.MuteTask(); } public static com.google.cloud.video.livestream.v1.Event.MuteTask getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MuteTask parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.video.livestream.v1.Event.MuteTask getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UnmuteTaskOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.video.livestream.v1.Event.UnmuteTask) com.google.protobuf.MessageOrBuilder {} /** * * *
   * Unmutes the stream. The task fails if the stream is not currently muted.
   * 
* * Protobuf type {@code google.cloud.video.livestream.v1.Event.UnmuteTask} */ public static final class UnmuteTask extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.Event.UnmuteTask) UnmuteTaskOrBuilder { private static final long serialVersionUID = 0L; // Use UnmuteTask.newBuilder() to construct. private UnmuteTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UnmuteTask() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UnmuteTask(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_UnmuteTask_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_UnmuteTask_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.Event.UnmuteTask.class, com.google.cloud.video.livestream.v1.Event.UnmuteTask.Builder.class); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.video.livestream.v1.Event.UnmuteTask)) { return super.equals(obj); } com.google.cloud.video.livestream.v1.Event.UnmuteTask other = (com.google.cloud.video.livestream.v1.Event.UnmuteTask) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.video.livestream.v1.Event.UnmuteTask parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Event.UnmuteTask parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.UnmuteTask parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Event.UnmuteTask parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.UnmuteTask parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Event.UnmuteTask parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.UnmuteTask parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Event.UnmuteTask parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.UnmuteTask parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Event.UnmuteTask parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event.UnmuteTask parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Event.UnmuteTask parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.cloud.video.livestream.v1.Event.UnmuteTask prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * Unmutes the stream. The task fails if the stream is not currently muted.
     * 
* * Protobuf type {@code google.cloud.video.livestream.v1.Event.UnmuteTask} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.Event.UnmuteTask) com.google.cloud.video.livestream.v1.Event.UnmuteTaskOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_UnmuteTask_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_UnmuteTask_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.Event.UnmuteTask.class, com.google.cloud.video.livestream.v1.Event.UnmuteTask.Builder.class); } // Construct using com.google.cloud.video.livestream.v1.Event.UnmuteTask.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_UnmuteTask_descriptor; } @java.lang.Override public com.google.cloud.video.livestream.v1.Event.UnmuteTask getDefaultInstanceForType() { return com.google.cloud.video.livestream.v1.Event.UnmuteTask.getDefaultInstance(); } @java.lang.Override public com.google.cloud.video.livestream.v1.Event.UnmuteTask build() { com.google.cloud.video.livestream.v1.Event.UnmuteTask result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.video.livestream.v1.Event.UnmuteTask buildPartial() { com.google.cloud.video.livestream.v1.Event.UnmuteTask result = new com.google.cloud.video.livestream.v1.Event.UnmuteTask(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.video.livestream.v1.Event.UnmuteTask) { return mergeFrom((com.google.cloud.video.livestream.v1.Event.UnmuteTask) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.video.livestream.v1.Event.UnmuteTask other) { if (other == com.google.cloud.video.livestream.v1.Event.UnmuteTask.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.video.livestream.v1.Event.UnmuteTask) } // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.Event.UnmuteTask) private static final com.google.cloud.video.livestream.v1.Event.UnmuteTask DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.Event.UnmuteTask(); } public static com.google.cloud.video.livestream.v1.Event.UnmuteTask getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UnmuteTask parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.video.livestream.v1.Event.UnmuteTask getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; private int taskCase_ = 0; @SuppressWarnings("serial") private java.lang.Object task_; public enum TaskCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INPUT_SWITCH(5), AD_BREAK(6), RETURN_TO_PROGRAM(13), SLATE(14), MUTE(15), UNMUTE(16), TASK_NOT_SET(0); private final int value; private TaskCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static TaskCase valueOf(int value) { return forNumber(value); } public static TaskCase forNumber(int value) { switch (value) { case 5: return INPUT_SWITCH; case 6: return AD_BREAK; case 13: return RETURN_TO_PROGRAM; case 14: return SLATE; case 15: return MUTE; case 16: return UNMUTE; case 0: return TASK_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public TaskCase getTaskCase() { return TaskCase.forNumber(taskCase_); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * The resource name of the event, in the form of:
   * `projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}`.
   * 
* * string name = 1; * * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * * *
   * The resource name of the event, in the form of:
   * `projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}`.
   * 
* * string name = 1; * * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** * * *
   * Output only. The creation time.
   * 
* * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the createTime field is set. */ @java.lang.Override public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Output only. The creation time.
   * 
* * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The createTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** * * *
   * Output only. The creation time.
   * 
* * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** * * *
   * Output only. The update time.
   * 
* * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. */ @java.lang.Override public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * Output only. The update time.
   * 
* * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** * * *
   * Output only. The update time.
   * 
* * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int LABELS_FIELD_NUMBER = 4; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * * *
   * User-defined key/value metadata.
   * 
* * map<string, string> labels = 4; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * * *
   * User-defined key/value metadata.
   * 
* * map<string, string> labels = 4; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * * *
   * User-defined key/value metadata.
   * 
* * map<string, string> labels = 4; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
   * User-defined key/value metadata.
   * 
* * map<string, string> labels = 4; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int INPUT_SWITCH_FIELD_NUMBER = 5; /** * * *
   * Switches to another input stream.
   * 
* * .google.cloud.video.livestream.v1.Event.InputSwitchTask input_switch = 5; * * @return Whether the inputSwitch field is set. */ @java.lang.Override public boolean hasInputSwitch() { return taskCase_ == 5; } /** * * *
   * Switches to another input stream.
   * 
* * .google.cloud.video.livestream.v1.Event.InputSwitchTask input_switch = 5; * * @return The inputSwitch. */ @java.lang.Override public com.google.cloud.video.livestream.v1.Event.InputSwitchTask getInputSwitch() { if (taskCase_ == 5) { return (com.google.cloud.video.livestream.v1.Event.InputSwitchTask) task_; } return com.google.cloud.video.livestream.v1.Event.InputSwitchTask.getDefaultInstance(); } /** * * *
   * Switches to another input stream.
   * 
* * .google.cloud.video.livestream.v1.Event.InputSwitchTask input_switch = 5; */ @java.lang.Override public com.google.cloud.video.livestream.v1.Event.InputSwitchTaskOrBuilder getInputSwitchOrBuilder() { if (taskCase_ == 5) { return (com.google.cloud.video.livestream.v1.Event.InputSwitchTask) task_; } return com.google.cloud.video.livestream.v1.Event.InputSwitchTask.getDefaultInstance(); } public static final int AD_BREAK_FIELD_NUMBER = 6; /** * * *
   * Inserts a new ad opportunity.
   * 
* * .google.cloud.video.livestream.v1.Event.AdBreakTask ad_break = 6; * * @return Whether the adBreak field is set. */ @java.lang.Override public boolean hasAdBreak() { return taskCase_ == 6; } /** * * *
   * Inserts a new ad opportunity.
   * 
* * .google.cloud.video.livestream.v1.Event.AdBreakTask ad_break = 6; * * @return The adBreak. */ @java.lang.Override public com.google.cloud.video.livestream.v1.Event.AdBreakTask getAdBreak() { if (taskCase_ == 6) { return (com.google.cloud.video.livestream.v1.Event.AdBreakTask) task_; } return com.google.cloud.video.livestream.v1.Event.AdBreakTask.getDefaultInstance(); } /** * * *
   * Inserts a new ad opportunity.
   * 
* * .google.cloud.video.livestream.v1.Event.AdBreakTask ad_break = 6; */ @java.lang.Override public com.google.cloud.video.livestream.v1.Event.AdBreakTaskOrBuilder getAdBreakOrBuilder() { if (taskCase_ == 6) { return (com.google.cloud.video.livestream.v1.Event.AdBreakTask) task_; } return com.google.cloud.video.livestream.v1.Event.AdBreakTask.getDefaultInstance(); } public static final int RETURN_TO_PROGRAM_FIELD_NUMBER = 13; /** * * *
   * Stops any running ad break.
   * 
* * .google.cloud.video.livestream.v1.Event.ReturnToProgramTask return_to_program = 13; * * * @return Whether the returnToProgram field is set. */ @java.lang.Override public boolean hasReturnToProgram() { return taskCase_ == 13; } /** * * *
   * Stops any running ad break.
   * 
* * .google.cloud.video.livestream.v1.Event.ReturnToProgramTask return_to_program = 13; * * * @return The returnToProgram. */ @java.lang.Override public com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask getReturnToProgram() { if (taskCase_ == 13) { return (com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask) task_; } return com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask.getDefaultInstance(); } /** * * *
   * Stops any running ad break.
   * 
* * .google.cloud.video.livestream.v1.Event.ReturnToProgramTask return_to_program = 13; * */ @java.lang.Override public com.google.cloud.video.livestream.v1.Event.ReturnToProgramTaskOrBuilder getReturnToProgramOrBuilder() { if (taskCase_ == 13) { return (com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask) task_; } return com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask.getDefaultInstance(); } public static final int SLATE_FIELD_NUMBER = 14; /** * * *
   * Inserts a slate.
   * 
* * .google.cloud.video.livestream.v1.Event.SlateTask slate = 14; * * @return Whether the slate field is set. */ @java.lang.Override public boolean hasSlate() { return taskCase_ == 14; } /** * * *
   * Inserts a slate.
   * 
* * .google.cloud.video.livestream.v1.Event.SlateTask slate = 14; * * @return The slate. */ @java.lang.Override public com.google.cloud.video.livestream.v1.Event.SlateTask getSlate() { if (taskCase_ == 14) { return (com.google.cloud.video.livestream.v1.Event.SlateTask) task_; } return com.google.cloud.video.livestream.v1.Event.SlateTask.getDefaultInstance(); } /** * * *
   * Inserts a slate.
   * 
* * .google.cloud.video.livestream.v1.Event.SlateTask slate = 14; */ @java.lang.Override public com.google.cloud.video.livestream.v1.Event.SlateTaskOrBuilder getSlateOrBuilder() { if (taskCase_ == 14) { return (com.google.cloud.video.livestream.v1.Event.SlateTask) task_; } return com.google.cloud.video.livestream.v1.Event.SlateTask.getDefaultInstance(); } public static final int MUTE_FIELD_NUMBER = 15; /** * * *
   * Mutes the stream.
   * 
* * .google.cloud.video.livestream.v1.Event.MuteTask mute = 15; * * @return Whether the mute field is set. */ @java.lang.Override public boolean hasMute() { return taskCase_ == 15; } /** * * *
   * Mutes the stream.
   * 
* * .google.cloud.video.livestream.v1.Event.MuteTask mute = 15; * * @return The mute. */ @java.lang.Override public com.google.cloud.video.livestream.v1.Event.MuteTask getMute() { if (taskCase_ == 15) { return (com.google.cloud.video.livestream.v1.Event.MuteTask) task_; } return com.google.cloud.video.livestream.v1.Event.MuteTask.getDefaultInstance(); } /** * * *
   * Mutes the stream.
   * 
* * .google.cloud.video.livestream.v1.Event.MuteTask mute = 15; */ @java.lang.Override public com.google.cloud.video.livestream.v1.Event.MuteTaskOrBuilder getMuteOrBuilder() { if (taskCase_ == 15) { return (com.google.cloud.video.livestream.v1.Event.MuteTask) task_; } return com.google.cloud.video.livestream.v1.Event.MuteTask.getDefaultInstance(); } public static final int UNMUTE_FIELD_NUMBER = 16; /** * * *
   * Unmutes the stream.
   * 
* * .google.cloud.video.livestream.v1.Event.UnmuteTask unmute = 16; * * @return Whether the unmute field is set. */ @java.lang.Override public boolean hasUnmute() { return taskCase_ == 16; } /** * * *
   * Unmutes the stream.
   * 
* * .google.cloud.video.livestream.v1.Event.UnmuteTask unmute = 16; * * @return The unmute. */ @java.lang.Override public com.google.cloud.video.livestream.v1.Event.UnmuteTask getUnmute() { if (taskCase_ == 16) { return (com.google.cloud.video.livestream.v1.Event.UnmuteTask) task_; } return com.google.cloud.video.livestream.v1.Event.UnmuteTask.getDefaultInstance(); } /** * * *
   * Unmutes the stream.
   * 
* * .google.cloud.video.livestream.v1.Event.UnmuteTask unmute = 16; */ @java.lang.Override public com.google.cloud.video.livestream.v1.Event.UnmuteTaskOrBuilder getUnmuteOrBuilder() { if (taskCase_ == 16) { return (com.google.cloud.video.livestream.v1.Event.UnmuteTask) task_; } return com.google.cloud.video.livestream.v1.Event.UnmuteTask.getDefaultInstance(); } public static final int EXECUTE_NOW_FIELD_NUMBER = 9; private boolean executeNow_ = false; /** * * *
   * 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][google.cloud.video.livestream.v1.Event.execution_time]
   * will be populated with the time that the server actually schedules the
   * event.
   * 
* * bool execute_now = 9; * * @return The executeNow. */ @java.lang.Override public boolean getExecuteNow() { return executeNow_; } public static final int EXECUTION_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp executionTime_; /** * * *
   * The time to execute the event. If you set
   * [execute_now][google.cloud.video.livestream.v1.Event.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][google.cloud.video.livestream.v1.Event.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; * * @return Whether the executionTime field is set. */ @java.lang.Override public boolean hasExecutionTime() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * The time to execute the event. If you set
   * [execute_now][google.cloud.video.livestream.v1.Event.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][google.cloud.video.livestream.v1.Event.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; * * @return The executionTime. */ @java.lang.Override public com.google.protobuf.Timestamp getExecutionTime() { return executionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : executionTime_; } /** * * *
   * The time to execute the event. If you set
   * [execute_now][google.cloud.video.livestream.v1.Event.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][google.cloud.video.livestream.v1.Event.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; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExecutionTimeOrBuilder() { return executionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : executionTime_; } public static final int STATE_FIELD_NUMBER = 11; private int state_ = 0; /** * * *
   * Output only. The state of the event.
   * 
* * * .google.cloud.video.livestream.v1.Event.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * * *
   * Output only. The state of the event.
   * 
* * * .google.cloud.video.livestream.v1.Event.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The state. */ @java.lang.Override public com.google.cloud.video.livestream.v1.Event.State getState() { com.google.cloud.video.livestream.v1.Event.State result = com.google.cloud.video.livestream.v1.Event.State.forNumber(state_); return result == null ? com.google.cloud.video.livestream.v1.Event.State.UNRECOGNIZED : result; } public static final int ERROR_FIELD_NUMBER = 12; private com.google.rpc.Status error_; /** * * *
   * 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]; * * @return Whether the error field is set. */ @java.lang.Override public boolean hasError() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * 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]; * * @return The error. */ @java.lang.Override public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** * * *
   * 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]; */ @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getUpdateTime()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (taskCase_ == 5) { output.writeMessage(5, (com.google.cloud.video.livestream.v1.Event.InputSwitchTask) task_); } if (taskCase_ == 6) { output.writeMessage(6, (com.google.cloud.video.livestream.v1.Event.AdBreakTask) task_); } if (executeNow_ != false) { output.writeBool(9, executeNow_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(10, getExecutionTime()); } if (state_ != com.google.cloud.video.livestream.v1.Event.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(11, state_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(12, getError()); } if (taskCase_ == 13) { output.writeMessage( 13, (com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask) task_); } if (taskCase_ == 14) { output.writeMessage(14, (com.google.cloud.video.livestream.v1.Event.SlateTask) task_); } if (taskCase_ == 15) { output.writeMessage(15, (com.google.cloud.video.livestream.v1.Event.MuteTask) task_); } if (taskCase_ == 16) { output.writeMessage(16, (com.google.cloud.video.livestream.v1.Event.UnmuteTask) task_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } if (taskCase_ == 5) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 5, (com.google.cloud.video.livestream.v1.Event.InputSwitchTask) task_); } if (taskCase_ == 6) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 6, (com.google.cloud.video.livestream.v1.Event.AdBreakTask) task_); } if (executeNow_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, executeNow_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getExecutionTime()); } if (state_ != com.google.cloud.video.livestream.v1.Event.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, state_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getError()); } if (taskCase_ == 13) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 13, (com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask) task_); } if (taskCase_ == 14) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 14, (com.google.cloud.video.livestream.v1.Event.SlateTask) task_); } if (taskCase_ == 15) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 15, (com.google.cloud.video.livestream.v1.Event.MuteTask) task_); } if (taskCase_ == 16) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 16, (com.google.cloud.video.livestream.v1.Event.UnmuteTask) task_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.video.livestream.v1.Event)) { return super.equals(obj); } com.google.cloud.video.livestream.v1.Event other = (com.google.cloud.video.livestream.v1.Event) obj; if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (getExecuteNow() != other.getExecuteNow()) return false; if (hasExecutionTime() != other.hasExecutionTime()) return false; if (hasExecutionTime()) { if (!getExecutionTime().equals(other.getExecutionTime())) return false; } if (state_ != other.state_) return false; if (hasError() != other.hasError()) return false; if (hasError()) { if (!getError().equals(other.getError())) return false; } if (!getTaskCase().equals(other.getTaskCase())) return false; switch (taskCase_) { case 5: if (!getInputSwitch().equals(other.getInputSwitch())) return false; break; case 6: if (!getAdBreak().equals(other.getAdBreak())) return false; break; case 13: if (!getReturnToProgram().equals(other.getReturnToProgram())) return false; break; case 14: if (!getSlate().equals(other.getSlate())) return false; break; case 15: if (!getMute().equals(other.getMute())) return false; break; case 16: if (!getUnmute().equals(other.getUnmute())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + EXECUTE_NOW_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExecuteNow()); if (hasExecutionTime()) { hash = (37 * hash) + EXECUTION_TIME_FIELD_NUMBER; hash = (53 * hash) + getExecutionTime().hashCode(); } hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } switch (taskCase_) { case 5: hash = (37 * hash) + INPUT_SWITCH_FIELD_NUMBER; hash = (53 * hash) + getInputSwitch().hashCode(); break; case 6: hash = (37 * hash) + AD_BREAK_FIELD_NUMBER; hash = (53 * hash) + getAdBreak().hashCode(); break; case 13: hash = (37 * hash) + RETURN_TO_PROGRAM_FIELD_NUMBER; hash = (53 * hash) + getReturnToProgram().hashCode(); break; case 14: hash = (37 * hash) + SLATE_FIELD_NUMBER; hash = (53 * hash) + getSlate().hashCode(); break; case 15: hash = (37 * hash) + MUTE_FIELD_NUMBER; hash = (53 * hash) + getMute().hashCode(); break; case 16: hash = (37 * hash) + UNMUTE_FIELD_NUMBER; hash = (53 * hash) + getUnmute().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.video.livestream.v1.Event parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Event parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Event parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Event parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Event parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Event parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Event parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Event parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.cloud.video.livestream.v1.Event prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * 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 {@code google.cloud.video.livestream.v1.Event} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.Event) com.google.cloud.video.livestream.v1.EventOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 4: return internalGetLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 4: return internalGetMutableLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.Event.class, com.google.cloud.video.livestream.v1.Event.Builder.class); } // Construct using com.google.cloud.video.livestream.v1.Event.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); getExecutionTimeFieldBuilder(); getErrorFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } internalGetMutableLabels().clear(); if (inputSwitchBuilder_ != null) { inputSwitchBuilder_.clear(); } if (adBreakBuilder_ != null) { adBreakBuilder_.clear(); } if (returnToProgramBuilder_ != null) { returnToProgramBuilder_.clear(); } if (slateBuilder_ != null) { slateBuilder_.clear(); } if (muteBuilder_ != null) { muteBuilder_.clear(); } if (unmuteBuilder_ != null) { unmuteBuilder_.clear(); } executeNow_ = false; executionTime_ = null; if (executionTimeBuilder_ != null) { executionTimeBuilder_.dispose(); executionTimeBuilder_ = null; } state_ = 0; error_ = null; if (errorBuilder_ != null) { errorBuilder_.dispose(); errorBuilder_ = null; } taskCase_ = 0; task_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Event_descriptor; } @java.lang.Override public com.google.cloud.video.livestream.v1.Event getDefaultInstanceForType() { return com.google.cloud.video.livestream.v1.Event.getDefaultInstance(); } @java.lang.Override public com.google.cloud.video.livestream.v1.Event build() { com.google.cloud.video.livestream.v1.Event result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.video.livestream.v1.Event buildPartial() { com.google.cloud.video.livestream.v1.Event result = new com.google.cloud.video.livestream.v1.Event(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.google.cloud.video.livestream.v1.Event result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00000400) != 0)) { result.executeNow_ = executeNow_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.executionTime_ = executionTimeBuilder_ == null ? executionTime_ : executionTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00001000) != 0)) { result.state_ = state_; } if (((from_bitField0_ & 0x00002000) != 0)) { result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.cloud.video.livestream.v1.Event result) { result.taskCase_ = taskCase_; result.task_ = this.task_; if (taskCase_ == 5 && inputSwitchBuilder_ != null) { result.task_ = inputSwitchBuilder_.build(); } if (taskCase_ == 6 && adBreakBuilder_ != null) { result.task_ = adBreakBuilder_.build(); } if (taskCase_ == 13 && returnToProgramBuilder_ != null) { result.task_ = returnToProgramBuilder_.build(); } if (taskCase_ == 14 && slateBuilder_ != null) { result.task_ = slateBuilder_.build(); } if (taskCase_ == 15 && muteBuilder_ != null) { result.task_ = muteBuilder_.build(); } if (taskCase_ == 16 && unmuteBuilder_ != null) { result.task_ = unmuteBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.video.livestream.v1.Event) { return mergeFrom((com.google.cloud.video.livestream.v1.Event) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.video.livestream.v1.Event other) { if (other == com.google.cloud.video.livestream.v1.Event.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000008; if (other.getExecuteNow() != false) { setExecuteNow(other.getExecuteNow()); } if (other.hasExecutionTime()) { mergeExecutionTime(other.getExecutionTime()); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } if (other.hasError()) { mergeError(other.getError()); } switch (other.getTaskCase()) { case INPUT_SWITCH: { mergeInputSwitch(other.getInputSwitch()); break; } case AD_BREAK: { mergeAdBreak(other.getAdBreak()); break; } case RETURN_TO_PROGRAM: { mergeReturnToProgram(other.getReturnToProgram()); break; } case SLATE: { mergeSlate(other.getSlate()); break; } case MUTE: { mergeMute(other.getMute()); break; } case UNMUTE: { mergeUnmute(other.getUnmute()); break; } case TASK_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getInputSwitchFieldBuilder().getBuilder(), extensionRegistry); taskCase_ = 5; break; } // case 42 case 50: { input.readMessage(getAdBreakFieldBuilder().getBuilder(), extensionRegistry); taskCase_ = 6; break; } // case 50 case 72: { executeNow_ = input.readBool(); bitField0_ |= 0x00000400; break; } // case 72 case 82: { input.readMessage(getExecutionTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000800; break; } // case 82 case 88: { state_ = input.readEnum(); bitField0_ |= 0x00001000; break; } // case 88 case 98: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00002000; break; } // case 98 case 106: { input.readMessage(getReturnToProgramFieldBuilder().getBuilder(), extensionRegistry); taskCase_ = 13; break; } // case 106 case 114: { input.readMessage(getSlateFieldBuilder().getBuilder(), extensionRegistry); taskCase_ = 14; break; } // case 114 case 122: { input.readMessage(getMuteFieldBuilder().getBuilder(), extensionRegistry); taskCase_ = 15; break; } // case 122 case 130: { input.readMessage(getUnmuteFieldBuilder().getBuilder(), extensionRegistry); taskCase_ = 16; break; } // case 130 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int taskCase_ = 0; private java.lang.Object task_; public TaskCase getTaskCase() { return TaskCase.forNumber(taskCase_); } public Builder clearTask() { taskCase_ = 0; task_ = null; onChanged(); return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
     * The resource name of the event, in the form of:
     * `projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}`.
     * 
* * string name = 1; * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The resource name of the event, in the form of:
     * `projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}`.
     * 
* * string name = 1; * * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The resource name of the event, in the form of:
     * `projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}`.
     * 
* * string name = 1; * * @param value The name to set. * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * The resource name of the event, in the form of:
     * `projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}`.
     * 
* * string name = 1; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * The resource name of the event, in the form of:
     * `projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}`.
     * 
* * string name = 1; * * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** * * *
     * Output only. The creation time.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Output only. The creation time.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** * * *
     * Output only. The creation time.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createTime_ = value; } else { createTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Output only. The creation time.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Output only. The creation time.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } } else { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
     * Output only. The creation time.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000002); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. The creation time.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. The creation time.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** * * *
     * Output only. The creation time.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** * * *
     * Output only. The update time.
     * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * Output only. The update time.
     * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** * * *
     * Output only. The update time.
     * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updateTime_ = value; } else { updateTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. The update time.
     * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. The update time.
     * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } } else { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
     * Output only. The update time.
     * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. The update time.
     * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. The update time.
     * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** * * *
     * Output only. The update time.
     * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } bitField0_ |= 0x00000008; onChanged(); return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * * *
     * User-defined key/value metadata.
     * 
* * map<string, string> labels = 4; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * * *
     * User-defined key/value metadata.
     * 
* * map<string, string> labels = 4; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * * *
     * User-defined key/value metadata.
     * 
* * map<string, string> labels = 4; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * User-defined key/value metadata.
     * 
* * map<string, string> labels = 4; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableLabels().getMutableMap().clear(); return this; } /** * * *
     * User-defined key/value metadata.
     * 
* * map<string, string> labels = 4; */ public Builder removeLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** * * *
     * User-defined key/value metadata.
     * 
* * map<string, string> labels = 4; */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000008; return this; } /** * * *
     * User-defined key/value metadata.
     * 
* * map<string, string> labels = 4; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000008; return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.Event.InputSwitchTask, com.google.cloud.video.livestream.v1.Event.InputSwitchTask.Builder, com.google.cloud.video.livestream.v1.Event.InputSwitchTaskOrBuilder> inputSwitchBuilder_; /** * * *
     * Switches to another input stream.
     * 
* * .google.cloud.video.livestream.v1.Event.InputSwitchTask input_switch = 5; * * @return Whether the inputSwitch field is set. */ @java.lang.Override public boolean hasInputSwitch() { return taskCase_ == 5; } /** * * *
     * Switches to another input stream.
     * 
* * .google.cloud.video.livestream.v1.Event.InputSwitchTask input_switch = 5; * * @return The inputSwitch. */ @java.lang.Override public com.google.cloud.video.livestream.v1.Event.InputSwitchTask getInputSwitch() { if (inputSwitchBuilder_ == null) { if (taskCase_ == 5) { return (com.google.cloud.video.livestream.v1.Event.InputSwitchTask) task_; } return com.google.cloud.video.livestream.v1.Event.InputSwitchTask.getDefaultInstance(); } else { if (taskCase_ == 5) { return inputSwitchBuilder_.getMessage(); } return com.google.cloud.video.livestream.v1.Event.InputSwitchTask.getDefaultInstance(); } } /** * * *
     * Switches to another input stream.
     * 
* * .google.cloud.video.livestream.v1.Event.InputSwitchTask input_switch = 5; */ public Builder setInputSwitch( com.google.cloud.video.livestream.v1.Event.InputSwitchTask value) { if (inputSwitchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } task_ = value; onChanged(); } else { inputSwitchBuilder_.setMessage(value); } taskCase_ = 5; return this; } /** * * *
     * Switches to another input stream.
     * 
* * .google.cloud.video.livestream.v1.Event.InputSwitchTask input_switch = 5; */ public Builder setInputSwitch( com.google.cloud.video.livestream.v1.Event.InputSwitchTask.Builder builderForValue) { if (inputSwitchBuilder_ == null) { task_ = builderForValue.build(); onChanged(); } else { inputSwitchBuilder_.setMessage(builderForValue.build()); } taskCase_ = 5; return this; } /** * * *
     * Switches to another input stream.
     * 
* * .google.cloud.video.livestream.v1.Event.InputSwitchTask input_switch = 5; */ public Builder mergeInputSwitch( com.google.cloud.video.livestream.v1.Event.InputSwitchTask value) { if (inputSwitchBuilder_ == null) { if (taskCase_ == 5 && task_ != com.google.cloud.video.livestream.v1.Event.InputSwitchTask .getDefaultInstance()) { task_ = com.google.cloud.video.livestream.v1.Event.InputSwitchTask.newBuilder( (com.google.cloud.video.livestream.v1.Event.InputSwitchTask) task_) .mergeFrom(value) .buildPartial(); } else { task_ = value; } onChanged(); } else { if (taskCase_ == 5) { inputSwitchBuilder_.mergeFrom(value); } else { inputSwitchBuilder_.setMessage(value); } } taskCase_ = 5; return this; } /** * * *
     * Switches to another input stream.
     * 
* * .google.cloud.video.livestream.v1.Event.InputSwitchTask input_switch = 5; */ public Builder clearInputSwitch() { if (inputSwitchBuilder_ == null) { if (taskCase_ == 5) { taskCase_ = 0; task_ = null; onChanged(); } } else { if (taskCase_ == 5) { taskCase_ = 0; task_ = null; } inputSwitchBuilder_.clear(); } return this; } /** * * *
     * Switches to another input stream.
     * 
* * .google.cloud.video.livestream.v1.Event.InputSwitchTask input_switch = 5; */ public com.google.cloud.video.livestream.v1.Event.InputSwitchTask.Builder getInputSwitchBuilder() { return getInputSwitchFieldBuilder().getBuilder(); } /** * * *
     * Switches to another input stream.
     * 
* * .google.cloud.video.livestream.v1.Event.InputSwitchTask input_switch = 5; */ @java.lang.Override public com.google.cloud.video.livestream.v1.Event.InputSwitchTaskOrBuilder getInputSwitchOrBuilder() { if ((taskCase_ == 5) && (inputSwitchBuilder_ != null)) { return inputSwitchBuilder_.getMessageOrBuilder(); } else { if (taskCase_ == 5) { return (com.google.cloud.video.livestream.v1.Event.InputSwitchTask) task_; } return com.google.cloud.video.livestream.v1.Event.InputSwitchTask.getDefaultInstance(); } } /** * * *
     * Switches to another input stream.
     * 
* * .google.cloud.video.livestream.v1.Event.InputSwitchTask input_switch = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.Event.InputSwitchTask, com.google.cloud.video.livestream.v1.Event.InputSwitchTask.Builder, com.google.cloud.video.livestream.v1.Event.InputSwitchTaskOrBuilder> getInputSwitchFieldBuilder() { if (inputSwitchBuilder_ == null) { if (!(taskCase_ == 5)) { task_ = com.google.cloud.video.livestream.v1.Event.InputSwitchTask.getDefaultInstance(); } inputSwitchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.Event.InputSwitchTask, com.google.cloud.video.livestream.v1.Event.InputSwitchTask.Builder, com.google.cloud.video.livestream.v1.Event.InputSwitchTaskOrBuilder>( (com.google.cloud.video.livestream.v1.Event.InputSwitchTask) task_, getParentForChildren(), isClean()); task_ = null; } taskCase_ = 5; onChanged(); return inputSwitchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.Event.AdBreakTask, com.google.cloud.video.livestream.v1.Event.AdBreakTask.Builder, com.google.cloud.video.livestream.v1.Event.AdBreakTaskOrBuilder> adBreakBuilder_; /** * * *
     * Inserts a new ad opportunity.
     * 
* * .google.cloud.video.livestream.v1.Event.AdBreakTask ad_break = 6; * * @return Whether the adBreak field is set. */ @java.lang.Override public boolean hasAdBreak() { return taskCase_ == 6; } /** * * *
     * Inserts a new ad opportunity.
     * 
* * .google.cloud.video.livestream.v1.Event.AdBreakTask ad_break = 6; * * @return The adBreak. */ @java.lang.Override public com.google.cloud.video.livestream.v1.Event.AdBreakTask getAdBreak() { if (adBreakBuilder_ == null) { if (taskCase_ == 6) { return (com.google.cloud.video.livestream.v1.Event.AdBreakTask) task_; } return com.google.cloud.video.livestream.v1.Event.AdBreakTask.getDefaultInstance(); } else { if (taskCase_ == 6) { return adBreakBuilder_.getMessage(); } return com.google.cloud.video.livestream.v1.Event.AdBreakTask.getDefaultInstance(); } } /** * * *
     * Inserts a new ad opportunity.
     * 
* * .google.cloud.video.livestream.v1.Event.AdBreakTask ad_break = 6; */ public Builder setAdBreak(com.google.cloud.video.livestream.v1.Event.AdBreakTask value) { if (adBreakBuilder_ == null) { if (value == null) { throw new NullPointerException(); } task_ = value; onChanged(); } else { adBreakBuilder_.setMessage(value); } taskCase_ = 6; return this; } /** * * *
     * Inserts a new ad opportunity.
     * 
* * .google.cloud.video.livestream.v1.Event.AdBreakTask ad_break = 6; */ public Builder setAdBreak( com.google.cloud.video.livestream.v1.Event.AdBreakTask.Builder builderForValue) { if (adBreakBuilder_ == null) { task_ = builderForValue.build(); onChanged(); } else { adBreakBuilder_.setMessage(builderForValue.build()); } taskCase_ = 6; return this; } /** * * *
     * Inserts a new ad opportunity.
     * 
* * .google.cloud.video.livestream.v1.Event.AdBreakTask ad_break = 6; */ public Builder mergeAdBreak(com.google.cloud.video.livestream.v1.Event.AdBreakTask value) { if (adBreakBuilder_ == null) { if (taskCase_ == 6 && task_ != com.google.cloud.video.livestream.v1.Event.AdBreakTask.getDefaultInstance()) { task_ = com.google.cloud.video.livestream.v1.Event.AdBreakTask.newBuilder( (com.google.cloud.video.livestream.v1.Event.AdBreakTask) task_) .mergeFrom(value) .buildPartial(); } else { task_ = value; } onChanged(); } else { if (taskCase_ == 6) { adBreakBuilder_.mergeFrom(value); } else { adBreakBuilder_.setMessage(value); } } taskCase_ = 6; return this; } /** * * *
     * Inserts a new ad opportunity.
     * 
* * .google.cloud.video.livestream.v1.Event.AdBreakTask ad_break = 6; */ public Builder clearAdBreak() { if (adBreakBuilder_ == null) { if (taskCase_ == 6) { taskCase_ = 0; task_ = null; onChanged(); } } else { if (taskCase_ == 6) { taskCase_ = 0; task_ = null; } adBreakBuilder_.clear(); } return this; } /** * * *
     * Inserts a new ad opportunity.
     * 
* * .google.cloud.video.livestream.v1.Event.AdBreakTask ad_break = 6; */ public com.google.cloud.video.livestream.v1.Event.AdBreakTask.Builder getAdBreakBuilder() { return getAdBreakFieldBuilder().getBuilder(); } /** * * *
     * Inserts a new ad opportunity.
     * 
* * .google.cloud.video.livestream.v1.Event.AdBreakTask ad_break = 6; */ @java.lang.Override public com.google.cloud.video.livestream.v1.Event.AdBreakTaskOrBuilder getAdBreakOrBuilder() { if ((taskCase_ == 6) && (adBreakBuilder_ != null)) { return adBreakBuilder_.getMessageOrBuilder(); } else { if (taskCase_ == 6) { return (com.google.cloud.video.livestream.v1.Event.AdBreakTask) task_; } return com.google.cloud.video.livestream.v1.Event.AdBreakTask.getDefaultInstance(); } } /** * * *
     * Inserts a new ad opportunity.
     * 
* * .google.cloud.video.livestream.v1.Event.AdBreakTask ad_break = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.Event.AdBreakTask, com.google.cloud.video.livestream.v1.Event.AdBreakTask.Builder, com.google.cloud.video.livestream.v1.Event.AdBreakTaskOrBuilder> getAdBreakFieldBuilder() { if (adBreakBuilder_ == null) { if (!(taskCase_ == 6)) { task_ = com.google.cloud.video.livestream.v1.Event.AdBreakTask.getDefaultInstance(); } adBreakBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.Event.AdBreakTask, com.google.cloud.video.livestream.v1.Event.AdBreakTask.Builder, com.google.cloud.video.livestream.v1.Event.AdBreakTaskOrBuilder>( (com.google.cloud.video.livestream.v1.Event.AdBreakTask) task_, getParentForChildren(), isClean()); task_ = null; } taskCase_ = 6; onChanged(); return adBreakBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask, com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask.Builder, com.google.cloud.video.livestream.v1.Event.ReturnToProgramTaskOrBuilder> returnToProgramBuilder_; /** * * *
     * Stops any running ad break.
     * 
* * .google.cloud.video.livestream.v1.Event.ReturnToProgramTask return_to_program = 13; * * * @return Whether the returnToProgram field is set. */ @java.lang.Override public boolean hasReturnToProgram() { return taskCase_ == 13; } /** * * *
     * Stops any running ad break.
     * 
* * .google.cloud.video.livestream.v1.Event.ReturnToProgramTask return_to_program = 13; * * * @return The returnToProgram. */ @java.lang.Override public com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask getReturnToProgram() { if (returnToProgramBuilder_ == null) { if (taskCase_ == 13) { return (com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask) task_; } return com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask.getDefaultInstance(); } else { if (taskCase_ == 13) { return returnToProgramBuilder_.getMessage(); } return com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask.getDefaultInstance(); } } /** * * *
     * Stops any running ad break.
     * 
* * .google.cloud.video.livestream.v1.Event.ReturnToProgramTask return_to_program = 13; * */ public Builder setReturnToProgram( com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask value) { if (returnToProgramBuilder_ == null) { if (value == null) { throw new NullPointerException(); } task_ = value; onChanged(); } else { returnToProgramBuilder_.setMessage(value); } taskCase_ = 13; return this; } /** * * *
     * Stops any running ad break.
     * 
* * .google.cloud.video.livestream.v1.Event.ReturnToProgramTask return_to_program = 13; * */ public Builder setReturnToProgram( com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask.Builder builderForValue) { if (returnToProgramBuilder_ == null) { task_ = builderForValue.build(); onChanged(); } else { returnToProgramBuilder_.setMessage(builderForValue.build()); } taskCase_ = 13; return this; } /** * * *
     * Stops any running ad break.
     * 
* * .google.cloud.video.livestream.v1.Event.ReturnToProgramTask return_to_program = 13; * */ public Builder mergeReturnToProgram( com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask value) { if (returnToProgramBuilder_ == null) { if (taskCase_ == 13 && task_ != com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask .getDefaultInstance()) { task_ = com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask.newBuilder( (com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask) task_) .mergeFrom(value) .buildPartial(); } else { task_ = value; } onChanged(); } else { if (taskCase_ == 13) { returnToProgramBuilder_.mergeFrom(value); } else { returnToProgramBuilder_.setMessage(value); } } taskCase_ = 13; return this; } /** * * *
     * Stops any running ad break.
     * 
* * .google.cloud.video.livestream.v1.Event.ReturnToProgramTask return_to_program = 13; * */ public Builder clearReturnToProgram() { if (returnToProgramBuilder_ == null) { if (taskCase_ == 13) { taskCase_ = 0; task_ = null; onChanged(); } } else { if (taskCase_ == 13) { taskCase_ = 0; task_ = null; } returnToProgramBuilder_.clear(); } return this; } /** * * *
     * Stops any running ad break.
     * 
* * .google.cloud.video.livestream.v1.Event.ReturnToProgramTask return_to_program = 13; * */ public com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask.Builder getReturnToProgramBuilder() { return getReturnToProgramFieldBuilder().getBuilder(); } /** * * *
     * Stops any running ad break.
     * 
* * .google.cloud.video.livestream.v1.Event.ReturnToProgramTask return_to_program = 13; * */ @java.lang.Override public com.google.cloud.video.livestream.v1.Event.ReturnToProgramTaskOrBuilder getReturnToProgramOrBuilder() { if ((taskCase_ == 13) && (returnToProgramBuilder_ != null)) { return returnToProgramBuilder_.getMessageOrBuilder(); } else { if (taskCase_ == 13) { return (com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask) task_; } return com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask.getDefaultInstance(); } } /** * * *
     * Stops any running ad break.
     * 
* * .google.cloud.video.livestream.v1.Event.ReturnToProgramTask return_to_program = 13; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask, com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask.Builder, com.google.cloud.video.livestream.v1.Event.ReturnToProgramTaskOrBuilder> getReturnToProgramFieldBuilder() { if (returnToProgramBuilder_ == null) { if (!(taskCase_ == 13)) { task_ = com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask.getDefaultInstance(); } returnToProgramBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask, com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask.Builder, com.google.cloud.video.livestream.v1.Event.ReturnToProgramTaskOrBuilder>( (com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask) task_, getParentForChildren(), isClean()); task_ = null; } taskCase_ = 13; onChanged(); return returnToProgramBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.Event.SlateTask, com.google.cloud.video.livestream.v1.Event.SlateTask.Builder, com.google.cloud.video.livestream.v1.Event.SlateTaskOrBuilder> slateBuilder_; /** * * *
     * Inserts a slate.
     * 
* * .google.cloud.video.livestream.v1.Event.SlateTask slate = 14; * * @return Whether the slate field is set. */ @java.lang.Override public boolean hasSlate() { return taskCase_ == 14; } /** * * *
     * Inserts a slate.
     * 
* * .google.cloud.video.livestream.v1.Event.SlateTask slate = 14; * * @return The slate. */ @java.lang.Override public com.google.cloud.video.livestream.v1.Event.SlateTask getSlate() { if (slateBuilder_ == null) { if (taskCase_ == 14) { return (com.google.cloud.video.livestream.v1.Event.SlateTask) task_; } return com.google.cloud.video.livestream.v1.Event.SlateTask.getDefaultInstance(); } else { if (taskCase_ == 14) { return slateBuilder_.getMessage(); } return com.google.cloud.video.livestream.v1.Event.SlateTask.getDefaultInstance(); } } /** * * *
     * Inserts a slate.
     * 
* * .google.cloud.video.livestream.v1.Event.SlateTask slate = 14; */ public Builder setSlate(com.google.cloud.video.livestream.v1.Event.SlateTask value) { if (slateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } task_ = value; onChanged(); } else { slateBuilder_.setMessage(value); } taskCase_ = 14; return this; } /** * * *
     * Inserts a slate.
     * 
* * .google.cloud.video.livestream.v1.Event.SlateTask slate = 14; */ public Builder setSlate( com.google.cloud.video.livestream.v1.Event.SlateTask.Builder builderForValue) { if (slateBuilder_ == null) { task_ = builderForValue.build(); onChanged(); } else { slateBuilder_.setMessage(builderForValue.build()); } taskCase_ = 14; return this; } /** * * *
     * Inserts a slate.
     * 
* * .google.cloud.video.livestream.v1.Event.SlateTask slate = 14; */ public Builder mergeSlate(com.google.cloud.video.livestream.v1.Event.SlateTask value) { if (slateBuilder_ == null) { if (taskCase_ == 14 && task_ != com.google.cloud.video.livestream.v1.Event.SlateTask.getDefaultInstance()) { task_ = com.google.cloud.video.livestream.v1.Event.SlateTask.newBuilder( (com.google.cloud.video.livestream.v1.Event.SlateTask) task_) .mergeFrom(value) .buildPartial(); } else { task_ = value; } onChanged(); } else { if (taskCase_ == 14) { slateBuilder_.mergeFrom(value); } else { slateBuilder_.setMessage(value); } } taskCase_ = 14; return this; } /** * * *
     * Inserts a slate.
     * 
* * .google.cloud.video.livestream.v1.Event.SlateTask slate = 14; */ public Builder clearSlate() { if (slateBuilder_ == null) { if (taskCase_ == 14) { taskCase_ = 0; task_ = null; onChanged(); } } else { if (taskCase_ == 14) { taskCase_ = 0; task_ = null; } slateBuilder_.clear(); } return this; } /** * * *
     * Inserts a slate.
     * 
* * .google.cloud.video.livestream.v1.Event.SlateTask slate = 14; */ public com.google.cloud.video.livestream.v1.Event.SlateTask.Builder getSlateBuilder() { return getSlateFieldBuilder().getBuilder(); } /** * * *
     * Inserts a slate.
     * 
* * .google.cloud.video.livestream.v1.Event.SlateTask slate = 14; */ @java.lang.Override public com.google.cloud.video.livestream.v1.Event.SlateTaskOrBuilder getSlateOrBuilder() { if ((taskCase_ == 14) && (slateBuilder_ != null)) { return slateBuilder_.getMessageOrBuilder(); } else { if (taskCase_ == 14) { return (com.google.cloud.video.livestream.v1.Event.SlateTask) task_; } return com.google.cloud.video.livestream.v1.Event.SlateTask.getDefaultInstance(); } } /** * * *
     * Inserts a slate.
     * 
* * .google.cloud.video.livestream.v1.Event.SlateTask slate = 14; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.Event.SlateTask, com.google.cloud.video.livestream.v1.Event.SlateTask.Builder, com.google.cloud.video.livestream.v1.Event.SlateTaskOrBuilder> getSlateFieldBuilder() { if (slateBuilder_ == null) { if (!(taskCase_ == 14)) { task_ = com.google.cloud.video.livestream.v1.Event.SlateTask.getDefaultInstance(); } slateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.Event.SlateTask, com.google.cloud.video.livestream.v1.Event.SlateTask.Builder, com.google.cloud.video.livestream.v1.Event.SlateTaskOrBuilder>( (com.google.cloud.video.livestream.v1.Event.SlateTask) task_, getParentForChildren(), isClean()); task_ = null; } taskCase_ = 14; onChanged(); return slateBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.Event.MuteTask, com.google.cloud.video.livestream.v1.Event.MuteTask.Builder, com.google.cloud.video.livestream.v1.Event.MuteTaskOrBuilder> muteBuilder_; /** * * *
     * Mutes the stream.
     * 
* * .google.cloud.video.livestream.v1.Event.MuteTask mute = 15; * * @return Whether the mute field is set. */ @java.lang.Override public boolean hasMute() { return taskCase_ == 15; } /** * * *
     * Mutes the stream.
     * 
* * .google.cloud.video.livestream.v1.Event.MuteTask mute = 15; * * @return The mute. */ @java.lang.Override public com.google.cloud.video.livestream.v1.Event.MuteTask getMute() { if (muteBuilder_ == null) { if (taskCase_ == 15) { return (com.google.cloud.video.livestream.v1.Event.MuteTask) task_; } return com.google.cloud.video.livestream.v1.Event.MuteTask.getDefaultInstance(); } else { if (taskCase_ == 15) { return muteBuilder_.getMessage(); } return com.google.cloud.video.livestream.v1.Event.MuteTask.getDefaultInstance(); } } /** * * *
     * Mutes the stream.
     * 
* * .google.cloud.video.livestream.v1.Event.MuteTask mute = 15; */ public Builder setMute(com.google.cloud.video.livestream.v1.Event.MuteTask value) { if (muteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } task_ = value; onChanged(); } else { muteBuilder_.setMessage(value); } taskCase_ = 15; return this; } /** * * *
     * Mutes the stream.
     * 
* * .google.cloud.video.livestream.v1.Event.MuteTask mute = 15; */ public Builder setMute( com.google.cloud.video.livestream.v1.Event.MuteTask.Builder builderForValue) { if (muteBuilder_ == null) { task_ = builderForValue.build(); onChanged(); } else { muteBuilder_.setMessage(builderForValue.build()); } taskCase_ = 15; return this; } /** * * *
     * Mutes the stream.
     * 
* * .google.cloud.video.livestream.v1.Event.MuteTask mute = 15; */ public Builder mergeMute(com.google.cloud.video.livestream.v1.Event.MuteTask value) { if (muteBuilder_ == null) { if (taskCase_ == 15 && task_ != com.google.cloud.video.livestream.v1.Event.MuteTask.getDefaultInstance()) { task_ = com.google.cloud.video.livestream.v1.Event.MuteTask.newBuilder( (com.google.cloud.video.livestream.v1.Event.MuteTask) task_) .mergeFrom(value) .buildPartial(); } else { task_ = value; } onChanged(); } else { if (taskCase_ == 15) { muteBuilder_.mergeFrom(value); } else { muteBuilder_.setMessage(value); } } taskCase_ = 15; return this; } /** * * *
     * Mutes the stream.
     * 
* * .google.cloud.video.livestream.v1.Event.MuteTask mute = 15; */ public Builder clearMute() { if (muteBuilder_ == null) { if (taskCase_ == 15) { taskCase_ = 0; task_ = null; onChanged(); } } else { if (taskCase_ == 15) { taskCase_ = 0; task_ = null; } muteBuilder_.clear(); } return this; } /** * * *
     * Mutes the stream.
     * 
* * .google.cloud.video.livestream.v1.Event.MuteTask mute = 15; */ public com.google.cloud.video.livestream.v1.Event.MuteTask.Builder getMuteBuilder() { return getMuteFieldBuilder().getBuilder(); } /** * * *
     * Mutes the stream.
     * 
* * .google.cloud.video.livestream.v1.Event.MuteTask mute = 15; */ @java.lang.Override public com.google.cloud.video.livestream.v1.Event.MuteTaskOrBuilder getMuteOrBuilder() { if ((taskCase_ == 15) && (muteBuilder_ != null)) { return muteBuilder_.getMessageOrBuilder(); } else { if (taskCase_ == 15) { return (com.google.cloud.video.livestream.v1.Event.MuteTask) task_; } return com.google.cloud.video.livestream.v1.Event.MuteTask.getDefaultInstance(); } } /** * * *
     * Mutes the stream.
     * 
* * .google.cloud.video.livestream.v1.Event.MuteTask mute = 15; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.Event.MuteTask, com.google.cloud.video.livestream.v1.Event.MuteTask.Builder, com.google.cloud.video.livestream.v1.Event.MuteTaskOrBuilder> getMuteFieldBuilder() { if (muteBuilder_ == null) { if (!(taskCase_ == 15)) { task_ = com.google.cloud.video.livestream.v1.Event.MuteTask.getDefaultInstance(); } muteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.Event.MuteTask, com.google.cloud.video.livestream.v1.Event.MuteTask.Builder, com.google.cloud.video.livestream.v1.Event.MuteTaskOrBuilder>( (com.google.cloud.video.livestream.v1.Event.MuteTask) task_, getParentForChildren(), isClean()); task_ = null; } taskCase_ = 15; onChanged(); return muteBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.Event.UnmuteTask, com.google.cloud.video.livestream.v1.Event.UnmuteTask.Builder, com.google.cloud.video.livestream.v1.Event.UnmuteTaskOrBuilder> unmuteBuilder_; /** * * *
     * Unmutes the stream.
     * 
* * .google.cloud.video.livestream.v1.Event.UnmuteTask unmute = 16; * * @return Whether the unmute field is set. */ @java.lang.Override public boolean hasUnmute() { return taskCase_ == 16; } /** * * *
     * Unmutes the stream.
     * 
* * .google.cloud.video.livestream.v1.Event.UnmuteTask unmute = 16; * * @return The unmute. */ @java.lang.Override public com.google.cloud.video.livestream.v1.Event.UnmuteTask getUnmute() { if (unmuteBuilder_ == null) { if (taskCase_ == 16) { return (com.google.cloud.video.livestream.v1.Event.UnmuteTask) task_; } return com.google.cloud.video.livestream.v1.Event.UnmuteTask.getDefaultInstance(); } else { if (taskCase_ == 16) { return unmuteBuilder_.getMessage(); } return com.google.cloud.video.livestream.v1.Event.UnmuteTask.getDefaultInstance(); } } /** * * *
     * Unmutes the stream.
     * 
* * .google.cloud.video.livestream.v1.Event.UnmuteTask unmute = 16; */ public Builder setUnmute(com.google.cloud.video.livestream.v1.Event.UnmuteTask value) { if (unmuteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } task_ = value; onChanged(); } else { unmuteBuilder_.setMessage(value); } taskCase_ = 16; return this; } /** * * *
     * Unmutes the stream.
     * 
* * .google.cloud.video.livestream.v1.Event.UnmuteTask unmute = 16; */ public Builder setUnmute( com.google.cloud.video.livestream.v1.Event.UnmuteTask.Builder builderForValue) { if (unmuteBuilder_ == null) { task_ = builderForValue.build(); onChanged(); } else { unmuteBuilder_.setMessage(builderForValue.build()); } taskCase_ = 16; return this; } /** * * *
     * Unmutes the stream.
     * 
* * .google.cloud.video.livestream.v1.Event.UnmuteTask unmute = 16; */ public Builder mergeUnmute(com.google.cloud.video.livestream.v1.Event.UnmuteTask value) { if (unmuteBuilder_ == null) { if (taskCase_ == 16 && task_ != com.google.cloud.video.livestream.v1.Event.UnmuteTask.getDefaultInstance()) { task_ = com.google.cloud.video.livestream.v1.Event.UnmuteTask.newBuilder( (com.google.cloud.video.livestream.v1.Event.UnmuteTask) task_) .mergeFrom(value) .buildPartial(); } else { task_ = value; } onChanged(); } else { if (taskCase_ == 16) { unmuteBuilder_.mergeFrom(value); } else { unmuteBuilder_.setMessage(value); } } taskCase_ = 16; return this; } /** * * *
     * Unmutes the stream.
     * 
* * .google.cloud.video.livestream.v1.Event.UnmuteTask unmute = 16; */ public Builder clearUnmute() { if (unmuteBuilder_ == null) { if (taskCase_ == 16) { taskCase_ = 0; task_ = null; onChanged(); } } else { if (taskCase_ == 16) { taskCase_ = 0; task_ = null; } unmuteBuilder_.clear(); } return this; } /** * * *
     * Unmutes the stream.
     * 
* * .google.cloud.video.livestream.v1.Event.UnmuteTask unmute = 16; */ public com.google.cloud.video.livestream.v1.Event.UnmuteTask.Builder getUnmuteBuilder() { return getUnmuteFieldBuilder().getBuilder(); } /** * * *
     * Unmutes the stream.
     * 
* * .google.cloud.video.livestream.v1.Event.UnmuteTask unmute = 16; */ @java.lang.Override public com.google.cloud.video.livestream.v1.Event.UnmuteTaskOrBuilder getUnmuteOrBuilder() { if ((taskCase_ == 16) && (unmuteBuilder_ != null)) { return unmuteBuilder_.getMessageOrBuilder(); } else { if (taskCase_ == 16) { return (com.google.cloud.video.livestream.v1.Event.UnmuteTask) task_; } return com.google.cloud.video.livestream.v1.Event.UnmuteTask.getDefaultInstance(); } } /** * * *
     * Unmutes the stream.
     * 
* * .google.cloud.video.livestream.v1.Event.UnmuteTask unmute = 16; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.Event.UnmuteTask, com.google.cloud.video.livestream.v1.Event.UnmuteTask.Builder, com.google.cloud.video.livestream.v1.Event.UnmuteTaskOrBuilder> getUnmuteFieldBuilder() { if (unmuteBuilder_ == null) { if (!(taskCase_ == 16)) { task_ = com.google.cloud.video.livestream.v1.Event.UnmuteTask.getDefaultInstance(); } unmuteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.Event.UnmuteTask, com.google.cloud.video.livestream.v1.Event.UnmuteTask.Builder, com.google.cloud.video.livestream.v1.Event.UnmuteTaskOrBuilder>( (com.google.cloud.video.livestream.v1.Event.UnmuteTask) task_, getParentForChildren(), isClean()); task_ = null; } taskCase_ = 16; onChanged(); return unmuteBuilder_; } private boolean executeNow_; /** * * *
     * 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][google.cloud.video.livestream.v1.Event.execution_time]
     * will be populated with the time that the server actually schedules the
     * event.
     * 
* * bool execute_now = 9; * * @return The executeNow. */ @java.lang.Override public boolean getExecuteNow() { return executeNow_; } /** * * *
     * 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][google.cloud.video.livestream.v1.Event.execution_time]
     * will be populated with the time that the server actually schedules the
     * event.
     * 
* * bool execute_now = 9; * * @param value The executeNow to set. * @return This builder for chaining. */ public Builder setExecuteNow(boolean value) { executeNow_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * 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][google.cloud.video.livestream.v1.Event.execution_time]
     * will be populated with the time that the server actually schedules the
     * event.
     * 
* * bool execute_now = 9; * * @return This builder for chaining. */ public Builder clearExecuteNow() { bitField0_ = (bitField0_ & ~0x00000400); executeNow_ = false; onChanged(); return this; } private com.google.protobuf.Timestamp executionTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> executionTimeBuilder_; /** * * *
     * The time to execute the event. If you set
     * [execute_now][google.cloud.video.livestream.v1.Event.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][google.cloud.video.livestream.v1.Event.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; * * @return Whether the executionTime field is set. */ public boolean hasExecutionTime() { return ((bitField0_ & 0x00000800) != 0); } /** * * *
     * The time to execute the event. If you set
     * [execute_now][google.cloud.video.livestream.v1.Event.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][google.cloud.video.livestream.v1.Event.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; * * @return The executionTime. */ public com.google.protobuf.Timestamp getExecutionTime() { if (executionTimeBuilder_ == null) { return executionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : executionTime_; } else { return executionTimeBuilder_.getMessage(); } } /** * * *
     * The time to execute the event. If you set
     * [execute_now][google.cloud.video.livestream.v1.Event.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][google.cloud.video.livestream.v1.Event.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; */ public Builder setExecutionTime(com.google.protobuf.Timestamp value) { if (executionTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } executionTime_ = value; } else { executionTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
     * The time to execute the event. If you set
     * [execute_now][google.cloud.video.livestream.v1.Event.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][google.cloud.video.livestream.v1.Event.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; */ public Builder setExecutionTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (executionTimeBuilder_ == null) { executionTime_ = builderForValue.build(); } else { executionTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
     * The time to execute the event. If you set
     * [execute_now][google.cloud.video.livestream.v1.Event.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][google.cloud.video.livestream.v1.Event.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; */ public Builder mergeExecutionTime(com.google.protobuf.Timestamp value) { if (executionTimeBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0) && executionTime_ != null && executionTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExecutionTimeBuilder().mergeFrom(value); } else { executionTime_ = value; } } else { executionTimeBuilder_.mergeFrom(value); } if (executionTime_ != null) { bitField0_ |= 0x00000800; onChanged(); } return this; } /** * * *
     * The time to execute the event. If you set
     * [execute_now][google.cloud.video.livestream.v1.Event.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][google.cloud.video.livestream.v1.Event.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; */ public Builder clearExecutionTime() { bitField0_ = (bitField0_ & ~0x00000800); executionTime_ = null; if (executionTimeBuilder_ != null) { executionTimeBuilder_.dispose(); executionTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * The time to execute the event. If you set
     * [execute_now][google.cloud.video.livestream.v1.Event.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][google.cloud.video.livestream.v1.Event.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; */ public com.google.protobuf.Timestamp.Builder getExecutionTimeBuilder() { bitField0_ |= 0x00000800; onChanged(); return getExecutionTimeFieldBuilder().getBuilder(); } /** * * *
     * The time to execute the event. If you set
     * [execute_now][google.cloud.video.livestream.v1.Event.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][google.cloud.video.livestream.v1.Event.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; */ public com.google.protobuf.TimestampOrBuilder getExecutionTimeOrBuilder() { if (executionTimeBuilder_ != null) { return executionTimeBuilder_.getMessageOrBuilder(); } else { return executionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : executionTime_; } } /** * * *
     * The time to execute the event. If you set
     * [execute_now][google.cloud.video.livestream.v1.Event.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][google.cloud.video.livestream.v1.Event.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; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getExecutionTimeFieldBuilder() { if (executionTimeBuilder_ == null) { executionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getExecutionTime(), getParentForChildren(), isClean()); executionTime_ = null; } return executionTimeBuilder_; } private int state_ = 0; /** * * *
     * Output only. The state of the event.
     * 
* * * .google.cloud.video.livestream.v1.Event.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * * *
     * Output only. The state of the event.
     * 
* * * .google.cloud.video.livestream.v1.Event.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { state_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** * * *
     * Output only. The state of the event.
     * 
* * * .google.cloud.video.livestream.v1.Event.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The state. */ @java.lang.Override public com.google.cloud.video.livestream.v1.Event.State getState() { com.google.cloud.video.livestream.v1.Event.State result = com.google.cloud.video.livestream.v1.Event.State.forNumber(state_); return result == null ? com.google.cloud.video.livestream.v1.Event.State.UNRECOGNIZED : result; } /** * * *
     * Output only. The state of the event.
     * 
* * * .google.cloud.video.livestream.v1.Event.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The state to set. * @return This builder for chaining. */ public Builder setState(com.google.cloud.video.livestream.v1.Event.State value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00001000; state_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Output only. The state of the event.
     * 
* * * .google.cloud.video.livestream.v1.Event.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearState() { bitField0_ = (bitField0_ & ~0x00001000); state_ = 0; onChanged(); return this; } private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; /** * * *
     * 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]; * * @return Whether the error field is set. */ public boolean hasError() { return ((bitField0_ & 0x00002000) != 0); } /** * * *
     * 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]; * * @return The error. */ public com.google.rpc.Status getError() { if (errorBuilder_ == null) { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * * *
     * 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]; */ public Builder setError(com.google.rpc.Status value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; } else { errorBuilder_.setMessage(value); } bitField0_ |= 0x00002000; onChanged(); return this; } /** * * *
     * 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]; */ public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); } else { errorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; onChanged(); return this; } /** * * *
     * 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]; */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { if (((bitField0_ & 0x00002000) != 0) && error_ != null && error_ != com.google.rpc.Status.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); } else { error_ = value; } } else { errorBuilder_.mergeFrom(value); } if (error_ != null) { bitField0_ |= 0x00002000; onChanged(); } return this; } /** * * *
     * 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]; */ public Builder clearError() { bitField0_ = (bitField0_ & ~0x00002000); error_ = null; if (errorBuilder_ != null) { errorBuilder_.dispose(); errorBuilder_ = null; } onChanged(); return this; } /** * * *
     * 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]; */ public com.google.rpc.Status.Builder getErrorBuilder() { bitField0_ |= 0x00002000; onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * * *
     * 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]; */ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } } /** * * *
     * 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]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.video.livestream.v1.Event) } // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.Event) private static final com.google.cloud.video.livestream.v1.Event DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.Event(); } public static com.google.cloud.video.livestream.v1.Event getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Event parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.video.livestream.v1.Event getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy