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

com.google.cloud.video.livestream.v1.InputAttachment 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;

/**
 *
 *
 * 
 * A group of information for attaching an input resource to this channel.
 * 
* * Protobuf type {@code google.cloud.video.livestream.v1.InputAttachment} */ public final class InputAttachment extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.InputAttachment) InputAttachmentOrBuilder { private static final long serialVersionUID = 0L; // Use InputAttachment.newBuilder() to construct. private InputAttachment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InputAttachment() { key_ = ""; input_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InputAttachment(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_InputAttachment_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_InputAttachment_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.InputAttachment.class, com.google.cloud.video.livestream.v1.InputAttachment.Builder.class); } public interface AutomaticFailoverOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover) com.google.protobuf.MessageOrBuilder { /** * * *
     * The
     * [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]s
     * of inputs to failover to when this input is disconnected. Currently, only
     * up to one backup input is supported.
     * 
* * repeated string input_keys = 1; * * @return A list containing the inputKeys. */ java.util.List getInputKeysList(); /** * * *
     * The
     * [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]s
     * of inputs to failover to when this input is disconnected. Currently, only
     * up to one backup input is supported.
     * 
* * repeated string input_keys = 1; * * @return The count of inputKeys. */ int getInputKeysCount(); /** * * *
     * The
     * [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]s
     * of inputs to failover to when this input is disconnected. Currently, only
     * up to one backup input is supported.
     * 
* * repeated string input_keys = 1; * * @param index The index of the element to return. * @return The inputKeys at the given index. */ java.lang.String getInputKeys(int index); /** * * *
     * The
     * [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]s
     * of inputs to failover to when this input is disconnected. Currently, only
     * up to one backup input is supported.
     * 
* * repeated string input_keys = 1; * * @param index The index of the value to return. * @return The bytes of the inputKeys at the given index. */ com.google.protobuf.ByteString getInputKeysBytes(int index); } /** * * *
   * Configurations to follow when automatic failover happens.
   * 
* * Protobuf type {@code google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover} */ public static final class AutomaticFailover extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover) AutomaticFailoverOrBuilder { private static final long serialVersionUID = 0L; // Use AutomaticFailover.newBuilder() to construct. private AutomaticFailover(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AutomaticFailover() { inputKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AutomaticFailover(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_InputAttachment_AutomaticFailover_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_InputAttachment_AutomaticFailover_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover.class, com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover.Builder.class); } public static final int INPUT_KEYS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList inputKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
     * The
     * [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]s
     * of inputs to failover to when this input is disconnected. Currently, only
     * up to one backup input is supported.
     * 
* * repeated string input_keys = 1; * * @return A list containing the inputKeys. */ public com.google.protobuf.ProtocolStringList getInputKeysList() { return inputKeys_; } /** * * *
     * The
     * [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]s
     * of inputs to failover to when this input is disconnected. Currently, only
     * up to one backup input is supported.
     * 
* * repeated string input_keys = 1; * * @return The count of inputKeys. */ public int getInputKeysCount() { return inputKeys_.size(); } /** * * *
     * The
     * [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]s
     * of inputs to failover to when this input is disconnected. Currently, only
     * up to one backup input is supported.
     * 
* * repeated string input_keys = 1; * * @param index The index of the element to return. * @return The inputKeys at the given index. */ public java.lang.String getInputKeys(int index) { return inputKeys_.get(index); } /** * * *
     * The
     * [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]s
     * of inputs to failover to when this input is disconnected. Currently, only
     * up to one backup input is supported.
     * 
* * repeated string input_keys = 1; * * @param index The index of the value to return. * @return The bytes of the inputKeys at the given index. */ public com.google.protobuf.ByteString getInputKeysBytes(int index) { return inputKeys_.getByteString(index); } 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 { for (int i = 0; i < inputKeys_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputKeys_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < inputKeys_.size(); i++) { dataSize += computeStringSizeNoTag(inputKeys_.getRaw(i)); } size += dataSize; size += 1 * getInputKeysList().size(); } 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.InputAttachment.AutomaticFailover)) { return super.equals(obj); } com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover other = (com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover) obj; if (!getInputKeysList().equals(other.getInputKeysList())) 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 (getInputKeysCount() > 0) { hash = (37 * hash) + INPUT_KEYS_FIELD_NUMBER; hash = (53 * hash) + getInputKeysList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover 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.InputAttachment.AutomaticFailover parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover 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.InputAttachment.AutomaticFailover parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover 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.InputAttachment.AutomaticFailover 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.InputAttachment.AutomaticFailover 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.InputAttachment.AutomaticFailover 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.InputAttachment.AutomaticFailover 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.InputAttachment.AutomaticFailover 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.InputAttachment.AutomaticFailover 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.InputAttachment.AutomaticFailover 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; } /** * * *
     * Configurations to follow when automatic failover happens.
     * 
* * Protobuf type {@code google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover) com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailoverOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_InputAttachment_AutomaticFailover_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_InputAttachment_AutomaticFailover_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover.class, com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover.Builder .class); } // Construct using // com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; inputKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); 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_InputAttachment_AutomaticFailover_descriptor; } @java.lang.Override public com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover getDefaultInstanceForType() { return com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover .getDefaultInstance(); } @java.lang.Override public com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover build() { com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover buildPartial() { com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover result = new com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { inputKeys_.makeImmutable(); result.inputKeys_ = inputKeys_; } } @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.InputAttachment.AutomaticFailover) { return mergeFrom( (com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover other) { if (other == com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover .getDefaultInstance()) return this; if (!other.inputKeys_.isEmpty()) { if (inputKeys_.isEmpty()) { inputKeys_ = other.inputKeys_; bitField0_ |= 0x00000001; } else { ensureInputKeysIsMutable(); inputKeys_.addAll(other.inputKeys_); } 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: { java.lang.String s = input.readStringRequireUtf8(); ensureInputKeysIsMutable(); inputKeys_.add(s); 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.LazyStringArrayList inputKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureInputKeysIsMutable() { if (!inputKeys_.isModifiable()) { inputKeys_ = new com.google.protobuf.LazyStringArrayList(inputKeys_); } bitField0_ |= 0x00000001; } /** * * *
       * The
       * [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]s
       * of inputs to failover to when this input is disconnected. Currently, only
       * up to one backup input is supported.
       * 
* * repeated string input_keys = 1; * * @return A list containing the inputKeys. */ public com.google.protobuf.ProtocolStringList getInputKeysList() { inputKeys_.makeImmutable(); return inputKeys_; } /** * * *
       * The
       * [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]s
       * of inputs to failover to when this input is disconnected. Currently, only
       * up to one backup input is supported.
       * 
* * repeated string input_keys = 1; * * @return The count of inputKeys. */ public int getInputKeysCount() { return inputKeys_.size(); } /** * * *
       * The
       * [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]s
       * of inputs to failover to when this input is disconnected. Currently, only
       * up to one backup input is supported.
       * 
* * repeated string input_keys = 1; * * @param index The index of the element to return. * @return The inputKeys at the given index. */ public java.lang.String getInputKeys(int index) { return inputKeys_.get(index); } /** * * *
       * The
       * [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]s
       * of inputs to failover to when this input is disconnected. Currently, only
       * up to one backup input is supported.
       * 
* * repeated string input_keys = 1; * * @param index The index of the value to return. * @return The bytes of the inputKeys at the given index. */ public com.google.protobuf.ByteString getInputKeysBytes(int index) { return inputKeys_.getByteString(index); } /** * * *
       * The
       * [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]s
       * of inputs to failover to when this input is disconnected. Currently, only
       * up to one backup input is supported.
       * 
* * repeated string input_keys = 1; * * @param index The index to set the value at. * @param value The inputKeys to set. * @return This builder for chaining. */ public Builder setInputKeys(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureInputKeysIsMutable(); inputKeys_.set(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The
       * [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]s
       * of inputs to failover to when this input is disconnected. Currently, only
       * up to one backup input is supported.
       * 
* * repeated string input_keys = 1; * * @param value The inputKeys to add. * @return This builder for chaining. */ public Builder addInputKeys(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureInputKeysIsMutable(); inputKeys_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The
       * [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]s
       * of inputs to failover to when this input is disconnected. Currently, only
       * up to one backup input is supported.
       * 
* * repeated string input_keys = 1; * * @param values The inputKeys to add. * @return This builder for chaining. */ public Builder addAllInputKeys(java.lang.Iterable values) { ensureInputKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputKeys_); bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The
       * [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]s
       * of inputs to failover to when this input is disconnected. Currently, only
       * up to one backup input is supported.
       * 
* * repeated string input_keys = 1; * * @return This builder for chaining. */ public Builder clearInputKeys() { inputKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); ; onChanged(); return this; } /** * * *
       * The
       * [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]s
       * of inputs to failover to when this input is disconnected. Currently, only
       * up to one backup input is supported.
       * 
* * repeated string input_keys = 1; * * @param value The bytes of the inputKeys to add. * @return This builder for chaining. */ public Builder addInputKeysBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureInputKeysIsMutable(); inputKeys_.add(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.InputAttachment.AutomaticFailover) } // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover) private static final com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover(); } public static com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AutomaticFailover 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.InputAttachment.AutomaticFailover getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object key_ = ""; /** * * *
   * A unique key for this input attachment. The key must be 1-63
   * characters in length. The key must begin and end with a letter (regardless
   * of case) or a number, but can contain dashes or underscores in between.
   * 
* * string key = 1; * * @return The key. */ @java.lang.Override public java.lang.String getKey() { java.lang.Object ref = key_; 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(); key_ = s; return s; } } /** * * *
   * A unique key for this input attachment. The key must be 1-63
   * characters in length. The key must begin and end with a letter (regardless
   * of case) or a number, but can contain dashes or underscores in between.
   * 
* * string key = 1; * * @return The bytes for key. */ @java.lang.Override public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INPUT_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object input_ = ""; /** * * *
   * The resource name of an existing input, in the form of:
   * `projects/{project}/locations/{location}/inputs/{inputId}`.
   * 
* * string input = 2 [(.google.api.resource_reference) = { ... } * * @return The input. */ @java.lang.Override public java.lang.String getInput() { java.lang.Object ref = input_; 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(); input_ = s; return s; } } /** * * *
   * The resource name of an existing input, in the form of:
   * `projects/{project}/locations/{location}/inputs/{inputId}`.
   * 
* * string input = 2 [(.google.api.resource_reference) = { ... } * * @return The bytes for input. */ @java.lang.Override public com.google.protobuf.ByteString getInputBytes() { java.lang.Object ref = input_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); input_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AUTOMATIC_FAILOVER_FIELD_NUMBER = 3; private com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover automaticFailover_; /** * * *
   * Automatic failover configurations.
   * 
* * * .google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover automatic_failover = 3; * * * @return Whether the automaticFailover field is set. */ @java.lang.Override public boolean hasAutomaticFailover() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Automatic failover configurations.
   * 
* * * .google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover automatic_failover = 3; * * * @return The automaticFailover. */ @java.lang.Override public com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover getAutomaticFailover() { return automaticFailover_ == null ? com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover .getDefaultInstance() : automaticFailover_; } /** * * *
   * Automatic failover configurations.
   * 
* * * .google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover automatic_failover = 3; * */ @java.lang.Override public com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailoverOrBuilder getAutomaticFailoverOrBuilder() { return automaticFailover_ == null ? com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover .getDefaultInstance() : automaticFailover_; } 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(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(input_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, input_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getAutomaticFailover()); } 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(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(input_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, input_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAutomaticFailover()); } 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.InputAttachment)) { return super.equals(obj); } com.google.cloud.video.livestream.v1.InputAttachment other = (com.google.cloud.video.livestream.v1.InputAttachment) obj; if (!getKey().equals(other.getKey())) return false; if (!getInput().equals(other.getInput())) return false; if (hasAutomaticFailover() != other.hasAutomaticFailover()) return false; if (hasAutomaticFailover()) { if (!getAutomaticFailover().equals(other.getAutomaticFailover())) 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) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInput().hashCode(); if (hasAutomaticFailover()) { hash = (37 * hash) + AUTOMATIC_FAILOVER_FIELD_NUMBER; hash = (53 * hash) + getAutomaticFailover().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.video.livestream.v1.InputAttachment parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.InputAttachment 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.InputAttachment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.InputAttachment 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.InputAttachment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.InputAttachment 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.InputAttachment 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.InputAttachment 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.InputAttachment 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.InputAttachment 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.InputAttachment 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.InputAttachment 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.InputAttachment 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; } /** * * *
   * A group of information for attaching an input resource to this channel.
   * 
* * Protobuf type {@code google.cloud.video.livestream.v1.InputAttachment} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.InputAttachment) com.google.cloud.video.livestream.v1.InputAttachmentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_InputAttachment_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_InputAttachment_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.InputAttachment.class, com.google.cloud.video.livestream.v1.InputAttachment.Builder.class); } // Construct using com.google.cloud.video.livestream.v1.InputAttachment.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAutomaticFailoverFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; key_ = ""; input_ = ""; automaticFailover_ = null; if (automaticFailoverBuilder_ != null) { automaticFailoverBuilder_.dispose(); automaticFailoverBuilder_ = 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_InputAttachment_descriptor; } @java.lang.Override public com.google.cloud.video.livestream.v1.InputAttachment getDefaultInstanceForType() { return com.google.cloud.video.livestream.v1.InputAttachment.getDefaultInstance(); } @java.lang.Override public com.google.cloud.video.livestream.v1.InputAttachment build() { com.google.cloud.video.livestream.v1.InputAttachment result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.video.livestream.v1.InputAttachment buildPartial() { com.google.cloud.video.livestream.v1.InputAttachment result = new com.google.cloud.video.livestream.v1.InputAttachment(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.video.livestream.v1.InputAttachment result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.key_ = key_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.input_ = input_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.automaticFailover_ = automaticFailoverBuilder_ == null ? automaticFailover_ : automaticFailoverBuilder_.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.InputAttachment) { return mergeFrom((com.google.cloud.video.livestream.v1.InputAttachment) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.video.livestream.v1.InputAttachment other) { if (other == com.google.cloud.video.livestream.v1.InputAttachment.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getInput().isEmpty()) { input_ = other.input_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasAutomaticFailover()) { mergeAutomaticFailover(other.getAutomaticFailover()); } 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: { key_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getAutomaticFailoverFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 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 key_ = ""; /** * * *
     * A unique key for this input attachment. The key must be 1-63
     * characters in length. The key must begin and end with a letter (regardless
     * of case) or a number, but can contain dashes or underscores in between.
     * 
* * string key = 1; * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * A unique key for this input attachment. The key must be 1-63
     * characters in length. The key must begin and end with a letter (regardless
     * of case) or a number, but can contain dashes or underscores in between.
     * 
* * string key = 1; * * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * A unique key for this input attachment. The key must be 1-63
     * characters in length. The key must begin and end with a letter (regardless
     * of case) or a number, but can contain dashes or underscores in between.
     * 
* * string key = 1; * * @param value The key to set. * @return This builder for chaining. */ public Builder setKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * A unique key for this input attachment. The key must be 1-63
     * characters in length. The key must begin and end with a letter (regardless
     * of case) or a number, but can contain dashes or underscores in between.
     * 
* * string key = 1; * * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * A unique key for this input attachment. The key must be 1-63
     * characters in length. The key must begin and end with a letter (regardless
     * of case) or a number, but can contain dashes or underscores in between.
     * 
* * string key = 1; * * @param value The bytes for key to set. * @return This builder for chaining. */ public Builder setKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object input_ = ""; /** * * *
     * The resource name of an existing input, in the form of:
     * `projects/{project}/locations/{location}/inputs/{inputId}`.
     * 
* * string input = 2 [(.google.api.resource_reference) = { ... } * * @return The input. */ public java.lang.String getInput() { java.lang.Object ref = input_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); input_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The resource name of an existing input, in the form of:
     * `projects/{project}/locations/{location}/inputs/{inputId}`.
     * 
* * string input = 2 [(.google.api.resource_reference) = { ... } * * @return The bytes for input. */ public com.google.protobuf.ByteString getInputBytes() { java.lang.Object ref = input_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); input_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The resource name of an existing input, in the form of:
     * `projects/{project}/locations/{location}/inputs/{inputId}`.
     * 
* * string input = 2 [(.google.api.resource_reference) = { ... } * * @param value The input to set. * @return This builder for chaining. */ public Builder setInput(java.lang.String value) { if (value == null) { throw new NullPointerException(); } input_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The resource name of an existing input, in the form of:
     * `projects/{project}/locations/{location}/inputs/{inputId}`.
     * 
* * string input = 2 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ public Builder clearInput() { input_ = getDefaultInstance().getInput(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * The resource name of an existing input, in the form of:
     * `projects/{project}/locations/{location}/inputs/{inputId}`.
     * 
* * string input = 2 [(.google.api.resource_reference) = { ... } * * @param value The bytes for input to set. * @return This builder for chaining. */ public Builder setInputBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); input_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover automaticFailover_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover, com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover.Builder, com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailoverOrBuilder> automaticFailoverBuilder_; /** * * *
     * Automatic failover configurations.
     * 
* * * .google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover automatic_failover = 3; * * * @return Whether the automaticFailover field is set. */ public boolean hasAutomaticFailover() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * Automatic failover configurations.
     * 
* * * .google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover automatic_failover = 3; * * * @return The automaticFailover. */ public com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover getAutomaticFailover() { if (automaticFailoverBuilder_ == null) { return automaticFailover_ == null ? com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover .getDefaultInstance() : automaticFailover_; } else { return automaticFailoverBuilder_.getMessage(); } } /** * * *
     * Automatic failover configurations.
     * 
* * * .google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover automatic_failover = 3; * */ public Builder setAutomaticFailover( com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover value) { if (automaticFailoverBuilder_ == null) { if (value == null) { throw new NullPointerException(); } automaticFailover_ = value; } else { automaticFailoverBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Automatic failover configurations.
     * 
* * * .google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover automatic_failover = 3; * */ public Builder setAutomaticFailover( com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover.Builder builderForValue) { if (automaticFailoverBuilder_ == null) { automaticFailover_ = builderForValue.build(); } else { automaticFailoverBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Automatic failover configurations.
     * 
* * * .google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover automatic_failover = 3; * */ public Builder mergeAutomaticFailover( com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover value) { if (automaticFailoverBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && automaticFailover_ != null && automaticFailover_ != com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover .getDefaultInstance()) { getAutomaticFailoverBuilder().mergeFrom(value); } else { automaticFailover_ = value; } } else { automaticFailoverBuilder_.mergeFrom(value); } if (automaticFailover_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
     * Automatic failover configurations.
     * 
* * * .google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover automatic_failover = 3; * */ public Builder clearAutomaticFailover() { bitField0_ = (bitField0_ & ~0x00000004); automaticFailover_ = null; if (automaticFailoverBuilder_ != null) { automaticFailoverBuilder_.dispose(); automaticFailoverBuilder_ = null; } onChanged(); return this; } /** * * *
     * Automatic failover configurations.
     * 
* * * .google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover automatic_failover = 3; * */ public com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover.Builder getAutomaticFailoverBuilder() { bitField0_ |= 0x00000004; onChanged(); return getAutomaticFailoverFieldBuilder().getBuilder(); } /** * * *
     * Automatic failover configurations.
     * 
* * * .google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover automatic_failover = 3; * */ public com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailoverOrBuilder getAutomaticFailoverOrBuilder() { if (automaticFailoverBuilder_ != null) { return automaticFailoverBuilder_.getMessageOrBuilder(); } else { return automaticFailover_ == null ? com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover .getDefaultInstance() : automaticFailover_; } } /** * * *
     * Automatic failover configurations.
     * 
* * * .google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover automatic_failover = 3; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover, com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover.Builder, com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailoverOrBuilder> getAutomaticFailoverFieldBuilder() { if (automaticFailoverBuilder_ == null) { automaticFailoverBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover, com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover.Builder, com.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailoverOrBuilder>( getAutomaticFailover(), getParentForChildren(), isClean()); automaticFailover_ = null; } return automaticFailoverBuilder_; } @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.InputAttachment) } // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.InputAttachment) private static final com.google.cloud.video.livestream.v1.InputAttachment DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.InputAttachment(); } public static com.google.cloud.video.livestream.v1.InputAttachment getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InputAttachment 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.InputAttachment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy