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

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

/**
 *
 *
 * 
 * Input resource represents the endpoint from which the channel ingests
 * the input stream.
 * 
* * Protobuf type {@code google.cloud.video.livestream.v1.Input} */ public final class Input extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.Input) InputOrBuilder { private static final long serialVersionUID = 0L; // Use Input.newBuilder() to construct. private Input(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Input() { name_ = ""; type_ = 0; tier_ = 0; uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Input(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Input_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_Input_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.Input.class, com.google.cloud.video.livestream.v1.Input.Builder.class); } /** * * *
   * The type of the input.
   * 
* * Protobuf enum {@code google.cloud.video.livestream.v1.Input.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Input type is not specified.
     * 
* * TYPE_UNSPECIFIED = 0; */ TYPE_UNSPECIFIED(0), /** * * *
     * Input will take an rtmp input stream.
     * 
* * RTMP_PUSH = 1; */ RTMP_PUSH(1), /** * * *
     * Input will take an srt (Secure Reliable Transport) input stream.
     * 
* * SRT_PUSH = 2; */ SRT_PUSH(2), UNRECOGNIZED(-1), ; /** * * *
     * Input type is not specified.
     * 
* * TYPE_UNSPECIFIED = 0; */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** * * *
     * Input will take an rtmp input stream.
     * 
* * RTMP_PUSH = 1; */ public static final int RTMP_PUSH_VALUE = 1; /** * * *
     * Input will take an srt (Secure Reliable Transport) input stream.
     * 
* * SRT_PUSH = 2; */ public static final int SRT_PUSH_VALUE = 2; 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 Type 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 Type forNumber(int value) { switch (value) { case 0: return TYPE_UNSPECIFIED; case 1: return RTMP_PUSH; case 2: return SRT_PUSH; 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 Type findValueByNumber(int number) { return Type.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.Input.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type 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 Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.video.livestream.v1.Input.Type) } /** * * *
   * Tier of the input specification.
   * 
* * Protobuf enum {@code google.cloud.video.livestream.v1.Input.Tier} */ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Tier is not specified.
     * 
* * TIER_UNSPECIFIED = 0; */ TIER_UNSPECIFIED(0), /** * * *
     * Resolution < 1280x720. Bitrate <= 6 Mbps. FPS <= 60.
     * 
* * SD = 1; */ SD(1), /** * * *
     * Resolution <= 1920x1080. Bitrate <= 25 Mbps. FPS <= 60.
     * 
* * HD = 2; */ HD(2), /** * * *
     * Resolution <= 4096x2160. Not supported yet.
     * 
* * UHD = 3; */ UHD(3), UNRECOGNIZED(-1), ; /** * * *
     * Tier is not specified.
     * 
* * TIER_UNSPECIFIED = 0; */ public static final int TIER_UNSPECIFIED_VALUE = 0; /** * * *
     * Resolution < 1280x720. Bitrate <= 6 Mbps. FPS <= 60.
     * 
* * SD = 1; */ public static final int SD_VALUE = 1; /** * * *
     * Resolution <= 1920x1080. Bitrate <= 25 Mbps. FPS <= 60.
     * 
* * HD = 2; */ public static final int HD_VALUE = 2; /** * * *
     * Resolution <= 4096x2160. Not supported yet.
     * 
* * UHD = 3; */ public static final int UHD_VALUE = 3; 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 Tier 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 Tier forNumber(int value) { switch (value) { case 0: return TIER_UNSPECIFIED; case 1: return SD; case 2: return HD; case 3: return UHD; 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 Tier findValueByNumber(int number) { return Tier.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.Input.getDescriptor().getEnumTypes().get(1); } private static final Tier[] VALUES = values(); public static Tier 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 Tier(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.video.livestream.v1.Input.Tier) } public interface SecurityRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.video.livestream.v1.Input.SecurityRule) com.google.protobuf.MessageOrBuilder { /** * * *
     * At least one ip range must match unless none specified. The IP range is
     * defined by CIDR block: for example, `192.0.1.0/24` for a range and
     * `192.0.1.0/32` for a single IP address.
     * 
* * repeated string ip_ranges = 1; * * @return A list containing the ipRanges. */ java.util.List getIpRangesList(); /** * * *
     * At least one ip range must match unless none specified. The IP range is
     * defined by CIDR block: for example, `192.0.1.0/24` for a range and
     * `192.0.1.0/32` for a single IP address.
     * 
* * repeated string ip_ranges = 1; * * @return The count of ipRanges. */ int getIpRangesCount(); /** * * *
     * At least one ip range must match unless none specified. The IP range is
     * defined by CIDR block: for example, `192.0.1.0/24` for a range and
     * `192.0.1.0/32` for a single IP address.
     * 
* * repeated string ip_ranges = 1; * * @param index The index of the element to return. * @return The ipRanges at the given index. */ java.lang.String getIpRanges(int index); /** * * *
     * At least one ip range must match unless none specified. The IP range is
     * defined by CIDR block: for example, `192.0.1.0/24` for a range and
     * `192.0.1.0/32` for a single IP address.
     * 
* * repeated string ip_ranges = 1; * * @param index The index of the value to return. * @return The bytes of the ipRanges at the given index. */ com.google.protobuf.ByteString getIpRangesBytes(int index); } /** * * *
   * Security rules for access control. Each field represents one security rule.
   * Only when the source of the input stream satisfies all the fields, this
   * input stream can be accepted.
   * 
* * Protobuf type {@code google.cloud.video.livestream.v1.Input.SecurityRule} */ public static final class SecurityRule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.Input.SecurityRule) SecurityRuleOrBuilder { private static final long serialVersionUID = 0L; // Use SecurityRule.newBuilder() to construct. private SecurityRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SecurityRule() { ipRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SecurityRule(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Input_SecurityRule_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_Input_SecurityRule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.Input.SecurityRule.class, com.google.cloud.video.livestream.v1.Input.SecurityRule.Builder.class); } public static final int IP_RANGES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList ipRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
     * At least one ip range must match unless none specified. The IP range is
     * defined by CIDR block: for example, `192.0.1.0/24` for a range and
     * `192.0.1.0/32` for a single IP address.
     * 
* * repeated string ip_ranges = 1; * * @return A list containing the ipRanges. */ public com.google.protobuf.ProtocolStringList getIpRangesList() { return ipRanges_; } /** * * *
     * At least one ip range must match unless none specified. The IP range is
     * defined by CIDR block: for example, `192.0.1.0/24` for a range and
     * `192.0.1.0/32` for a single IP address.
     * 
* * repeated string ip_ranges = 1; * * @return The count of ipRanges. */ public int getIpRangesCount() { return ipRanges_.size(); } /** * * *
     * At least one ip range must match unless none specified. The IP range is
     * defined by CIDR block: for example, `192.0.1.0/24` for a range and
     * `192.0.1.0/32` for a single IP address.
     * 
* * repeated string ip_ranges = 1; * * @param index The index of the element to return. * @return The ipRanges at the given index. */ public java.lang.String getIpRanges(int index) { return ipRanges_.get(index); } /** * * *
     * At least one ip range must match unless none specified. The IP range is
     * defined by CIDR block: for example, `192.0.1.0/24` for a range and
     * `192.0.1.0/32` for a single IP address.
     * 
* * repeated string ip_ranges = 1; * * @param index The index of the value to return. * @return The bytes of the ipRanges at the given index. */ public com.google.protobuf.ByteString getIpRangesBytes(int index) { return ipRanges_.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 < ipRanges_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ipRanges_.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 < ipRanges_.size(); i++) { dataSize += computeStringSizeNoTag(ipRanges_.getRaw(i)); } size += dataSize; size += 1 * getIpRangesList().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.Input.SecurityRule)) { return super.equals(obj); } com.google.cloud.video.livestream.v1.Input.SecurityRule other = (com.google.cloud.video.livestream.v1.Input.SecurityRule) obj; if (!getIpRangesList().equals(other.getIpRangesList())) 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 (getIpRangesCount() > 0) { hash = (37 * hash) + IP_RANGES_FIELD_NUMBER; hash = (53 * hash) + getIpRangesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.video.livestream.v1.Input.SecurityRule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Input.SecurityRule 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.Input.SecurityRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Input.SecurityRule 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.Input.SecurityRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Input.SecurityRule 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.Input.SecurityRule 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.Input.SecurityRule 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.Input.SecurityRule 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.Input.SecurityRule 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.Input.SecurityRule 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.Input.SecurityRule 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.Input.SecurityRule 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; } /** * * *
     * Security rules for access control. Each field represents one security rule.
     * Only when the source of the input stream satisfies all the fields, this
     * input stream can be accepted.
     * 
* * Protobuf type {@code google.cloud.video.livestream.v1.Input.SecurityRule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.Input.SecurityRule) com.google.cloud.video.livestream.v1.Input.SecurityRuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Input_SecurityRule_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_Input_SecurityRule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.Input.SecurityRule.class, com.google.cloud.video.livestream.v1.Input.SecurityRule.Builder.class); } // Construct using com.google.cloud.video.livestream.v1.Input.SecurityRule.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ipRanges_ = 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_Input_SecurityRule_descriptor; } @java.lang.Override public com.google.cloud.video.livestream.v1.Input.SecurityRule getDefaultInstanceForType() { return com.google.cloud.video.livestream.v1.Input.SecurityRule.getDefaultInstance(); } @java.lang.Override public com.google.cloud.video.livestream.v1.Input.SecurityRule build() { com.google.cloud.video.livestream.v1.Input.SecurityRule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.video.livestream.v1.Input.SecurityRule buildPartial() { com.google.cloud.video.livestream.v1.Input.SecurityRule result = new com.google.cloud.video.livestream.v1.Input.SecurityRule(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.video.livestream.v1.Input.SecurityRule result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { ipRanges_.makeImmutable(); result.ipRanges_ = ipRanges_; } } @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.Input.SecurityRule) { return mergeFrom((com.google.cloud.video.livestream.v1.Input.SecurityRule) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.video.livestream.v1.Input.SecurityRule other) { if (other == com.google.cloud.video.livestream.v1.Input.SecurityRule.getDefaultInstance()) return this; if (!other.ipRanges_.isEmpty()) { if (ipRanges_.isEmpty()) { ipRanges_ = other.ipRanges_; bitField0_ |= 0x00000001; } else { ensureIpRangesIsMutable(); ipRanges_.addAll(other.ipRanges_); } 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(); ensureIpRangesIsMutable(); ipRanges_.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 ipRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureIpRangesIsMutable() { if (!ipRanges_.isModifiable()) { ipRanges_ = new com.google.protobuf.LazyStringArrayList(ipRanges_); } bitField0_ |= 0x00000001; } /** * * *
       * At least one ip range must match unless none specified. The IP range is
       * defined by CIDR block: for example, `192.0.1.0/24` for a range and
       * `192.0.1.0/32` for a single IP address.
       * 
* * repeated string ip_ranges = 1; * * @return A list containing the ipRanges. */ public com.google.protobuf.ProtocolStringList getIpRangesList() { ipRanges_.makeImmutable(); return ipRanges_; } /** * * *
       * At least one ip range must match unless none specified. The IP range is
       * defined by CIDR block: for example, `192.0.1.0/24` for a range and
       * `192.0.1.0/32` for a single IP address.
       * 
* * repeated string ip_ranges = 1; * * @return The count of ipRanges. */ public int getIpRangesCount() { return ipRanges_.size(); } /** * * *
       * At least one ip range must match unless none specified. The IP range is
       * defined by CIDR block: for example, `192.0.1.0/24` for a range and
       * `192.0.1.0/32` for a single IP address.
       * 
* * repeated string ip_ranges = 1; * * @param index The index of the element to return. * @return The ipRanges at the given index. */ public java.lang.String getIpRanges(int index) { return ipRanges_.get(index); } /** * * *
       * At least one ip range must match unless none specified. The IP range is
       * defined by CIDR block: for example, `192.0.1.0/24` for a range and
       * `192.0.1.0/32` for a single IP address.
       * 
* * repeated string ip_ranges = 1; * * @param index The index of the value to return. * @return The bytes of the ipRanges at the given index. */ public com.google.protobuf.ByteString getIpRangesBytes(int index) { return ipRanges_.getByteString(index); } /** * * *
       * At least one ip range must match unless none specified. The IP range is
       * defined by CIDR block: for example, `192.0.1.0/24` for a range and
       * `192.0.1.0/32` for a single IP address.
       * 
* * repeated string ip_ranges = 1; * * @param index The index to set the value at. * @param value The ipRanges to set. * @return This builder for chaining. */ public Builder setIpRanges(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureIpRangesIsMutable(); ipRanges_.set(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * At least one ip range must match unless none specified. The IP range is
       * defined by CIDR block: for example, `192.0.1.0/24` for a range and
       * `192.0.1.0/32` for a single IP address.
       * 
* * repeated string ip_ranges = 1; * * @param value The ipRanges to add. * @return This builder for chaining. */ public Builder addIpRanges(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureIpRangesIsMutable(); ipRanges_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * At least one ip range must match unless none specified. The IP range is
       * defined by CIDR block: for example, `192.0.1.0/24` for a range and
       * `192.0.1.0/32` for a single IP address.
       * 
* * repeated string ip_ranges = 1; * * @param values The ipRanges to add. * @return This builder for chaining. */ public Builder addAllIpRanges(java.lang.Iterable values) { ensureIpRangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipRanges_); bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * At least one ip range must match unless none specified. The IP range is
       * defined by CIDR block: for example, `192.0.1.0/24` for a range and
       * `192.0.1.0/32` for a single IP address.
       * 
* * repeated string ip_ranges = 1; * * @return This builder for chaining. */ public Builder clearIpRanges() { ipRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); ; onChanged(); return this; } /** * * *
       * At least one ip range must match unless none specified. The IP range is
       * defined by CIDR block: for example, `192.0.1.0/24` for a range and
       * `192.0.1.0/32` for a single IP address.
       * 
* * repeated string ip_ranges = 1; * * @param value The bytes of the ipRanges to add. * @return This builder for chaining. */ public Builder addIpRangesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureIpRangesIsMutable(); ipRanges_.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.Input.SecurityRule) } // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.Input.SecurityRule) private static final com.google.cloud.video.livestream.v1.Input.SecurityRule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.Input.SecurityRule(); } public static com.google.cloud.video.livestream.v1.Input.SecurityRule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SecurityRule 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.Input.SecurityRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * The resource name of the input, in the form of:
   * `projects/{project}/locations/{location}/inputs/{inputId}`.
   * 
* * 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 input, in the form of:
   * `projects/{project}/locations/{location}/inputs/{inputId}`.
   * 
* * 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_Input_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 TYPE_FIELD_NUMBER = 5; private int type_ = 0; /** * * *
   * Source type.
   * 
* * .google.cloud.video.livestream.v1.Input.Type type = 5; * * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * * *
   * Source type.
   * 
* * .google.cloud.video.livestream.v1.Input.Type type = 5; * * @return The type. */ @java.lang.Override public com.google.cloud.video.livestream.v1.Input.Type getType() { com.google.cloud.video.livestream.v1.Input.Type result = com.google.cloud.video.livestream.v1.Input.Type.forNumber(type_); return result == null ? com.google.cloud.video.livestream.v1.Input.Type.UNRECOGNIZED : result; } public static final int TIER_FIELD_NUMBER = 14; private int tier_ = 0; /** * * *
   * Tier defines the maximum input specification that is accepted by the
   * video pipeline. The billing is charged based on the tier specified here.
   * See [Pricing](https://cloud.google.com/livestream/pricing) for more detail.
   * The default is `HD`.
   * 
* * .google.cloud.video.livestream.v1.Input.Tier tier = 14; * * @return The enum numeric value on the wire for tier. */ @java.lang.Override public int getTierValue() { return tier_; } /** * * *
   * Tier defines the maximum input specification that is accepted by the
   * video pipeline. The billing is charged based on the tier specified here.
   * See [Pricing](https://cloud.google.com/livestream/pricing) for more detail.
   * The default is `HD`.
   * 
* * .google.cloud.video.livestream.v1.Input.Tier tier = 14; * * @return The tier. */ @java.lang.Override public com.google.cloud.video.livestream.v1.Input.Tier getTier() { com.google.cloud.video.livestream.v1.Input.Tier result = com.google.cloud.video.livestream.v1.Input.Tier.forNumber(tier_); return result == null ? com.google.cloud.video.livestream.v1.Input.Tier.UNRECOGNIZED : result; } public static final int URI_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** * * *
   * Output only. URI to push the input stream to.
   * Its format depends on the input
   * [type][google.cloud.video.livestream.v1.Input.type], for example:
   *
   * *  `RTMP_PUSH`: `rtmp://1.2.3.4/live/{STREAM-ID}`
   * *  `SRT_PUSH`: `srt://1.2.3.4:4201?streamid={STREAM-ID}`
   * 
* * string uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The uri. */ @java.lang.Override public java.lang.String getUri() { java.lang.Object ref = uri_; 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(); uri_ = s; return s; } } /** * * *
   * Output only. URI to push the input stream to.
   * Its format depends on the input
   * [type][google.cloud.video.livestream.v1.Input.type], for example:
   *
   * *  `RTMP_PUSH`: `rtmp://1.2.3.4/live/{STREAM-ID}`
   * *  `SRT_PUSH`: `srt://1.2.3.4:4201?streamid={STREAM-ID}`
   * 
* * string uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for uri. */ @java.lang.Override public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PREPROCESSING_CONFIG_FIELD_NUMBER = 9; private com.google.cloud.video.livestream.v1.PreprocessingConfig preprocessingConfig_; /** * * *
   * Preprocessing configurations.
   * 
* * .google.cloud.video.livestream.v1.PreprocessingConfig preprocessing_config = 9; * * @return Whether the preprocessingConfig field is set. */ @java.lang.Override public boolean hasPreprocessingConfig() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * Preprocessing configurations.
   * 
* * .google.cloud.video.livestream.v1.PreprocessingConfig preprocessing_config = 9; * * @return The preprocessingConfig. */ @java.lang.Override public com.google.cloud.video.livestream.v1.PreprocessingConfig getPreprocessingConfig() { return preprocessingConfig_ == null ? com.google.cloud.video.livestream.v1.PreprocessingConfig.getDefaultInstance() : preprocessingConfig_; } /** * * *
   * Preprocessing configurations.
   * 
* * .google.cloud.video.livestream.v1.PreprocessingConfig preprocessing_config = 9; */ @java.lang.Override public com.google.cloud.video.livestream.v1.PreprocessingConfigOrBuilder getPreprocessingConfigOrBuilder() { return preprocessingConfig_ == null ? com.google.cloud.video.livestream.v1.PreprocessingConfig.getDefaultInstance() : preprocessingConfig_; } public static final int SECURITY_RULES_FIELD_NUMBER = 12; private com.google.cloud.video.livestream.v1.Input.SecurityRule securityRules_; /** * * *
   * Security rule for access control.
   * 
* * .google.cloud.video.livestream.v1.Input.SecurityRule security_rules = 12; * * @return Whether the securityRules field is set. */ @java.lang.Override public boolean hasSecurityRules() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * Security rule for access control.
   * 
* * .google.cloud.video.livestream.v1.Input.SecurityRule security_rules = 12; * * @return The securityRules. */ @java.lang.Override public com.google.cloud.video.livestream.v1.Input.SecurityRule getSecurityRules() { return securityRules_ == null ? com.google.cloud.video.livestream.v1.Input.SecurityRule.getDefaultInstance() : securityRules_; } /** * * *
   * Security rule for access control.
   * 
* * .google.cloud.video.livestream.v1.Input.SecurityRule security_rules = 12; */ @java.lang.Override public com.google.cloud.video.livestream.v1.Input.SecurityRuleOrBuilder getSecurityRulesOrBuilder() { return securityRules_ == null ? com.google.cloud.video.livestream.v1.Input.SecurityRule.getDefaultInstance() : securityRules_; } public static final int INPUT_STREAM_PROPERTY_FIELD_NUMBER = 15; private com.google.cloud.video.livestream.v1.InputStreamProperty inputStreamProperty_; /** * * *
   * Output only. The information for the input stream. This field will be
   * present only when this input receives the input stream.
   * 
* * * .google.cloud.video.livestream.v1.InputStreamProperty input_stream_property = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the inputStreamProperty field is set. */ @java.lang.Override public boolean hasInputStreamProperty() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
   * Output only. The information for the input stream. This field will be
   * present only when this input receives the input stream.
   * 
* * * .google.cloud.video.livestream.v1.InputStreamProperty input_stream_property = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The inputStreamProperty. */ @java.lang.Override public com.google.cloud.video.livestream.v1.InputStreamProperty getInputStreamProperty() { return inputStreamProperty_ == null ? com.google.cloud.video.livestream.v1.InputStreamProperty.getDefaultInstance() : inputStreamProperty_; } /** * * *
   * Output only. The information for the input stream. This field will be
   * present only when this input receives the input stream.
   * 
* * * .google.cloud.video.livestream.v1.InputStreamProperty input_stream_property = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.cloud.video.livestream.v1.InputStreamPropertyOrBuilder getInputStreamPropertyOrBuilder() { return inputStreamProperty_ == null ? com.google.cloud.video.livestream.v1.InputStreamProperty.getDefaultInstance() : inputStreamProperty_; } 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 (type_ != com.google.cloud.video.livestream.v1.Input.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(5, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, uri_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(9, getPreprocessingConfig()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(12, getSecurityRules()); } if (tier_ != com.google.cloud.video.livestream.v1.Input.Tier.TIER_UNSPECIFIED.getNumber()) { output.writeEnum(14, tier_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(15, getInputStreamProperty()); } 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 (type_ != com.google.cloud.video.livestream.v1.Input.Type.TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, uri_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getPreprocessingConfig()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getSecurityRules()); } if (tier_ != com.google.cloud.video.livestream.v1.Input.Tier.TIER_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, tier_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getInputStreamProperty()); } 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.Input)) { return super.equals(obj); } com.google.cloud.video.livestream.v1.Input other = (com.google.cloud.video.livestream.v1.Input) 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 (type_ != other.type_) return false; if (tier_ != other.tier_) return false; if (!getUri().equals(other.getUri())) return false; if (hasPreprocessingConfig() != other.hasPreprocessingConfig()) return false; if (hasPreprocessingConfig()) { if (!getPreprocessingConfig().equals(other.getPreprocessingConfig())) return false; } if (hasSecurityRules() != other.hasSecurityRules()) return false; if (hasSecurityRules()) { if (!getSecurityRules().equals(other.getSecurityRules())) return false; } if (hasInputStreamProperty() != other.hasInputStreamProperty()) return false; if (hasInputStreamProperty()) { if (!getInputStreamProperty().equals(other.getInputStreamProperty())) 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) + 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) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + TIER_FIELD_NUMBER; hash = (53 * hash) + tier_; hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); if (hasPreprocessingConfig()) { hash = (37 * hash) + PREPROCESSING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getPreprocessingConfig().hashCode(); } if (hasSecurityRules()) { hash = (37 * hash) + SECURITY_RULES_FIELD_NUMBER; hash = (53 * hash) + getSecurityRules().hashCode(); } if (hasInputStreamProperty()) { hash = (37 * hash) + INPUT_STREAM_PROPERTY_FIELD_NUMBER; hash = (53 * hash) + getInputStreamProperty().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.video.livestream.v1.Input parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Input 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.Input parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Input 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.Input parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Input 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.Input 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.Input 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.Input 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.Input 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.Input 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.Input 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.Input 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; } /** * * *
   * Input resource represents the endpoint from which the channel ingests
   * the input stream.
   * 
* * Protobuf type {@code google.cloud.video.livestream.v1.Input} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.Input) com.google.cloud.video.livestream.v1.InputOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Input_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_Input_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.Input.class, com.google.cloud.video.livestream.v1.Input.Builder.class); } // Construct using com.google.cloud.video.livestream.v1.Input.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(); getPreprocessingConfigFieldBuilder(); getSecurityRulesFieldBuilder(); getInputStreamPropertyFieldBuilder(); } } @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(); type_ = 0; tier_ = 0; uri_ = ""; preprocessingConfig_ = null; if (preprocessingConfigBuilder_ != null) { preprocessingConfigBuilder_.dispose(); preprocessingConfigBuilder_ = null; } securityRules_ = null; if (securityRulesBuilder_ != null) { securityRulesBuilder_.dispose(); securityRulesBuilder_ = null; } inputStreamProperty_ = null; if (inputStreamPropertyBuilder_ != null) { inputStreamPropertyBuilder_.dispose(); inputStreamPropertyBuilder_ = 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_Input_descriptor; } @java.lang.Override public com.google.cloud.video.livestream.v1.Input getDefaultInstanceForType() { return com.google.cloud.video.livestream.v1.Input.getDefaultInstance(); } @java.lang.Override public com.google.cloud.video.livestream.v1.Input build() { com.google.cloud.video.livestream.v1.Input result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.video.livestream.v1.Input buildPartial() { com.google.cloud.video.livestream.v1.Input result = new com.google.cloud.video.livestream.v1.Input(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.video.livestream.v1.Input 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_ & 0x00000010) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.tier_ = tier_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.uri_ = uri_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.preprocessingConfig_ = preprocessingConfigBuilder_ == null ? preprocessingConfig_ : preprocessingConfigBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000100) != 0)) { result.securityRules_ = securityRulesBuilder_ == null ? securityRules_ : securityRulesBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000200) != 0)) { result.inputStreamProperty_ = inputStreamPropertyBuilder_ == null ? inputStreamProperty_ : inputStreamPropertyBuilder_.build(); to_bitField0_ |= 0x00000010; } 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.Input) { return mergeFrom((com.google.cloud.video.livestream.v1.Input) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.video.livestream.v1.Input other) { if (other == com.google.cloud.video.livestream.v1.Input.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.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.tier_ != 0) { setTierValue(other.getTierValue()); } if (!other.getUri().isEmpty()) { uri_ = other.uri_; bitField0_ |= 0x00000040; onChanged(); } if (other.hasPreprocessingConfig()) { mergePreprocessingConfig(other.getPreprocessingConfig()); } if (other.hasSecurityRules()) { mergeSecurityRules(other.getSecurityRules()); } if (other.hasInputStreamProperty()) { mergeInputStreamProperty(other.getInputStreamProperty()); } 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 40: { type_ = input.readEnum(); bitField0_ |= 0x00000010; break; } // case 40 case 50: { uri_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 50 case 74: { input.readMessage( getPreprocessingConfigFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 74 case 98: { input.readMessage(getSecurityRulesFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 98 case 112: { tier_ = input.readEnum(); bitField0_ |= 0x00000020; break; } // case 112 case 122: { input.readMessage( getInputStreamPropertyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 122 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 name_ = ""; /** * * *
     * The resource name of the input, in the form of:
     * `projects/{project}/locations/{location}/inputs/{inputId}`.
     * 
* * 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 input, in the form of:
     * `projects/{project}/locations/{location}/inputs/{inputId}`.
     * 
* * 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 input, in the form of:
     * `projects/{project}/locations/{location}/inputs/{inputId}`.
     * 
* * 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 input, in the form of:
     * `projects/{project}/locations/{location}/inputs/{inputId}`.
     * 
* * 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 input, in the form of:
     * `projects/{project}/locations/{location}/inputs/{inputId}`.
     * 
* * 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 int type_ = 0; /** * * *
     * Source type.
     * 
* * .google.cloud.video.livestream.v1.Input.Type type = 5; * * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * * *
     * Source type.
     * 
* * .google.cloud.video.livestream.v1.Input.Type type = 5; * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Source type.
     * 
* * .google.cloud.video.livestream.v1.Input.Type type = 5; * * @return The type. */ @java.lang.Override public com.google.cloud.video.livestream.v1.Input.Type getType() { com.google.cloud.video.livestream.v1.Input.Type result = com.google.cloud.video.livestream.v1.Input.Type.forNumber(type_); return result == null ? com.google.cloud.video.livestream.v1.Input.Type.UNRECOGNIZED : result; } /** * * *
     * Source type.
     * 
* * .google.cloud.video.livestream.v1.Input.Type type = 5; * * @param value The type to set. * @return This builder for chaining. */ public Builder setType(com.google.cloud.video.livestream.v1.Input.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; type_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Source type.
     * 
* * .google.cloud.video.livestream.v1.Input.Type type = 5; * * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000010); type_ = 0; onChanged(); return this; } private int tier_ = 0; /** * * *
     * Tier defines the maximum input specification that is accepted by the
     * video pipeline. The billing is charged based on the tier specified here.
     * See [Pricing](https://cloud.google.com/livestream/pricing) for more detail.
     * The default is `HD`.
     * 
* * .google.cloud.video.livestream.v1.Input.Tier tier = 14; * * @return The enum numeric value on the wire for tier. */ @java.lang.Override public int getTierValue() { return tier_; } /** * * *
     * Tier defines the maximum input specification that is accepted by the
     * video pipeline. The billing is charged based on the tier specified here.
     * See [Pricing](https://cloud.google.com/livestream/pricing) for more detail.
     * The default is `HD`.
     * 
* * .google.cloud.video.livestream.v1.Input.Tier tier = 14; * * @param value The enum numeric value on the wire for tier to set. * @return This builder for chaining. */ public Builder setTierValue(int value) { tier_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Tier defines the maximum input specification that is accepted by the
     * video pipeline. The billing is charged based on the tier specified here.
     * See [Pricing](https://cloud.google.com/livestream/pricing) for more detail.
     * The default is `HD`.
     * 
* * .google.cloud.video.livestream.v1.Input.Tier tier = 14; * * @return The tier. */ @java.lang.Override public com.google.cloud.video.livestream.v1.Input.Tier getTier() { com.google.cloud.video.livestream.v1.Input.Tier result = com.google.cloud.video.livestream.v1.Input.Tier.forNumber(tier_); return result == null ? com.google.cloud.video.livestream.v1.Input.Tier.UNRECOGNIZED : result; } /** * * *
     * Tier defines the maximum input specification that is accepted by the
     * video pipeline. The billing is charged based on the tier specified here.
     * See [Pricing](https://cloud.google.com/livestream/pricing) for more detail.
     * The default is `HD`.
     * 
* * .google.cloud.video.livestream.v1.Input.Tier tier = 14; * * @param value The tier to set. * @return This builder for chaining. */ public Builder setTier(com.google.cloud.video.livestream.v1.Input.Tier value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; tier_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Tier defines the maximum input specification that is accepted by the
     * video pipeline. The billing is charged based on the tier specified here.
     * See [Pricing](https://cloud.google.com/livestream/pricing) for more detail.
     * The default is `HD`.
     * 
* * .google.cloud.video.livestream.v1.Input.Tier tier = 14; * * @return This builder for chaining. */ public Builder clearTier() { bitField0_ = (bitField0_ & ~0x00000020); tier_ = 0; onChanged(); return this; } private java.lang.Object uri_ = ""; /** * * *
     * Output only. URI to push the input stream to.
     * Its format depends on the input
     * [type][google.cloud.video.livestream.v1.Input.type], for example:
     *
     * *  `RTMP_PUSH`: `rtmp://1.2.3.4/live/{STREAM-ID}`
     * *  `SRT_PUSH`: `srt://1.2.3.4:4201?streamid={STREAM-ID}`
     * 
* * string uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. URI to push the input stream to.
     * Its format depends on the input
     * [type][google.cloud.video.livestream.v1.Input.type], for example:
     *
     * *  `RTMP_PUSH`: `rtmp://1.2.3.4/live/{STREAM-ID}`
     * *  `SRT_PUSH`: `srt://1.2.3.4:4201?streamid={STREAM-ID}`
     * 
* * string uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for uri. */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. URI to push the input stream to.
     * Its format depends on the input
     * [type][google.cloud.video.livestream.v1.Input.type], for example:
     *
     * *  `RTMP_PUSH`: `rtmp://1.2.3.4/live/{STREAM-ID}`
     * *  `SRT_PUSH`: `srt://1.2.3.4:4201?streamid={STREAM-ID}`
     * 
* * string uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The uri to set. * @return This builder for chaining. */ public Builder setUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } uri_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Output only. URI to push the input stream to.
     * Its format depends on the input
     * [type][google.cloud.video.livestream.v1.Input.type], for example:
     *
     * *  `RTMP_PUSH`: `rtmp://1.2.3.4/live/{STREAM-ID}`
     * *  `SRT_PUSH`: `srt://1.2.3.4:4201?streamid={STREAM-ID}`
     * 
* * string uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearUri() { uri_ = getDefaultInstance().getUri(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
     * Output only. URI to push the input stream to.
     * Its format depends on the input
     * [type][google.cloud.video.livestream.v1.Input.type], for example:
     *
     * *  `RTMP_PUSH`: `rtmp://1.2.3.4/live/{STREAM-ID}`
     * *  `SRT_PUSH`: `srt://1.2.3.4:4201?streamid={STREAM-ID}`
     * 
* * string uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for uri to set. * @return This builder for chaining. */ public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private com.google.cloud.video.livestream.v1.PreprocessingConfig preprocessingConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.PreprocessingConfig, com.google.cloud.video.livestream.v1.PreprocessingConfig.Builder, com.google.cloud.video.livestream.v1.PreprocessingConfigOrBuilder> preprocessingConfigBuilder_; /** * * *
     * Preprocessing configurations.
     * 
* * .google.cloud.video.livestream.v1.PreprocessingConfig preprocessing_config = 9; * * @return Whether the preprocessingConfig field is set. */ public boolean hasPreprocessingConfig() { return ((bitField0_ & 0x00000080) != 0); } /** * * *
     * Preprocessing configurations.
     * 
* * .google.cloud.video.livestream.v1.PreprocessingConfig preprocessing_config = 9; * * @return The preprocessingConfig. */ public com.google.cloud.video.livestream.v1.PreprocessingConfig getPreprocessingConfig() { if (preprocessingConfigBuilder_ == null) { return preprocessingConfig_ == null ? com.google.cloud.video.livestream.v1.PreprocessingConfig.getDefaultInstance() : preprocessingConfig_; } else { return preprocessingConfigBuilder_.getMessage(); } } /** * * *
     * Preprocessing configurations.
     * 
* * .google.cloud.video.livestream.v1.PreprocessingConfig preprocessing_config = 9; */ public Builder setPreprocessingConfig( com.google.cloud.video.livestream.v1.PreprocessingConfig value) { if (preprocessingConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } preprocessingConfig_ = value; } else { preprocessingConfigBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * Preprocessing configurations.
     * 
* * .google.cloud.video.livestream.v1.PreprocessingConfig preprocessing_config = 9; */ public Builder setPreprocessingConfig( com.google.cloud.video.livestream.v1.PreprocessingConfig.Builder builderForValue) { if (preprocessingConfigBuilder_ == null) { preprocessingConfig_ = builderForValue.build(); } else { preprocessingConfigBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * Preprocessing configurations.
     * 
* * .google.cloud.video.livestream.v1.PreprocessingConfig preprocessing_config = 9; */ public Builder mergePreprocessingConfig( com.google.cloud.video.livestream.v1.PreprocessingConfig value) { if (preprocessingConfigBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && preprocessingConfig_ != null && preprocessingConfig_ != com.google.cloud.video.livestream.v1.PreprocessingConfig.getDefaultInstance()) { getPreprocessingConfigBuilder().mergeFrom(value); } else { preprocessingConfig_ = value; } } else { preprocessingConfigBuilder_.mergeFrom(value); } if (preprocessingConfig_ != null) { bitField0_ |= 0x00000080; onChanged(); } return this; } /** * * *
     * Preprocessing configurations.
     * 
* * .google.cloud.video.livestream.v1.PreprocessingConfig preprocessing_config = 9; */ public Builder clearPreprocessingConfig() { bitField0_ = (bitField0_ & ~0x00000080); preprocessingConfig_ = null; if (preprocessingConfigBuilder_ != null) { preprocessingConfigBuilder_.dispose(); preprocessingConfigBuilder_ = null; } onChanged(); return this; } /** * * *
     * Preprocessing configurations.
     * 
* * .google.cloud.video.livestream.v1.PreprocessingConfig preprocessing_config = 9; */ public com.google.cloud.video.livestream.v1.PreprocessingConfig.Builder getPreprocessingConfigBuilder() { bitField0_ |= 0x00000080; onChanged(); return getPreprocessingConfigFieldBuilder().getBuilder(); } /** * * *
     * Preprocessing configurations.
     * 
* * .google.cloud.video.livestream.v1.PreprocessingConfig preprocessing_config = 9; */ public com.google.cloud.video.livestream.v1.PreprocessingConfigOrBuilder getPreprocessingConfigOrBuilder() { if (preprocessingConfigBuilder_ != null) { return preprocessingConfigBuilder_.getMessageOrBuilder(); } else { return preprocessingConfig_ == null ? com.google.cloud.video.livestream.v1.PreprocessingConfig.getDefaultInstance() : preprocessingConfig_; } } /** * * *
     * Preprocessing configurations.
     * 
* * .google.cloud.video.livestream.v1.PreprocessingConfig preprocessing_config = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.PreprocessingConfig, com.google.cloud.video.livestream.v1.PreprocessingConfig.Builder, com.google.cloud.video.livestream.v1.PreprocessingConfigOrBuilder> getPreprocessingConfigFieldBuilder() { if (preprocessingConfigBuilder_ == null) { preprocessingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.PreprocessingConfig, com.google.cloud.video.livestream.v1.PreprocessingConfig.Builder, com.google.cloud.video.livestream.v1.PreprocessingConfigOrBuilder>( getPreprocessingConfig(), getParentForChildren(), isClean()); preprocessingConfig_ = null; } return preprocessingConfigBuilder_; } private com.google.cloud.video.livestream.v1.Input.SecurityRule securityRules_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.Input.SecurityRule, com.google.cloud.video.livestream.v1.Input.SecurityRule.Builder, com.google.cloud.video.livestream.v1.Input.SecurityRuleOrBuilder> securityRulesBuilder_; /** * * *
     * Security rule for access control.
     * 
* * .google.cloud.video.livestream.v1.Input.SecurityRule security_rules = 12; * * @return Whether the securityRules field is set. */ public boolean hasSecurityRules() { return ((bitField0_ & 0x00000100) != 0); } /** * * *
     * Security rule for access control.
     * 
* * .google.cloud.video.livestream.v1.Input.SecurityRule security_rules = 12; * * @return The securityRules. */ public com.google.cloud.video.livestream.v1.Input.SecurityRule getSecurityRules() { if (securityRulesBuilder_ == null) { return securityRules_ == null ? com.google.cloud.video.livestream.v1.Input.SecurityRule.getDefaultInstance() : securityRules_; } else { return securityRulesBuilder_.getMessage(); } } /** * * *
     * Security rule for access control.
     * 
* * .google.cloud.video.livestream.v1.Input.SecurityRule security_rules = 12; */ public Builder setSecurityRules(com.google.cloud.video.livestream.v1.Input.SecurityRule value) { if (securityRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } securityRules_ = value; } else { securityRulesBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * Security rule for access control.
     * 
* * .google.cloud.video.livestream.v1.Input.SecurityRule security_rules = 12; */ public Builder setSecurityRules( com.google.cloud.video.livestream.v1.Input.SecurityRule.Builder builderForValue) { if (securityRulesBuilder_ == null) { securityRules_ = builderForValue.build(); } else { securityRulesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * Security rule for access control.
     * 
* * .google.cloud.video.livestream.v1.Input.SecurityRule security_rules = 12; */ public Builder mergeSecurityRules( com.google.cloud.video.livestream.v1.Input.SecurityRule value) { if (securityRulesBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && securityRules_ != null && securityRules_ != com.google.cloud.video.livestream.v1.Input.SecurityRule.getDefaultInstance()) { getSecurityRulesBuilder().mergeFrom(value); } else { securityRules_ = value; } } else { securityRulesBuilder_.mergeFrom(value); } if (securityRules_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** * * *
     * Security rule for access control.
     * 
* * .google.cloud.video.livestream.v1.Input.SecurityRule security_rules = 12; */ public Builder clearSecurityRules() { bitField0_ = (bitField0_ & ~0x00000100); securityRules_ = null; if (securityRulesBuilder_ != null) { securityRulesBuilder_.dispose(); securityRulesBuilder_ = null; } onChanged(); return this; } /** * * *
     * Security rule for access control.
     * 
* * .google.cloud.video.livestream.v1.Input.SecurityRule security_rules = 12; */ public com.google.cloud.video.livestream.v1.Input.SecurityRule.Builder getSecurityRulesBuilder() { bitField0_ |= 0x00000100; onChanged(); return getSecurityRulesFieldBuilder().getBuilder(); } /** * * *
     * Security rule for access control.
     * 
* * .google.cloud.video.livestream.v1.Input.SecurityRule security_rules = 12; */ public com.google.cloud.video.livestream.v1.Input.SecurityRuleOrBuilder getSecurityRulesOrBuilder() { if (securityRulesBuilder_ != null) { return securityRulesBuilder_.getMessageOrBuilder(); } else { return securityRules_ == null ? com.google.cloud.video.livestream.v1.Input.SecurityRule.getDefaultInstance() : securityRules_; } } /** * * *
     * Security rule for access control.
     * 
* * .google.cloud.video.livestream.v1.Input.SecurityRule security_rules = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.Input.SecurityRule, com.google.cloud.video.livestream.v1.Input.SecurityRule.Builder, com.google.cloud.video.livestream.v1.Input.SecurityRuleOrBuilder> getSecurityRulesFieldBuilder() { if (securityRulesBuilder_ == null) { securityRulesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.Input.SecurityRule, com.google.cloud.video.livestream.v1.Input.SecurityRule.Builder, com.google.cloud.video.livestream.v1.Input.SecurityRuleOrBuilder>( getSecurityRules(), getParentForChildren(), isClean()); securityRules_ = null; } return securityRulesBuilder_; } private com.google.cloud.video.livestream.v1.InputStreamProperty inputStreamProperty_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.InputStreamProperty, com.google.cloud.video.livestream.v1.InputStreamProperty.Builder, com.google.cloud.video.livestream.v1.InputStreamPropertyOrBuilder> inputStreamPropertyBuilder_; /** * * *
     * Output only. The information for the input stream. This field will be
     * present only when this input receives the input stream.
     * 
* * * .google.cloud.video.livestream.v1.InputStreamProperty input_stream_property = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the inputStreamProperty field is set. */ public boolean hasInputStreamProperty() { return ((bitField0_ & 0x00000200) != 0); } /** * * *
     * Output only. The information for the input stream. This field will be
     * present only when this input receives the input stream.
     * 
* * * .google.cloud.video.livestream.v1.InputStreamProperty input_stream_property = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The inputStreamProperty. */ public com.google.cloud.video.livestream.v1.InputStreamProperty getInputStreamProperty() { if (inputStreamPropertyBuilder_ == null) { return inputStreamProperty_ == null ? com.google.cloud.video.livestream.v1.InputStreamProperty.getDefaultInstance() : inputStreamProperty_; } else { return inputStreamPropertyBuilder_.getMessage(); } } /** * * *
     * Output only. The information for the input stream. This field will be
     * present only when this input receives the input stream.
     * 
* * * .google.cloud.video.livestream.v1.InputStreamProperty input_stream_property = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setInputStreamProperty( com.google.cloud.video.livestream.v1.InputStreamProperty value) { if (inputStreamPropertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } inputStreamProperty_ = value; } else { inputStreamPropertyBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Output only. The information for the input stream. This field will be
     * present only when this input receives the input stream.
     * 
* * * .google.cloud.video.livestream.v1.InputStreamProperty input_stream_property = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setInputStreamProperty( com.google.cloud.video.livestream.v1.InputStreamProperty.Builder builderForValue) { if (inputStreamPropertyBuilder_ == null) { inputStreamProperty_ = builderForValue.build(); } else { inputStreamPropertyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Output only. The information for the input stream. This field will be
     * present only when this input receives the input stream.
     * 
* * * .google.cloud.video.livestream.v1.InputStreamProperty input_stream_property = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeInputStreamProperty( com.google.cloud.video.livestream.v1.InputStreamProperty value) { if (inputStreamPropertyBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && inputStreamProperty_ != null && inputStreamProperty_ != com.google.cloud.video.livestream.v1.InputStreamProperty.getDefaultInstance()) { getInputStreamPropertyBuilder().mergeFrom(value); } else { inputStreamProperty_ = value; } } else { inputStreamPropertyBuilder_.mergeFrom(value); } if (inputStreamProperty_ != null) { bitField0_ |= 0x00000200; onChanged(); } return this; } /** * * *
     * Output only. The information for the input stream. This field will be
     * present only when this input receives the input stream.
     * 
* * * .google.cloud.video.livestream.v1.InputStreamProperty input_stream_property = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearInputStreamProperty() { bitField0_ = (bitField0_ & ~0x00000200); inputStreamProperty_ = null; if (inputStreamPropertyBuilder_ != null) { inputStreamPropertyBuilder_.dispose(); inputStreamPropertyBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. The information for the input stream. This field will be
     * present only when this input receives the input stream.
     * 
* * * .google.cloud.video.livestream.v1.InputStreamProperty input_stream_property = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.video.livestream.v1.InputStreamProperty.Builder getInputStreamPropertyBuilder() { bitField0_ |= 0x00000200; onChanged(); return getInputStreamPropertyFieldBuilder().getBuilder(); } /** * * *
     * Output only. The information for the input stream. This field will be
     * present only when this input receives the input stream.
     * 
* * * .google.cloud.video.livestream.v1.InputStreamProperty input_stream_property = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.video.livestream.v1.InputStreamPropertyOrBuilder getInputStreamPropertyOrBuilder() { if (inputStreamPropertyBuilder_ != null) { return inputStreamPropertyBuilder_.getMessageOrBuilder(); } else { return inputStreamProperty_ == null ? com.google.cloud.video.livestream.v1.InputStreamProperty.getDefaultInstance() : inputStreamProperty_; } } /** * * *
     * Output only. The information for the input stream. This field will be
     * present only when this input receives the input stream.
     * 
* * * .google.cloud.video.livestream.v1.InputStreamProperty input_stream_property = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.InputStreamProperty, com.google.cloud.video.livestream.v1.InputStreamProperty.Builder, com.google.cloud.video.livestream.v1.InputStreamPropertyOrBuilder> getInputStreamPropertyFieldBuilder() { if (inputStreamPropertyBuilder_ == null) { inputStreamPropertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.InputStreamProperty, com.google.cloud.video.livestream.v1.InputStreamProperty.Builder, com.google.cloud.video.livestream.v1.InputStreamPropertyOrBuilder>( getInputStreamProperty(), getParentForChildren(), isClean()); inputStreamProperty_ = null; } return inputStreamPropertyBuilder_; } @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.Input) } // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.Input) private static final com.google.cloud.video.livestream.v1.Input DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.Input(); } public static com.google.cloud.video.livestream.v1.Input getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Input 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.Input getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy