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

com.google.cloud.backupdr.v1.AccessConfig Maven / Gradle / Ivy

There is a newer version: 0.8.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/backupdr/v1/backupvault_gce.proto

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

/**
 *
 *
 * 
 * An access configuration attached to an instance's network interface.
 * Only one access config per instance is supported.
 * 
* * Protobuf type {@code google.cloud.backupdr.v1.AccessConfig} */ public final class AccessConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.AccessConfig) AccessConfigOrBuilder { private static final long serialVersionUID = 0L; // Use AccessConfig.newBuilder() to construct. private AccessConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AccessConfig() { type_ = 0; name_ = ""; externalIp_ = ""; externalIpv6_ = ""; publicPtrDomainName_ = ""; networkTier_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AccessConfig(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.backupdr.v1.BackupvaultGceProto .internal_static_google_cloud_backupdr_v1_AccessConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.backupdr.v1.BackupvaultGceProto .internal_static_google_cloud_backupdr_v1_AccessConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.backupdr.v1.AccessConfig.class, com.google.cloud.backupdr.v1.AccessConfig.Builder.class); } /** * * *
   * The type of configuration.
   * 
* * Protobuf enum {@code google.cloud.backupdr.v1.AccessConfig.AccessType} */ public enum AccessType implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Default value. This value is unused.
     * 
* * ACCESS_TYPE_UNSPECIFIED = 0; */ ACCESS_TYPE_UNSPECIFIED(0), /** * * *
     * ONE_TO_ONE_NAT
     * 
* * ONE_TO_ONE_NAT = 1; */ ONE_TO_ONE_NAT(1), /** * * *
     * Direct IPv6 access.
     * 
* * DIRECT_IPV6 = 2; */ DIRECT_IPV6(2), UNRECOGNIZED(-1), ; /** * * *
     * Default value. This value is unused.
     * 
* * ACCESS_TYPE_UNSPECIFIED = 0; */ public static final int ACCESS_TYPE_UNSPECIFIED_VALUE = 0; /** * * *
     * ONE_TO_ONE_NAT
     * 
* * ONE_TO_ONE_NAT = 1; */ public static final int ONE_TO_ONE_NAT_VALUE = 1; /** * * *
     * Direct IPv6 access.
     * 
* * DIRECT_IPV6 = 2; */ public static final int DIRECT_IPV6_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 AccessType 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 AccessType forNumber(int value) { switch (value) { case 0: return ACCESS_TYPE_UNSPECIFIED; case 1: return ONE_TO_ONE_NAT; case 2: return DIRECT_IPV6; 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 AccessType findValueByNumber(int number) { return AccessType.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.backupdr.v1.AccessConfig.getDescriptor().getEnumTypes().get(0); } private static final AccessType[] VALUES = values(); public static AccessType 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 AccessType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.backupdr.v1.AccessConfig.AccessType) } /** * * *
   * Network tier property used by addresses, instances and forwarding rules.
   * 
* * Protobuf enum {@code google.cloud.backupdr.v1.AccessConfig.NetworkTier} */ public enum NetworkTier implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Default value. This value is unused.
     * 
* * NETWORK_TIER_UNSPECIFIED = 0; */ NETWORK_TIER_UNSPECIFIED(0), /** * * *
     * High quality, Google-grade network tier, support for all networking
     * products.
     * 
* * PREMIUM = 1; */ PREMIUM(1), /** * * *
     * Public internet quality, only limited support for other networking
     * products.
     * 
* * STANDARD = 2; */ STANDARD(2), UNRECOGNIZED(-1), ; /** * * *
     * Default value. This value is unused.
     * 
* * NETWORK_TIER_UNSPECIFIED = 0; */ public static final int NETWORK_TIER_UNSPECIFIED_VALUE = 0; /** * * *
     * High quality, Google-grade network tier, support for all networking
     * products.
     * 
* * PREMIUM = 1; */ public static final int PREMIUM_VALUE = 1; /** * * *
     * Public internet quality, only limited support for other networking
     * products.
     * 
* * STANDARD = 2; */ public static final int STANDARD_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 NetworkTier 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 NetworkTier forNumber(int value) { switch (value) { case 0: return NETWORK_TIER_UNSPECIFIED; case 1: return PREMIUM; case 2: return STANDARD; 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 NetworkTier findValueByNumber(int number) { return NetworkTier.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.backupdr.v1.AccessConfig.getDescriptor().getEnumTypes().get(1); } private static final NetworkTier[] VALUES = values(); public static NetworkTier 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 NetworkTier(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.backupdr.v1.AccessConfig.NetworkTier) } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_ = 0; /** * * *
   * Optional. In accessConfigs (IPv4), the
   *  default and only option is ONE_TO_ONE_NAT. In
   *  ipv6AccessConfigs, the default and only option is
   *  DIRECT_IPV6.
   * 
* * * optional .google.cloud.backupdr.v1.AccessConfig.AccessType type = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Optional. In accessConfigs (IPv4), the
   *  default and only option is ONE_TO_ONE_NAT. In
   *  ipv6AccessConfigs, the default and only option is
   *  DIRECT_IPV6.
   * 
* * * optional .google.cloud.backupdr.v1.AccessConfig.AccessType type = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * * *
   * Optional. In accessConfigs (IPv4), the
   *  default and only option is ONE_TO_ONE_NAT. In
   *  ipv6AccessConfigs, the default and only option is
   *  DIRECT_IPV6.
   * 
* * * optional .google.cloud.backupdr.v1.AccessConfig.AccessType type = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The type. */ @java.lang.Override public com.google.cloud.backupdr.v1.AccessConfig.AccessType getType() { com.google.cloud.backupdr.v1.AccessConfig.AccessType result = com.google.cloud.backupdr.v1.AccessConfig.AccessType.forNumber(type_); return result == null ? com.google.cloud.backupdr.v1.AccessConfig.AccessType.UNRECOGNIZED : result; } public static final int NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * Optional. The name of this access configuration.
   * 
* * optional string name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * Optional. The name of this access configuration.
   * 
* * optional string name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @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; } } /** * * *
   * Optional. The name of this access configuration.
   * 
* * optional string name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @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 EXTERNAL_IP_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object externalIp_ = ""; /** * * *
   * Optional. The external IP address of this access configuration.
   * 
* * optional string external_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the externalIp field is set. */ @java.lang.Override public boolean hasExternalIp() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * Optional. The external IP address of this access configuration.
   * 
* * optional string external_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The externalIp. */ @java.lang.Override public java.lang.String getExternalIp() { java.lang.Object ref = externalIp_; 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(); externalIp_ = s; return s; } } /** * * *
   * Optional. The external IP address of this access configuration.
   * 
* * optional string external_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for externalIp. */ @java.lang.Override public com.google.protobuf.ByteString getExternalIpBytes() { java.lang.Object ref = externalIp_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalIp_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EXTERNAL_IPV6_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object externalIpv6_ = ""; /** * * *
   * Optional. The external IPv6 address of this access configuration.
   * 
* * optional string external_ipv6 = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the externalIpv6 field is set. */ @java.lang.Override public boolean hasExternalIpv6() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * Optional. The external IPv6 address of this access configuration.
   * 
* * optional string external_ipv6 = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The externalIpv6. */ @java.lang.Override public java.lang.String getExternalIpv6() { java.lang.Object ref = externalIpv6_; 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(); externalIpv6_ = s; return s; } } /** * * *
   * Optional. The external IPv6 address of this access configuration.
   * 
* * optional string external_ipv6 = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for externalIpv6. */ @java.lang.Override public com.google.protobuf.ByteString getExternalIpv6Bytes() { java.lang.Object ref = externalIpv6_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalIpv6_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EXTERNAL_IPV6_PREFIX_LENGTH_FIELD_NUMBER = 5; private int externalIpv6PrefixLength_ = 0; /** * * *
   * Optional. The prefix length of the external IPv6 range.
   * 
* * optional int32 external_ipv6_prefix_length = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the externalIpv6PrefixLength field is set. */ @java.lang.Override public boolean hasExternalIpv6PrefixLength() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
   * Optional. The prefix length of the external IPv6 range.
   * 
* * optional int32 external_ipv6_prefix_length = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The externalIpv6PrefixLength. */ @java.lang.Override public int getExternalIpv6PrefixLength() { return externalIpv6PrefixLength_; } public static final int SET_PUBLIC_PTR_FIELD_NUMBER = 6; private boolean setPublicPtr_ = false; /** * * *
   * Optional. Specifies whether a public DNS 'PTR' record should be created to
   * map the external IP address of the instance to a DNS domain name.
   * 
* * optional bool set_public_ptr = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the setPublicPtr field is set. */ @java.lang.Override public boolean hasSetPublicPtr() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
   * Optional. Specifies whether a public DNS 'PTR' record should be created to
   * map the external IP address of the instance to a DNS domain name.
   * 
* * optional bool set_public_ptr = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The setPublicPtr. */ @java.lang.Override public boolean getSetPublicPtr() { return setPublicPtr_; } public static final int PUBLIC_PTR_DOMAIN_NAME_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object publicPtrDomainName_ = ""; /** * * *
   * Optional. The DNS domain name for the public PTR record.
   * 
* * optional string public_ptr_domain_name = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the publicPtrDomainName field is set. */ @java.lang.Override public boolean hasPublicPtrDomainName() { return ((bitField0_ & 0x00000040) != 0); } /** * * *
   * Optional. The DNS domain name for the public PTR record.
   * 
* * optional string public_ptr_domain_name = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The publicPtrDomainName. */ @java.lang.Override public java.lang.String getPublicPtrDomainName() { java.lang.Object ref = publicPtrDomainName_; 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(); publicPtrDomainName_ = s; return s; } } /** * * *
   * Optional. The DNS domain name for the public PTR record.
   * 
* * optional string public_ptr_domain_name = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The bytes for publicPtrDomainName. */ @java.lang.Override public com.google.protobuf.ByteString getPublicPtrDomainNameBytes() { java.lang.Object ref = publicPtrDomainName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); publicPtrDomainName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NETWORK_TIER_FIELD_NUMBER = 8; private int networkTier_ = 0; /** * * *
   * Optional. This signifies the networking tier used for configuring this
   * access
   * 
* * * optional .google.cloud.backupdr.v1.AccessConfig.NetworkTier network_tier = 8 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the networkTier field is set. */ @java.lang.Override public boolean hasNetworkTier() { return ((bitField0_ & 0x00000080) != 0); } /** * * *
   * Optional. This signifies the networking tier used for configuring this
   * access
   * 
* * * optional .google.cloud.backupdr.v1.AccessConfig.NetworkTier network_tier = 8 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for networkTier. */ @java.lang.Override public int getNetworkTierValue() { return networkTier_; } /** * * *
   * Optional. This signifies the networking tier used for configuring this
   * access
   * 
* * * optional .google.cloud.backupdr.v1.AccessConfig.NetworkTier network_tier = 8 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The networkTier. */ @java.lang.Override public com.google.cloud.backupdr.v1.AccessConfig.NetworkTier getNetworkTier() { com.google.cloud.backupdr.v1.AccessConfig.NetworkTier result = com.google.cloud.backupdr.v1.AccessConfig.NetworkTier.forNumber(networkTier_); return result == null ? com.google.cloud.backupdr.v1.AccessConfig.NetworkTier.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeEnum(1, type_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, externalIp_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, externalIpv6_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeInt32(5, externalIpv6PrefixLength_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeBool(6, setPublicPtr_); } if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, publicPtrDomainName_); } if (((bitField0_ & 0x00000080) != 0)) { output.writeEnum(8, networkTier_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, externalIp_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, externalIpv6_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, externalIpv6PrefixLength_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, setPublicPtr_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, publicPtrDomainName_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, networkTier_); } 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.backupdr.v1.AccessConfig)) { return super.equals(obj); } com.google.cloud.backupdr.v1.AccessConfig other = (com.google.cloud.backupdr.v1.AccessConfig) obj; if (hasType() != other.hasType()) return false; if (hasType()) { if (type_ != other.type_) return false; } if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName().equals(other.getName())) return false; } if (hasExternalIp() != other.hasExternalIp()) return false; if (hasExternalIp()) { if (!getExternalIp().equals(other.getExternalIp())) return false; } if (hasExternalIpv6() != other.hasExternalIpv6()) return false; if (hasExternalIpv6()) { if (!getExternalIpv6().equals(other.getExternalIpv6())) return false; } if (hasExternalIpv6PrefixLength() != other.hasExternalIpv6PrefixLength()) return false; if (hasExternalIpv6PrefixLength()) { if (getExternalIpv6PrefixLength() != other.getExternalIpv6PrefixLength()) return false; } if (hasSetPublicPtr() != other.hasSetPublicPtr()) return false; if (hasSetPublicPtr()) { if (getSetPublicPtr() != other.getSetPublicPtr()) return false; } if (hasPublicPtrDomainName() != other.hasPublicPtrDomainName()) return false; if (hasPublicPtrDomainName()) { if (!getPublicPtrDomainName().equals(other.getPublicPtrDomainName())) return false; } if (hasNetworkTier() != other.hasNetworkTier()) return false; if (hasNetworkTier()) { if (networkTier_ != other.networkTier_) 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 (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasExternalIp()) { hash = (37 * hash) + EXTERNAL_IP_FIELD_NUMBER; hash = (53 * hash) + getExternalIp().hashCode(); } if (hasExternalIpv6()) { hash = (37 * hash) + EXTERNAL_IPV6_FIELD_NUMBER; hash = (53 * hash) + getExternalIpv6().hashCode(); } if (hasExternalIpv6PrefixLength()) { hash = (37 * hash) + EXTERNAL_IPV6_PREFIX_LENGTH_FIELD_NUMBER; hash = (53 * hash) + getExternalIpv6PrefixLength(); } if (hasSetPublicPtr()) { hash = (37 * hash) + SET_PUBLIC_PTR_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSetPublicPtr()); } if (hasPublicPtrDomainName()) { hash = (37 * hash) + PUBLIC_PTR_DOMAIN_NAME_FIELD_NUMBER; hash = (53 * hash) + getPublicPtrDomainName().hashCode(); } if (hasNetworkTier()) { hash = (37 * hash) + NETWORK_TIER_FIELD_NUMBER; hash = (53 * hash) + networkTier_; } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.backupdr.v1.AccessConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.backupdr.v1.AccessConfig 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.backupdr.v1.AccessConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.backupdr.v1.AccessConfig 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.backupdr.v1.AccessConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.backupdr.v1.AccessConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.backupdr.v1.AccessConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.backupdr.v1.AccessConfig 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.backupdr.v1.AccessConfig parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.backupdr.v1.AccessConfig 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.backupdr.v1.AccessConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.backupdr.v1.AccessConfig 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.backupdr.v1.AccessConfig 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; } /** * * *
   * An access configuration attached to an instance's network interface.
   * Only one access config per instance is supported.
   * 
* * Protobuf type {@code google.cloud.backupdr.v1.AccessConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.AccessConfig) com.google.cloud.backupdr.v1.AccessConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.backupdr.v1.BackupvaultGceProto .internal_static_google_cloud_backupdr_v1_AccessConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.backupdr.v1.BackupvaultGceProto .internal_static_google_cloud_backupdr_v1_AccessConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.backupdr.v1.AccessConfig.class, com.google.cloud.backupdr.v1.AccessConfig.Builder.class); } // Construct using com.google.cloud.backupdr.v1.AccessConfig.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = 0; name_ = ""; externalIp_ = ""; externalIpv6_ = ""; externalIpv6PrefixLength_ = 0; setPublicPtr_ = false; publicPtrDomainName_ = ""; networkTier_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.backupdr.v1.BackupvaultGceProto .internal_static_google_cloud_backupdr_v1_AccessConfig_descriptor; } @java.lang.Override public com.google.cloud.backupdr.v1.AccessConfig getDefaultInstanceForType() { return com.google.cloud.backupdr.v1.AccessConfig.getDefaultInstance(); } @java.lang.Override public com.google.cloud.backupdr.v1.AccessConfig build() { com.google.cloud.backupdr.v1.AccessConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.backupdr.v1.AccessConfig buildPartial() { com.google.cloud.backupdr.v1.AccessConfig result = new com.google.cloud.backupdr.v1.AccessConfig(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.backupdr.v1.AccessConfig result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = type_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.name_ = name_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.externalIp_ = externalIp_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.externalIpv6_ = externalIpv6_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.externalIpv6PrefixLength_ = externalIpv6PrefixLength_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.setPublicPtr_ = setPublicPtr_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { result.publicPtrDomainName_ = publicPtrDomainName_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { result.networkTier_ = networkTier_; to_bitField0_ |= 0x00000080; } 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.backupdr.v1.AccessConfig) { return mergeFrom((com.google.cloud.backupdr.v1.AccessConfig) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.backupdr.v1.AccessConfig other) { if (other == com.google.cloud.backupdr.v1.AccessConfig.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasName()) { name_ = other.name_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasExternalIp()) { externalIp_ = other.externalIp_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasExternalIpv6()) { externalIpv6_ = other.externalIpv6_; bitField0_ |= 0x00000008; onChanged(); } if (other.hasExternalIpv6PrefixLength()) { setExternalIpv6PrefixLength(other.getExternalIpv6PrefixLength()); } if (other.hasSetPublicPtr()) { setSetPublicPtr(other.getSetPublicPtr()); } if (other.hasPublicPtrDomainName()) { publicPtrDomainName_ = other.publicPtrDomainName_; bitField0_ |= 0x00000040; onChanged(); } if (other.hasNetworkTier()) { setNetworkTier(other.getNetworkTier()); } 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 8: { type_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { externalIp_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { externalIpv6_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 40: { externalIpv6PrefixLength_ = input.readInt32(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { setPublicPtr_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 48 case 58: { publicPtrDomainName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 64: { networkTier_ = input.readEnum(); bitField0_ |= 0x00000080; break; } // case 64 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 int type_ = 0; /** * * *
     * Optional. In accessConfigs (IPv4), the
     *  default and only option is ONE_TO_ONE_NAT. In
     *  ipv6AccessConfigs, the default and only option is
     *  DIRECT_IPV6.
     * 
* * * optional .google.cloud.backupdr.v1.AccessConfig.AccessType type = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Optional. In accessConfigs (IPv4), the
     *  default and only option is ONE_TO_ONE_NAT. In
     *  ipv6AccessConfigs, the default and only option is
     *  DIRECT_IPV6.
     * 
* * * optional .google.cloud.backupdr.v1.AccessConfig.AccessType type = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * * *
     * Optional. In accessConfigs (IPv4), the
     *  default and only option is ONE_TO_ONE_NAT. In
     *  ipv6AccessConfigs, the default and only option is
     *  DIRECT_IPV6.
     * 
* * * optional .google.cloud.backupdr.v1.AccessConfig.AccessType type = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @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_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Optional. In accessConfigs (IPv4), the
     *  default and only option is ONE_TO_ONE_NAT. In
     *  ipv6AccessConfigs, the default and only option is
     *  DIRECT_IPV6.
     * 
* * * optional .google.cloud.backupdr.v1.AccessConfig.AccessType type = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The type. */ @java.lang.Override public com.google.cloud.backupdr.v1.AccessConfig.AccessType getType() { com.google.cloud.backupdr.v1.AccessConfig.AccessType result = com.google.cloud.backupdr.v1.AccessConfig.AccessType.forNumber(type_); return result == null ? com.google.cloud.backupdr.v1.AccessConfig.AccessType.UNRECOGNIZED : result; } /** * * *
     * Optional. In accessConfigs (IPv4), the
     *  default and only option is ONE_TO_ONE_NAT. In
     *  ipv6AccessConfigs, the default and only option is
     *  DIRECT_IPV6.
     * 
* * * optional .google.cloud.backupdr.v1.AccessConfig.AccessType type = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The type to set. * @return This builder for chaining. */ public Builder setType(com.google.cloud.backupdr.v1.AccessConfig.AccessType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Optional. In accessConfigs (IPv4), the
     *  default and only option is ONE_TO_ONE_NAT. In
     *  ipv6AccessConfigs, the default and only option is
     *  DIRECT_IPV6.
     * 
* * * optional .google.cloud.backupdr.v1.AccessConfig.AccessType type = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } private java.lang.Object name_ = ""; /** * * *
     * Optional. The name of this access configuration.
     * 
* * optional string name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Optional. The name of this access configuration.
     * 
* * optional string name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @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; } } /** * * *
     * Optional. The name of this access configuration.
     * 
* * optional string name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @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; } } /** * * *
     * Optional. The name of this access configuration.
     * 
* * optional string name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @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_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Optional. The name of this access configuration.
     * 
* * optional string name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * Optional. The name of this access configuration.
     * 
* * optional string name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @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_ |= 0x00000002; onChanged(); return this; } private java.lang.Object externalIp_ = ""; /** * * *
     * Optional. The external IP address of this access configuration.
     * 
* * optional string external_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the externalIp field is set. */ public boolean hasExternalIp() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * Optional. The external IP address of this access configuration.
     * 
* * optional string external_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The externalIp. */ public java.lang.String getExternalIp() { java.lang.Object ref = externalIp_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalIp_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. The external IP address of this access configuration.
     * 
* * optional string external_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for externalIp. */ public com.google.protobuf.ByteString getExternalIpBytes() { java.lang.Object ref = externalIp_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalIp_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional. The external IP address of this access configuration.
     * 
* * optional string external_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The externalIp to set. * @return This builder for chaining. */ public Builder setExternalIp(java.lang.String value) { if (value == null) { throw new NullPointerException(); } externalIp_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Optional. The external IP address of this access configuration.
     * 
* * optional string external_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearExternalIp() { externalIp_ = getDefaultInstance().getExternalIp(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * Optional. The external IP address of this access configuration.
     * 
* * optional string external_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for externalIp to set. * @return This builder for chaining. */ public Builder setExternalIpBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); externalIp_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object externalIpv6_ = ""; /** * * *
     * Optional. The external IPv6 address of this access configuration.
     * 
* * optional string external_ipv6 = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the externalIpv6 field is set. */ public boolean hasExternalIpv6() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * Optional. The external IPv6 address of this access configuration.
     * 
* * optional string external_ipv6 = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The externalIpv6. */ public java.lang.String getExternalIpv6() { java.lang.Object ref = externalIpv6_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalIpv6_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. The external IPv6 address of this access configuration.
     * 
* * optional string external_ipv6 = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for externalIpv6. */ public com.google.protobuf.ByteString getExternalIpv6Bytes() { java.lang.Object ref = externalIpv6_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalIpv6_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional. The external IPv6 address of this access configuration.
     * 
* * optional string external_ipv6 = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The externalIpv6 to set. * @return This builder for chaining. */ public Builder setExternalIpv6(java.lang.String value) { if (value == null) { throw new NullPointerException(); } externalIpv6_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Optional. The external IPv6 address of this access configuration.
     * 
* * optional string external_ipv6 = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearExternalIpv6() { externalIpv6_ = getDefaultInstance().getExternalIpv6(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * * *
     * Optional. The external IPv6 address of this access configuration.
     * 
* * optional string external_ipv6 = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for externalIpv6 to set. * @return This builder for chaining. */ public Builder setExternalIpv6Bytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); externalIpv6_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private int externalIpv6PrefixLength_; /** * * *
     * Optional. The prefix length of the external IPv6 range.
     * 
* * * optional int32 external_ipv6_prefix_length = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the externalIpv6PrefixLength field is set. */ @java.lang.Override public boolean hasExternalIpv6PrefixLength() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
     * Optional. The prefix length of the external IPv6 range.
     * 
* * * optional int32 external_ipv6_prefix_length = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The externalIpv6PrefixLength. */ @java.lang.Override public int getExternalIpv6PrefixLength() { return externalIpv6PrefixLength_; } /** * * *
     * Optional. The prefix length of the external IPv6 range.
     * 
* * * optional int32 external_ipv6_prefix_length = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The externalIpv6PrefixLength to set. * @return This builder for chaining. */ public Builder setExternalIpv6PrefixLength(int value) { externalIpv6PrefixLength_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Optional. The prefix length of the external IPv6 range.
     * 
* * * optional int32 external_ipv6_prefix_length = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. */ public Builder clearExternalIpv6PrefixLength() { bitField0_ = (bitField0_ & ~0x00000010); externalIpv6PrefixLength_ = 0; onChanged(); return this; } private boolean setPublicPtr_; /** * * *
     * Optional. Specifies whether a public DNS 'PTR' record should be created to
     * map the external IP address of the instance to a DNS domain name.
     * 
* * optional bool set_public_ptr = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the setPublicPtr field is set. */ @java.lang.Override public boolean hasSetPublicPtr() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
     * Optional. Specifies whether a public DNS 'PTR' record should be created to
     * map the external IP address of the instance to a DNS domain name.
     * 
* * optional bool set_public_ptr = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The setPublicPtr. */ @java.lang.Override public boolean getSetPublicPtr() { return setPublicPtr_; } /** * * *
     * Optional. Specifies whether a public DNS 'PTR' record should be created to
     * map the external IP address of the instance to a DNS domain name.
     * 
* * optional bool set_public_ptr = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The setPublicPtr to set. * @return This builder for chaining. */ public Builder setSetPublicPtr(boolean value) { setPublicPtr_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Optional. Specifies whether a public DNS 'PTR' record should be created to
     * map the external IP address of the instance to a DNS domain name.
     * 
* * optional bool set_public_ptr = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearSetPublicPtr() { bitField0_ = (bitField0_ & ~0x00000020); setPublicPtr_ = false; onChanged(); return this; } private java.lang.Object publicPtrDomainName_ = ""; /** * * *
     * Optional. The DNS domain name for the public PTR record.
     * 
* * optional string public_ptr_domain_name = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the publicPtrDomainName field is set. */ public boolean hasPublicPtrDomainName() { return ((bitField0_ & 0x00000040) != 0); } /** * * *
     * Optional. The DNS domain name for the public PTR record.
     * 
* * optional string public_ptr_domain_name = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The publicPtrDomainName. */ public java.lang.String getPublicPtrDomainName() { java.lang.Object ref = publicPtrDomainName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publicPtrDomainName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. The DNS domain name for the public PTR record.
     * 
* * optional string public_ptr_domain_name = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The bytes for publicPtrDomainName. */ public com.google.protobuf.ByteString getPublicPtrDomainNameBytes() { java.lang.Object ref = publicPtrDomainName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); publicPtrDomainName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional. The DNS domain name for the public PTR record.
     * 
* * optional string public_ptr_domain_name = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The publicPtrDomainName to set. * @return This builder for chaining. */ public Builder setPublicPtrDomainName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } publicPtrDomainName_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Optional. The DNS domain name for the public PTR record.
     * 
* * optional string public_ptr_domain_name = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. */ public Builder clearPublicPtrDomainName() { publicPtrDomainName_ = getDefaultInstance().getPublicPtrDomainName(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
     * Optional. The DNS domain name for the public PTR record.
     * 
* * optional string public_ptr_domain_name = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The bytes for publicPtrDomainName to set. * @return This builder for chaining. */ public Builder setPublicPtrDomainNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); publicPtrDomainName_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private int networkTier_ = 0; /** * * *
     * Optional. This signifies the networking tier used for configuring this
     * access
     * 
* * * optional .google.cloud.backupdr.v1.AccessConfig.NetworkTier network_tier = 8 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the networkTier field is set. */ @java.lang.Override public boolean hasNetworkTier() { return ((bitField0_ & 0x00000080) != 0); } /** * * *
     * Optional. This signifies the networking tier used for configuring this
     * access
     * 
* * * optional .google.cloud.backupdr.v1.AccessConfig.NetworkTier network_tier = 8 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for networkTier. */ @java.lang.Override public int getNetworkTierValue() { return networkTier_; } /** * * *
     * Optional. This signifies the networking tier used for configuring this
     * access
     * 
* * * optional .google.cloud.backupdr.v1.AccessConfig.NetworkTier network_tier = 8 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The enum numeric value on the wire for networkTier to set. * @return This builder for chaining. */ public Builder setNetworkTierValue(int value) { networkTier_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * Optional. This signifies the networking tier used for configuring this
     * access
     * 
* * * optional .google.cloud.backupdr.v1.AccessConfig.NetworkTier network_tier = 8 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The networkTier. */ @java.lang.Override public com.google.cloud.backupdr.v1.AccessConfig.NetworkTier getNetworkTier() { com.google.cloud.backupdr.v1.AccessConfig.NetworkTier result = com.google.cloud.backupdr.v1.AccessConfig.NetworkTier.forNumber(networkTier_); return result == null ? com.google.cloud.backupdr.v1.AccessConfig.NetworkTier.UNRECOGNIZED : result; } /** * * *
     * Optional. This signifies the networking tier used for configuring this
     * access
     * 
* * * optional .google.cloud.backupdr.v1.AccessConfig.NetworkTier network_tier = 8 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The networkTier to set. * @return This builder for chaining. */ public Builder setNetworkTier(com.google.cloud.backupdr.v1.AccessConfig.NetworkTier value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; networkTier_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Optional. This signifies the networking tier used for configuring this
     * access
     * 
* * * optional .google.cloud.backupdr.v1.AccessConfig.NetworkTier network_tier = 8 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. */ public Builder clearNetworkTier() { bitField0_ = (bitField0_ & ~0x00000080); networkTier_ = 0; 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.backupdr.v1.AccessConfig) } // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.AccessConfig) private static final com.google.cloud.backupdr.v1.AccessConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.AccessConfig(); } public static com.google.cloud.backupdr.v1.AccessConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AccessConfig 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.backupdr.v1.AccessConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy