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

com.google.cloud.baremetalsolution.v2.NetworkConfig Maven / Gradle / Ivy

/*
 * 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/baremetalsolution/v2/provisioning.proto

// Protobuf Java Version: 3.25.3
package com.google.cloud.baremetalsolution.v2;

/**
 *
 *
 * 
 * Configuration parameters for a new network.
 * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkConfig} */ public final class NetworkConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.NetworkConfig) NetworkConfigOrBuilder { private static final long serialVersionUID = 0L; // Use NetworkConfig.newBuilder() to construct. private NetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NetworkConfig() { name_ = ""; id_ = ""; type_ = 0; bandwidth_ = 0; vlanAttachments_ = java.util.Collections.emptyList(); cidr_ = ""; serviceCidr_ = 0; userNote_ = ""; gcpService_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NetworkConfig(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.baremetalsolution.v2.ProvisioningProto .internal_static_google_cloud_baremetalsolution_v2_NetworkConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.baremetalsolution.v2.ProvisioningProto .internal_static_google_cloud_baremetalsolution_v2_NetworkConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.baremetalsolution.v2.NetworkConfig.class, com.google.cloud.baremetalsolution.v2.NetworkConfig.Builder.class); } /** * * *
   * Network type.
   * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.NetworkConfig.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Unspecified value.
     * 
* * TYPE_UNSPECIFIED = 0; */ TYPE_UNSPECIFIED(0), /** * * *
     * Client network, that is a network peered to a GCP VPC.
     * 
* * CLIENT = 1; */ CLIENT(1), /** * * *
     * Private network, that is a network local to the BMS POD.
     * 
* * PRIVATE = 2; */ PRIVATE(2), UNRECOGNIZED(-1), ; /** * * *
     * Unspecified value.
     * 
* * TYPE_UNSPECIFIED = 0; */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** * * *
     * Client network, that is a network peered to a GCP VPC.
     * 
* * CLIENT = 1; */ public static final int CLIENT_VALUE = 1; /** * * *
     * Private network, that is a network local to the BMS POD.
     * 
* * PRIVATE = 2; */ public static final int PRIVATE_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 CLIENT; case 2: return PRIVATE; 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.baremetalsolution.v2.NetworkConfig.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.baremetalsolution.v2.NetworkConfig.Type) } /** * * *
   * Interconnect bandwidth.
   * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth} */ public enum Bandwidth implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Unspecified value.
     * 
* * BANDWIDTH_UNSPECIFIED = 0; */ BANDWIDTH_UNSPECIFIED(0), /** * * *
     * 1 Gbps.
     * 
* * BW_1_GBPS = 1; */ BW_1_GBPS(1), /** * * *
     * 2 Gbps.
     * 
* * BW_2_GBPS = 2; */ BW_2_GBPS(2), /** * * *
     * 5 Gbps.
     * 
* * BW_5_GBPS = 3; */ BW_5_GBPS(3), /** * * *
     * 10 Gbps.
     * 
* * BW_10_GBPS = 4; */ BW_10_GBPS(4), UNRECOGNIZED(-1), ; /** * * *
     * Unspecified value.
     * 
* * BANDWIDTH_UNSPECIFIED = 0; */ public static final int BANDWIDTH_UNSPECIFIED_VALUE = 0; /** * * *
     * 1 Gbps.
     * 
* * BW_1_GBPS = 1; */ public static final int BW_1_GBPS_VALUE = 1; /** * * *
     * 2 Gbps.
     * 
* * BW_2_GBPS = 2; */ public static final int BW_2_GBPS_VALUE = 2; /** * * *
     * 5 Gbps.
     * 
* * BW_5_GBPS = 3; */ public static final int BW_5_GBPS_VALUE = 3; /** * * *
     * 10 Gbps.
     * 
* * BW_10_GBPS = 4; */ public static final int BW_10_GBPS_VALUE = 4; 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 Bandwidth 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 Bandwidth forNumber(int value) { switch (value) { case 0: return BANDWIDTH_UNSPECIFIED; case 1: return BW_1_GBPS; case 2: return BW_2_GBPS; case 3: return BW_5_GBPS; case 4: return BW_10_GBPS; 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 Bandwidth findValueByNumber(int number) { return Bandwidth.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.baremetalsolution.v2.NetworkConfig.getDescriptor() .getEnumTypes() .get(1); } private static final Bandwidth[] VALUES = values(); public static Bandwidth 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 Bandwidth(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth) } /** * * *
   * Service network block.
   * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr} */ public enum ServiceCidr implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Unspecified value.
     * 
* * SERVICE_CIDR_UNSPECIFIED = 0; */ SERVICE_CIDR_UNSPECIFIED(0), /** * * *
     * Services are disabled for the given network.
     * 
* * DISABLED = 1; */ DISABLED(1), /** * * *
     * Use the highest /26 block of the network to host services.
     * 
* * HIGH_26 = 2; */ HIGH_26(2), /** * * *
     * Use the highest /27 block of the network to host services.
     * 
* * HIGH_27 = 3; */ HIGH_27(3), /** * * *
     * Use the highest /28 block of the network to host services.
     * 
* * HIGH_28 = 4; */ HIGH_28(4), UNRECOGNIZED(-1), ; /** * * *
     * Unspecified value.
     * 
* * SERVICE_CIDR_UNSPECIFIED = 0; */ public static final int SERVICE_CIDR_UNSPECIFIED_VALUE = 0; /** * * *
     * Services are disabled for the given network.
     * 
* * DISABLED = 1; */ public static final int DISABLED_VALUE = 1; /** * * *
     * Use the highest /26 block of the network to host services.
     * 
* * HIGH_26 = 2; */ public static final int HIGH_26_VALUE = 2; /** * * *
     * Use the highest /27 block of the network to host services.
     * 
* * HIGH_27 = 3; */ public static final int HIGH_27_VALUE = 3; /** * * *
     * Use the highest /28 block of the network to host services.
     * 
* * HIGH_28 = 4; */ public static final int HIGH_28_VALUE = 4; 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 ServiceCidr 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 ServiceCidr forNumber(int value) { switch (value) { case 0: return SERVICE_CIDR_UNSPECIFIED; case 1: return DISABLED; case 2: return HIGH_26; case 3: return HIGH_27; case 4: return HIGH_28; 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 ServiceCidr findValueByNumber(int number) { return ServiceCidr.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.baremetalsolution.v2.NetworkConfig.getDescriptor() .getEnumTypes() .get(2); } private static final ServiceCidr[] VALUES = values(); public static ServiceCidr 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 ServiceCidr(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr) } public interface IntakeVlanAttachmentOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment) com.google.protobuf.MessageOrBuilder { /** * * *
     * Identifier of the VLAN attachment.
     * 
* * string id = 1; * * @return The id. */ java.lang.String getId(); /** * * *
     * Identifier of the VLAN attachment.
     * 
* * string id = 1; * * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * * *
     * Attachment pairing key.
     * 
* * string pairing_key = 2; * * @return The pairingKey. */ java.lang.String getPairingKey(); /** * * *
     * Attachment pairing key.
     * 
* * string pairing_key = 2; * * @return The bytes for pairingKey. */ com.google.protobuf.ByteString getPairingKeyBytes(); } /** * * *
   * A GCP vlan attachment.
   * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment} */ public static final class IntakeVlanAttachment extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment) IntakeVlanAttachmentOrBuilder { private static final long serialVersionUID = 0L; // Use IntakeVlanAttachment.newBuilder() to construct. private IntakeVlanAttachment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IntakeVlanAttachment() { id_ = ""; pairingKey_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IntakeVlanAttachment(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.baremetalsolution.v2.ProvisioningProto .internal_static_google_cloud_baremetalsolution_v2_NetworkConfig_IntakeVlanAttachment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.baremetalsolution.v2.ProvisioningProto .internal_static_google_cloud_baremetalsolution_v2_NetworkConfig_IntakeVlanAttachment_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment.class, com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment.Builder .class); } public static final int ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** * * *
     * Identifier of the VLAN attachment.
     * 
* * string id = 1; * * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** * * *
     * Identifier of the VLAN attachment.
     * 
* * string id = 1; * * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PAIRING_KEY_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object pairingKey_ = ""; /** * * *
     * Attachment pairing key.
     * 
* * string pairing_key = 2; * * @return The pairingKey. */ @java.lang.Override public java.lang.String getPairingKey() { java.lang.Object ref = pairingKey_; 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(); pairingKey_ = s; return s; } } /** * * *
     * Attachment pairing key.
     * 
* * string pairing_key = 2; * * @return The bytes for pairingKey. */ @java.lang.Override public com.google.protobuf.ByteString getPairingKeyBytes() { java.lang.Object ref = pairingKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pairingKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pairingKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pairingKey_); } 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(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pairingKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pairingKey_); } 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.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment)) { return super.equals(obj); } com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment other = (com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment) obj; if (!getId().equals(other.getId())) return false; if (!getPairingKey().equals(other.getPairingKey())) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + PAIRING_KEY_FIELD_NUMBER; hash = (53 * hash) + getPairingKey().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment 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.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment 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.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment 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.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment 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.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment 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.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * A GCP vlan attachment.
     * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment) com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachmentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.baremetalsolution.v2.ProvisioningProto .internal_static_google_cloud_baremetalsolution_v2_NetworkConfig_IntakeVlanAttachment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.baremetalsolution.v2.ProvisioningProto .internal_static_google_cloud_baremetalsolution_v2_NetworkConfig_IntakeVlanAttachment_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment.class, com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment.Builder .class); } // Construct using // com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = ""; pairingKey_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.baremetalsolution.v2.ProvisioningProto .internal_static_google_cloud_baremetalsolution_v2_NetworkConfig_IntakeVlanAttachment_descriptor; } @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment getDefaultInstanceForType() { return com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment .getDefaultInstance(); } @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment build() { com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment buildPartial() { com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment result = new com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.pairingKey_ = pairingKey_; } } @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.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment) { return mergeFrom( (com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment other) { if (other == com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment .getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getPairingKey().isEmpty()) { pairingKey_ = other.pairingKey_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { id_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { pairingKey_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object id_ = ""; /** * * *
       * Identifier of the VLAN attachment.
       * 
* * string id = 1; * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Identifier of the VLAN attachment.
       * 
* * string id = 1; * * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Identifier of the VLAN attachment.
       * 
* * string id = 1; * * @param value The id to set. * @return This builder for chaining. */ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Identifier of the VLAN attachment.
       * 
* * string id = 1; * * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * Identifier of the VLAN attachment.
       * 
* * string id = 1; * * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object pairingKey_ = ""; /** * * *
       * Attachment pairing key.
       * 
* * string pairing_key = 2; * * @return The pairingKey. */ public java.lang.String getPairingKey() { java.lang.Object ref = pairingKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pairingKey_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Attachment pairing key.
       * 
* * string pairing_key = 2; * * @return The bytes for pairingKey. */ public com.google.protobuf.ByteString getPairingKeyBytes() { java.lang.Object ref = pairingKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pairingKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Attachment pairing key.
       * 
* * string pairing_key = 2; * * @param value The pairingKey to set. * @return This builder for chaining. */ public Builder setPairingKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } pairingKey_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Attachment pairing key.
       * 
* * string pairing_key = 2; * * @return This builder for chaining. */ public Builder clearPairingKey() { pairingKey_ = getDefaultInstance().getPairingKey(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * Attachment pairing key.
       * 
* * string pairing_key = 2; * * @param value The bytes for pairingKey to set. * @return This builder for chaining. */ public Builder setPairingKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pairingKey_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment) private static final com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment(); } public static com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IntakeVlanAttachment 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.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * Output only. The name of the network config.
   * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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; } } /** * * *
   * Output only. The name of the network config.
   * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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 ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** * * *
   * A transient unique identifier to identify a volume within an
   * ProvisioningConfig request.
   * 
* * string id = 2; * * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** * * *
   * A transient unique identifier to identify a volume within an
   * ProvisioningConfig request.
   * 
* * string id = 2; * * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 3; private int type_ = 0; /** * * *
   * The type of this network, either Client or Private.
   * 
* * .google.cloud.baremetalsolution.v2.NetworkConfig.Type type = 3; * * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * * *
   * The type of this network, either Client or Private.
   * 
* * .google.cloud.baremetalsolution.v2.NetworkConfig.Type type = 3; * * @return The type. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkConfig.Type getType() { com.google.cloud.baremetalsolution.v2.NetworkConfig.Type result = com.google.cloud.baremetalsolution.v2.NetworkConfig.Type.forNumber(type_); return result == null ? com.google.cloud.baremetalsolution.v2.NetworkConfig.Type.UNRECOGNIZED : result; } public static final int BANDWIDTH_FIELD_NUMBER = 4; private int bandwidth_ = 0; /** * * *
   * Interconnect bandwidth. Set only when type is CLIENT.
   * 
* * .google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth bandwidth = 4; * * @return The enum numeric value on the wire for bandwidth. */ @java.lang.Override public int getBandwidthValue() { return bandwidth_; } /** * * *
   * Interconnect bandwidth. Set only when type is CLIENT.
   * 
* * .google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth bandwidth = 4; * * @return The bandwidth. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth getBandwidth() { com.google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth result = com.google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth.forNumber(bandwidth_); return result == null ? com.google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth.UNRECOGNIZED : result; } public static final int VLAN_ATTACHMENTS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List vlanAttachments_; /** * * *
   * List of VLAN attachments. As of now there are always 2 attachments, but it
   * is going to change in  the future (multi vlan).
   * 
* * * repeated .google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment vlan_attachments = 5; * */ @java.lang.Override public java.util.List getVlanAttachmentsList() { return vlanAttachments_; } /** * * *
   * List of VLAN attachments. As of now there are always 2 attachments, but it
   * is going to change in  the future (multi vlan).
   * 
* * * repeated .google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment vlan_attachments = 5; * */ @java.lang.Override public java.util.List< ? extends com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachmentOrBuilder> getVlanAttachmentsOrBuilderList() { return vlanAttachments_; } /** * * *
   * List of VLAN attachments. As of now there are always 2 attachments, but it
   * is going to change in  the future (multi vlan).
   * 
* * * repeated .google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment vlan_attachments = 5; * */ @java.lang.Override public int getVlanAttachmentsCount() { return vlanAttachments_.size(); } /** * * *
   * List of VLAN attachments. As of now there are always 2 attachments, but it
   * is going to change in  the future (multi vlan).
   * 
* * * repeated .google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment vlan_attachments = 5; * */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment getVlanAttachments(int index) { return vlanAttachments_.get(index); } /** * * *
   * List of VLAN attachments. As of now there are always 2 attachments, but it
   * is going to change in  the future (multi vlan).
   * 
* * * repeated .google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment vlan_attachments = 5; * */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachmentOrBuilder getVlanAttachmentsOrBuilder(int index) { return vlanAttachments_.get(index); } public static final int CIDR_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object cidr_ = ""; /** * * *
   * CIDR range of the network.
   * 
* * string cidr = 6; * * @return The cidr. */ @java.lang.Override public java.lang.String getCidr() { java.lang.Object ref = cidr_; 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(); cidr_ = s; return s; } } /** * * *
   * CIDR range of the network.
   * 
* * string cidr = 6; * * @return The bytes for cidr. */ @java.lang.Override public com.google.protobuf.ByteString getCidrBytes() { java.lang.Object ref = cidr_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cidr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SERVICE_CIDR_FIELD_NUMBER = 7; private int serviceCidr_ = 0; /** * * *
   * Service CIDR, if any.
   * 
* * .google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr service_cidr = 7; * * @return The enum numeric value on the wire for serviceCidr. */ @java.lang.Override public int getServiceCidrValue() { return serviceCidr_; } /** * * *
   * Service CIDR, if any.
   * 
* * .google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr service_cidr = 7; * * @return The serviceCidr. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr getServiceCidr() { com.google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr result = com.google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr.forNumber(serviceCidr_); return result == null ? com.google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr.UNRECOGNIZED : result; } public static final int USER_NOTE_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object userNote_ = ""; /** * * *
   * User note field, it can be used by customers to add additional information
   * for the BMS Ops team .
   * 
* * string user_note = 8; * * @return The userNote. */ @java.lang.Override public java.lang.String getUserNote() { java.lang.Object ref = userNote_; 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(); userNote_ = s; return s; } } /** * * *
   * User note field, it can be used by customers to add additional information
   * for the BMS Ops team .
   * 
* * string user_note = 8; * * @return The bytes for userNote. */ @java.lang.Override public com.google.protobuf.ByteString getUserNoteBytes() { java.lang.Object ref = userNote_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userNote_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GCP_SERVICE_FIELD_NUMBER = 9; @SuppressWarnings("serial") private volatile java.lang.Object gcpService_ = ""; /** * * *
   * The GCP service of the network. Available gcp_service are in
   * https://cloud.google.com/bare-metal/docs/bms-planning.
   * 
* * string gcp_service = 9; * * @return The gcpService. */ @java.lang.Override public java.lang.String getGcpService() { java.lang.Object ref = gcpService_; 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(); gcpService_ = s; return s; } } /** * * *
   * The GCP service of the network. Available gcp_service are in
   * https://cloud.google.com/bare-metal/docs/bms-planning.
   * 
* * string gcp_service = 9; * * @return The bytes for gcpService. */ @java.lang.Override public com.google.protobuf.ByteString getGcpServiceBytes() { java.lang.Object ref = gcpService_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcpService_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VLAN_SAME_PROJECT_FIELD_NUMBER = 10; private boolean vlanSameProject_ = false; /** * * *
   * Whether the VLAN attachment pair is located in the same project.
   * 
* * bool vlan_same_project = 10; * * @return The vlanSameProject. */ @java.lang.Override public boolean getVlanSameProject() { return vlanSameProject_; } public static final int JUMBO_FRAMES_ENABLED_FIELD_NUMBER = 11; private boolean jumboFramesEnabled_ = false; /** * * *
   * The JumboFramesEnabled option for customer to set.
   * 
* * bool jumbo_frames_enabled = 11; * * @return The jumboFramesEnabled. */ @java.lang.Override public boolean getJumboFramesEnabled() { return jumboFramesEnabled_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); } if (type_ != com.google.cloud.baremetalsolution.v2.NetworkConfig.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(3, type_); } if (bandwidth_ != com.google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth.BANDWIDTH_UNSPECIFIED .getNumber()) { output.writeEnum(4, bandwidth_); } for (int i = 0; i < vlanAttachments_.size(); i++) { output.writeMessage(5, vlanAttachments_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidr_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, cidr_); } if (serviceCidr_ != com.google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr.SERVICE_CIDR_UNSPECIFIED .getNumber()) { output.writeEnum(7, serviceCidr_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userNote_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, userNote_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpService_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, gcpService_); } if (vlanSameProject_ != false) { output.writeBool(10, vlanSameProject_); } if (jumboFramesEnabled_ != false) { output.writeBool(11, jumboFramesEnabled_); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); } if (type_ != com.google.cloud.baremetalsolution.v2.NetworkConfig.Type.TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); } if (bandwidth_ != com.google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth.BANDWIDTH_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, bandwidth_); } for (int i = 0; i < vlanAttachments_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, vlanAttachments_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidr_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, cidr_); } if (serviceCidr_ != com.google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr.SERVICE_CIDR_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, serviceCidr_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userNote_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, userNote_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpService_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, gcpService_); } if (vlanSameProject_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, vlanSameProject_); } if (jumboFramesEnabled_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, jumboFramesEnabled_); } 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.baremetalsolution.v2.NetworkConfig)) { return super.equals(obj); } com.google.cloud.baremetalsolution.v2.NetworkConfig other = (com.google.cloud.baremetalsolution.v2.NetworkConfig) obj; if (!getName().equals(other.getName())) return false; if (!getId().equals(other.getId())) return false; if (type_ != other.type_) return false; if (bandwidth_ != other.bandwidth_) return false; if (!getVlanAttachmentsList().equals(other.getVlanAttachmentsList())) return false; if (!getCidr().equals(other.getCidr())) return false; if (serviceCidr_ != other.serviceCidr_) return false; if (!getUserNote().equals(other.getUserNote())) return false; if (!getGcpService().equals(other.getGcpService())) return false; if (getVlanSameProject() != other.getVlanSameProject()) return false; if (getJumboFramesEnabled() != other.getJumboFramesEnabled()) 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(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + BANDWIDTH_FIELD_NUMBER; hash = (53 * hash) + bandwidth_; if (getVlanAttachmentsCount() > 0) { hash = (37 * hash) + VLAN_ATTACHMENTS_FIELD_NUMBER; hash = (53 * hash) + getVlanAttachmentsList().hashCode(); } hash = (37 * hash) + CIDR_FIELD_NUMBER; hash = (53 * hash) + getCidr().hashCode(); hash = (37 * hash) + SERVICE_CIDR_FIELD_NUMBER; hash = (53 * hash) + serviceCidr_; hash = (37 * hash) + USER_NOTE_FIELD_NUMBER; hash = (53 * hash) + getUserNote().hashCode(); hash = (37 * hash) + GCP_SERVICE_FIELD_NUMBER; hash = (53 * hash) + getGcpService().hashCode(); hash = (37 * hash) + VLAN_SAME_PROJECT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVlanSameProject()); hash = (37 * hash) + JUMBO_FRAMES_ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getJumboFramesEnabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.baremetalsolution.v2.NetworkConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.baremetalsolution.v2.NetworkConfig 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.baremetalsolution.v2.NetworkConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.baremetalsolution.v2.NetworkConfig 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.baremetalsolution.v2.NetworkConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.baremetalsolution.v2.NetworkConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.baremetalsolution.v2.NetworkConfig parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.baremetalsolution.v2.NetworkConfig 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.baremetalsolution.v2.NetworkConfig parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.baremetalsolution.v2.NetworkConfig 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.baremetalsolution.v2.NetworkConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.baremetalsolution.v2.NetworkConfig 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.baremetalsolution.v2.NetworkConfig 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; } /** * * *
   * Configuration parameters for a new network.
   * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.NetworkConfig) com.google.cloud.baremetalsolution.v2.NetworkConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.baremetalsolution.v2.ProvisioningProto .internal_static_google_cloud_baremetalsolution_v2_NetworkConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.baremetalsolution.v2.ProvisioningProto .internal_static_google_cloud_baremetalsolution_v2_NetworkConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.baremetalsolution.v2.NetworkConfig.class, com.google.cloud.baremetalsolution.v2.NetworkConfig.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.NetworkConfig.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; id_ = ""; type_ = 0; bandwidth_ = 0; if (vlanAttachmentsBuilder_ == null) { vlanAttachments_ = java.util.Collections.emptyList(); } else { vlanAttachments_ = null; vlanAttachmentsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); cidr_ = ""; serviceCidr_ = 0; userNote_ = ""; gcpService_ = ""; vlanSameProject_ = false; jumboFramesEnabled_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.baremetalsolution.v2.ProvisioningProto .internal_static_google_cloud_baremetalsolution_v2_NetworkConfig_descriptor; } @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkConfig getDefaultInstanceForType() { return com.google.cloud.baremetalsolution.v2.NetworkConfig.getDefaultInstance(); } @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkConfig build() { com.google.cloud.baremetalsolution.v2.NetworkConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkConfig buildPartial() { com.google.cloud.baremetalsolution.v2.NetworkConfig result = new com.google.cloud.baremetalsolution.v2.NetworkConfig(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.cloud.baremetalsolution.v2.NetworkConfig result) { if (vlanAttachmentsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { vlanAttachments_ = java.util.Collections.unmodifiableList(vlanAttachments_); bitField0_ = (bitField0_ & ~0x00000010); } result.vlanAttachments_ = vlanAttachments_; } else { result.vlanAttachments_ = vlanAttachmentsBuilder_.build(); } } private void buildPartial0(com.google.cloud.baremetalsolution.v2.NetworkConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.id_ = id_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.bandwidth_ = bandwidth_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.cidr_ = cidr_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.serviceCidr_ = serviceCidr_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.userNote_ = userNote_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.gcpService_ = gcpService_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.vlanSameProject_ = vlanSameProject_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.jumboFramesEnabled_ = jumboFramesEnabled_; } } @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.baremetalsolution.v2.NetworkConfig) { return mergeFrom((com.google.cloud.baremetalsolution.v2.NetworkConfig) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.NetworkConfig other) { if (other == com.google.cloud.baremetalsolution.v2.NetworkConfig.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getId().isEmpty()) { id_ = other.id_; bitField0_ |= 0x00000002; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.bandwidth_ != 0) { setBandwidthValue(other.getBandwidthValue()); } if (vlanAttachmentsBuilder_ == null) { if (!other.vlanAttachments_.isEmpty()) { if (vlanAttachments_.isEmpty()) { vlanAttachments_ = other.vlanAttachments_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureVlanAttachmentsIsMutable(); vlanAttachments_.addAll(other.vlanAttachments_); } onChanged(); } } else { if (!other.vlanAttachments_.isEmpty()) { if (vlanAttachmentsBuilder_.isEmpty()) { vlanAttachmentsBuilder_.dispose(); vlanAttachmentsBuilder_ = null; vlanAttachments_ = other.vlanAttachments_; bitField0_ = (bitField0_ & ~0x00000010); vlanAttachmentsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVlanAttachmentsFieldBuilder() : null; } else { vlanAttachmentsBuilder_.addAllMessages(other.vlanAttachments_); } } } if (!other.getCidr().isEmpty()) { cidr_ = other.cidr_; bitField0_ |= 0x00000020; onChanged(); } if (other.serviceCidr_ != 0) { setServiceCidrValue(other.getServiceCidrValue()); } if (!other.getUserNote().isEmpty()) { userNote_ = other.userNote_; bitField0_ |= 0x00000080; onChanged(); } if (!other.getGcpService().isEmpty()) { gcpService_ = other.gcpService_; bitField0_ |= 0x00000100; onChanged(); } if (other.getVlanSameProject() != false) { setVlanSameProject(other.getVlanSameProject()); } if (other.getJumboFramesEnabled() != false) { setJumboFramesEnabled(other.getJumboFramesEnabled()); } 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: { id_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { type_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { bandwidth_ = input.readEnum(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment m = input.readMessage( com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment .parser(), extensionRegistry); if (vlanAttachmentsBuilder_ == null) { ensureVlanAttachmentsIsMutable(); vlanAttachments_.add(m); } else { vlanAttachmentsBuilder_.addMessage(m); } break; } // case 42 case 50: { cidr_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 56: { serviceCidr_ = input.readEnum(); bitField0_ |= 0x00000040; break; } // case 56 case 66: { userNote_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 66 case 74: { gcpService_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000100; break; } // case 74 case 80: { vlanSameProject_ = input.readBool(); bitField0_ |= 0x00000200; break; } // case 80 case 88: { jumboFramesEnabled_ = input.readBool(); bitField0_ |= 0x00000400; break; } // case 88 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_ = ""; /** * * *
     * Output only. The name of the network config.
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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; } } /** * * *
     * Output only. The name of the network config.
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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; } } /** * * *
     * Output only. The name of the network config.
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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; } /** * * *
     * Output only. The name of the network config.
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * Output only. The name of the network config.
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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 java.lang.Object id_ = ""; /** * * *
     * A transient unique identifier to identify a volume within an
     * ProvisioningConfig request.
     * 
* * string id = 2; * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * A transient unique identifier to identify a volume within an
     * ProvisioningConfig request.
     * 
* * string id = 2; * * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * A transient unique identifier to identify a volume within an
     * ProvisioningConfig request.
     * 
* * string id = 2; * * @param value The id to set. * @return This builder for chaining. */ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * A transient unique identifier to identify a volume within an
     * ProvisioningConfig request.
     * 
* * string id = 2; * * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * A transient unique identifier to identify a volume within an
     * ProvisioningConfig request.
     * 
* * string id = 2; * * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private int type_ = 0; /** * * *
     * The type of this network, either Client or Private.
     * 
* * .google.cloud.baremetalsolution.v2.NetworkConfig.Type type = 3; * * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * * *
     * The type of this network, either Client or Private.
     * 
* * .google.cloud.baremetalsolution.v2.NetworkConfig.Type type = 3; * * @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_ |= 0x00000004; onChanged(); return this; } /** * * *
     * The type of this network, either Client or Private.
     * 
* * .google.cloud.baremetalsolution.v2.NetworkConfig.Type type = 3; * * @return The type. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkConfig.Type getType() { com.google.cloud.baremetalsolution.v2.NetworkConfig.Type result = com.google.cloud.baremetalsolution.v2.NetworkConfig.Type.forNumber(type_); return result == null ? com.google.cloud.baremetalsolution.v2.NetworkConfig.Type.UNRECOGNIZED : result; } /** * * *
     * The type of this network, either Client or Private.
     * 
* * .google.cloud.baremetalsolution.v2.NetworkConfig.Type type = 3; * * @param value The type to set. * @return This builder for chaining. */ public Builder setType(com.google.cloud.baremetalsolution.v2.NetworkConfig.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; type_ = value.getNumber(); onChanged(); return this; } /** * * *
     * The type of this network, either Client or Private.
     * 
* * .google.cloud.baremetalsolution.v2.NetworkConfig.Type type = 3; * * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000004); type_ = 0; onChanged(); return this; } private int bandwidth_ = 0; /** * * *
     * Interconnect bandwidth. Set only when type is CLIENT.
     * 
* * .google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth bandwidth = 4; * * @return The enum numeric value on the wire for bandwidth. */ @java.lang.Override public int getBandwidthValue() { return bandwidth_; } /** * * *
     * Interconnect bandwidth. Set only when type is CLIENT.
     * 
* * .google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth bandwidth = 4; * * @param value The enum numeric value on the wire for bandwidth to set. * @return This builder for chaining. */ public Builder setBandwidthValue(int value) { bandwidth_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Interconnect bandwidth. Set only when type is CLIENT.
     * 
* * .google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth bandwidth = 4; * * @return The bandwidth. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth getBandwidth() { com.google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth result = com.google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth.forNumber(bandwidth_); return result == null ? com.google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth.UNRECOGNIZED : result; } /** * * *
     * Interconnect bandwidth. Set only when type is CLIENT.
     * 
* * .google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth bandwidth = 4; * * @param value The bandwidth to set. * @return This builder for chaining. */ public Builder setBandwidth( com.google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; bandwidth_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Interconnect bandwidth. Set only when type is CLIENT.
     * 
* * .google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth bandwidth = 4; * * @return This builder for chaining. */ public Builder clearBandwidth() { bitField0_ = (bitField0_ & ~0x00000008); bandwidth_ = 0; onChanged(); return this; } private java.util.List vlanAttachments_ = java.util.Collections.emptyList(); private void ensureVlanAttachmentsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { vlanAttachments_ = new java.util.ArrayList< com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment>( vlanAttachments_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment, com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment.Builder, com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachmentOrBuilder> vlanAttachmentsBuilder_; /** * * *
     * List of VLAN attachments. As of now there are always 2 attachments, but it
     * is going to change in  the future (multi vlan).
     * 
* * * repeated .google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment vlan_attachments = 5; * */ public java.util.List getVlanAttachmentsList() { if (vlanAttachmentsBuilder_ == null) { return java.util.Collections.unmodifiableList(vlanAttachments_); } else { return vlanAttachmentsBuilder_.getMessageList(); } } /** * * *
     * List of VLAN attachments. As of now there are always 2 attachments, but it
     * is going to change in  the future (multi vlan).
     * 
* * * repeated .google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment vlan_attachments = 5; * */ public int getVlanAttachmentsCount() { if (vlanAttachmentsBuilder_ == null) { return vlanAttachments_.size(); } else { return vlanAttachmentsBuilder_.getCount(); } } /** * * *
     * List of VLAN attachments. As of now there are always 2 attachments, but it
     * is going to change in  the future (multi vlan).
     * 
* * * repeated .google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment vlan_attachments = 5; * */ public com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment getVlanAttachments(int index) { if (vlanAttachmentsBuilder_ == null) { return vlanAttachments_.get(index); } else { return vlanAttachmentsBuilder_.getMessage(index); } } /** * * *
     * List of VLAN attachments. As of now there are always 2 attachments, but it
     * is going to change in  the future (multi vlan).
     * 
* * * repeated .google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment vlan_attachments = 5; * */ public Builder setVlanAttachments( int index, com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment value) { if (vlanAttachmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVlanAttachmentsIsMutable(); vlanAttachments_.set(index, value); onChanged(); } else { vlanAttachmentsBuilder_.setMessage(index, value); } return this; } /** * * *
     * List of VLAN attachments. As of now there are always 2 attachments, but it
     * is going to change in  the future (multi vlan).
     * 
* * * repeated .google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment vlan_attachments = 5; * */ public Builder setVlanAttachments( int index, com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment.Builder builderForValue) { if (vlanAttachmentsBuilder_ == null) { ensureVlanAttachmentsIsMutable(); vlanAttachments_.set(index, builderForValue.build()); onChanged(); } else { vlanAttachmentsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * List of VLAN attachments. As of now there are always 2 attachments, but it
     * is going to change in  the future (multi vlan).
     * 
* * * repeated .google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment vlan_attachments = 5; * */ public Builder addVlanAttachments( com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment value) { if (vlanAttachmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVlanAttachmentsIsMutable(); vlanAttachments_.add(value); onChanged(); } else { vlanAttachmentsBuilder_.addMessage(value); } return this; } /** * * *
     * List of VLAN attachments. As of now there are always 2 attachments, but it
     * is going to change in  the future (multi vlan).
     * 
* * * repeated .google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment vlan_attachments = 5; * */ public Builder addVlanAttachments( int index, com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment value) { if (vlanAttachmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVlanAttachmentsIsMutable(); vlanAttachments_.add(index, value); onChanged(); } else { vlanAttachmentsBuilder_.addMessage(index, value); } return this; } /** * * *
     * List of VLAN attachments. As of now there are always 2 attachments, but it
     * is going to change in  the future (multi vlan).
     * 
* * * repeated .google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment vlan_attachments = 5; * */ public Builder addVlanAttachments( com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment.Builder builderForValue) { if (vlanAttachmentsBuilder_ == null) { ensureVlanAttachmentsIsMutable(); vlanAttachments_.add(builderForValue.build()); onChanged(); } else { vlanAttachmentsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * List of VLAN attachments. As of now there are always 2 attachments, but it
     * is going to change in  the future (multi vlan).
     * 
* * * repeated .google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment vlan_attachments = 5; * */ public Builder addVlanAttachments( int index, com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment.Builder builderForValue) { if (vlanAttachmentsBuilder_ == null) { ensureVlanAttachmentsIsMutable(); vlanAttachments_.add(index, builderForValue.build()); onChanged(); } else { vlanAttachmentsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * List of VLAN attachments. As of now there are always 2 attachments, but it
     * is going to change in  the future (multi vlan).
     * 
* * * repeated .google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment vlan_attachments = 5; * */ public Builder addAllVlanAttachments( java.lang.Iterable< ? extends com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment> values) { if (vlanAttachmentsBuilder_ == null) { ensureVlanAttachmentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vlanAttachments_); onChanged(); } else { vlanAttachmentsBuilder_.addAllMessages(values); } return this; } /** * * *
     * List of VLAN attachments. As of now there are always 2 attachments, but it
     * is going to change in  the future (multi vlan).
     * 
* * * repeated .google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment vlan_attachments = 5; * */ public Builder clearVlanAttachments() { if (vlanAttachmentsBuilder_ == null) { vlanAttachments_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { vlanAttachmentsBuilder_.clear(); } return this; } /** * * *
     * List of VLAN attachments. As of now there are always 2 attachments, but it
     * is going to change in  the future (multi vlan).
     * 
* * * repeated .google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment vlan_attachments = 5; * */ public Builder removeVlanAttachments(int index) { if (vlanAttachmentsBuilder_ == null) { ensureVlanAttachmentsIsMutable(); vlanAttachments_.remove(index); onChanged(); } else { vlanAttachmentsBuilder_.remove(index); } return this; } /** * * *
     * List of VLAN attachments. As of now there are always 2 attachments, but it
     * is going to change in  the future (multi vlan).
     * 
* * * repeated .google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment vlan_attachments = 5; * */ public com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment.Builder getVlanAttachmentsBuilder(int index) { return getVlanAttachmentsFieldBuilder().getBuilder(index); } /** * * *
     * List of VLAN attachments. As of now there are always 2 attachments, but it
     * is going to change in  the future (multi vlan).
     * 
* * * repeated .google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment vlan_attachments = 5; * */ public com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachmentOrBuilder getVlanAttachmentsOrBuilder(int index) { if (vlanAttachmentsBuilder_ == null) { return vlanAttachments_.get(index); } else { return vlanAttachmentsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * List of VLAN attachments. As of now there are always 2 attachments, but it
     * is going to change in  the future (multi vlan).
     * 
* * * repeated .google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment vlan_attachments = 5; * */ public java.util.List< ? extends com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachmentOrBuilder> getVlanAttachmentsOrBuilderList() { if (vlanAttachmentsBuilder_ != null) { return vlanAttachmentsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(vlanAttachments_); } } /** * * *
     * List of VLAN attachments. As of now there are always 2 attachments, but it
     * is going to change in  the future (multi vlan).
     * 
* * * repeated .google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment vlan_attachments = 5; * */ public com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment.Builder addVlanAttachmentsBuilder() { return getVlanAttachmentsFieldBuilder() .addBuilder( com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment .getDefaultInstance()); } /** * * *
     * List of VLAN attachments. As of now there are always 2 attachments, but it
     * is going to change in  the future (multi vlan).
     * 
* * * repeated .google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment vlan_attachments = 5; * */ public com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment.Builder addVlanAttachmentsBuilder(int index) { return getVlanAttachmentsFieldBuilder() .addBuilder( index, com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment .getDefaultInstance()); } /** * * *
     * List of VLAN attachments. As of now there are always 2 attachments, but it
     * is going to change in  the future (multi vlan).
     * 
* * * repeated .google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment vlan_attachments = 5; * */ public java.util.List< com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment.Builder> getVlanAttachmentsBuilderList() { return getVlanAttachmentsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment, com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment.Builder, com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachmentOrBuilder> getVlanAttachmentsFieldBuilder() { if (vlanAttachmentsBuilder_ == null) { vlanAttachmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment, com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment.Builder, com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachmentOrBuilder>( vlanAttachments_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); vlanAttachments_ = null; } return vlanAttachmentsBuilder_; } private java.lang.Object cidr_ = ""; /** * * *
     * CIDR range of the network.
     * 
* * string cidr = 6; * * @return The cidr. */ public java.lang.String getCidr() { java.lang.Object ref = cidr_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cidr_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * CIDR range of the network.
     * 
* * string cidr = 6; * * @return The bytes for cidr. */ public com.google.protobuf.ByteString getCidrBytes() { java.lang.Object ref = cidr_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cidr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * CIDR range of the network.
     * 
* * string cidr = 6; * * @param value The cidr to set. * @return This builder for chaining. */ public Builder setCidr(java.lang.String value) { if (value == null) { throw new NullPointerException(); } cidr_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * CIDR range of the network.
     * 
* * string cidr = 6; * * @return This builder for chaining. */ public Builder clearCidr() { cidr_ = getDefaultInstance().getCidr(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * * *
     * CIDR range of the network.
     * 
* * string cidr = 6; * * @param value The bytes for cidr to set. * @return This builder for chaining. */ public Builder setCidrBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cidr_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private int serviceCidr_ = 0; /** * * *
     * Service CIDR, if any.
     * 
* * .google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr service_cidr = 7; * * @return The enum numeric value on the wire for serviceCidr. */ @java.lang.Override public int getServiceCidrValue() { return serviceCidr_; } /** * * *
     * Service CIDR, if any.
     * 
* * .google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr service_cidr = 7; * * @param value The enum numeric value on the wire for serviceCidr to set. * @return This builder for chaining. */ public Builder setServiceCidrValue(int value) { serviceCidr_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Service CIDR, if any.
     * 
* * .google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr service_cidr = 7; * * @return The serviceCidr. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr getServiceCidr() { com.google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr result = com.google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr.forNumber(serviceCidr_); return result == null ? com.google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr.UNRECOGNIZED : result; } /** * * *
     * Service CIDR, if any.
     * 
* * .google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr service_cidr = 7; * * @param value The serviceCidr to set. * @return This builder for chaining. */ public Builder setServiceCidr( com.google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; serviceCidr_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Service CIDR, if any.
     * 
* * .google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr service_cidr = 7; * * @return This builder for chaining. */ public Builder clearServiceCidr() { bitField0_ = (bitField0_ & ~0x00000040); serviceCidr_ = 0; onChanged(); return this; } private java.lang.Object userNote_ = ""; /** * * *
     * User note field, it can be used by customers to add additional information
     * for the BMS Ops team .
     * 
* * string user_note = 8; * * @return The userNote. */ public java.lang.String getUserNote() { java.lang.Object ref = userNote_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userNote_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * User note field, it can be used by customers to add additional information
     * for the BMS Ops team .
     * 
* * string user_note = 8; * * @return The bytes for userNote. */ public com.google.protobuf.ByteString getUserNoteBytes() { java.lang.Object ref = userNote_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userNote_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * User note field, it can be used by customers to add additional information
     * for the BMS Ops team .
     * 
* * string user_note = 8; * * @param value The userNote to set. * @return This builder for chaining. */ public Builder setUserNote(java.lang.String value) { if (value == null) { throw new NullPointerException(); } userNote_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * User note field, it can be used by customers to add additional information
     * for the BMS Ops team .
     * 
* * string user_note = 8; * * @return This builder for chaining. */ public Builder clearUserNote() { userNote_ = getDefaultInstance().getUserNote(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * * *
     * User note field, it can be used by customers to add additional information
     * for the BMS Ops team .
     * 
* * string user_note = 8; * * @param value The bytes for userNote to set. * @return This builder for chaining. */ public Builder setUserNoteBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userNote_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } private java.lang.Object gcpService_ = ""; /** * * *
     * The GCP service of the network. Available gcp_service are in
     * https://cloud.google.com/bare-metal/docs/bms-planning.
     * 
* * string gcp_service = 9; * * @return The gcpService. */ public java.lang.String getGcpService() { java.lang.Object ref = gcpService_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcpService_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The GCP service of the network. Available gcp_service are in
     * https://cloud.google.com/bare-metal/docs/bms-planning.
     * 
* * string gcp_service = 9; * * @return The bytes for gcpService. */ public com.google.protobuf.ByteString getGcpServiceBytes() { java.lang.Object ref = gcpService_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcpService_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The GCP service of the network. Available gcp_service are in
     * https://cloud.google.com/bare-metal/docs/bms-planning.
     * 
* * string gcp_service = 9; * * @param value The gcpService to set. * @return This builder for chaining. */ public Builder setGcpService(java.lang.String value) { if (value == null) { throw new NullPointerException(); } gcpService_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * The GCP service of the network. Available gcp_service are in
     * https://cloud.google.com/bare-metal/docs/bms-planning.
     * 
* * string gcp_service = 9; * * @return This builder for chaining. */ public Builder clearGcpService() { gcpService_ = getDefaultInstance().getGcpService(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** * * *
     * The GCP service of the network. Available gcp_service are in
     * https://cloud.google.com/bare-metal/docs/bms-planning.
     * 
* * string gcp_service = 9; * * @param value The bytes for gcpService to set. * @return This builder for chaining. */ public Builder setGcpServiceBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); gcpService_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } private boolean vlanSameProject_; /** * * *
     * Whether the VLAN attachment pair is located in the same project.
     * 
* * bool vlan_same_project = 10; * * @return The vlanSameProject. */ @java.lang.Override public boolean getVlanSameProject() { return vlanSameProject_; } /** * * *
     * Whether the VLAN attachment pair is located in the same project.
     * 
* * bool vlan_same_project = 10; * * @param value The vlanSameProject to set. * @return This builder for chaining. */ public Builder setVlanSameProject(boolean value) { vlanSameProject_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Whether the VLAN attachment pair is located in the same project.
     * 
* * bool vlan_same_project = 10; * * @return This builder for chaining. */ public Builder clearVlanSameProject() { bitField0_ = (bitField0_ & ~0x00000200); vlanSameProject_ = false; onChanged(); return this; } private boolean jumboFramesEnabled_; /** * * *
     * The JumboFramesEnabled option for customer to set.
     * 
* * bool jumbo_frames_enabled = 11; * * @return The jumboFramesEnabled. */ @java.lang.Override public boolean getJumboFramesEnabled() { return jumboFramesEnabled_; } /** * * *
     * The JumboFramesEnabled option for customer to set.
     * 
* * bool jumbo_frames_enabled = 11; * * @param value The jumboFramesEnabled to set. * @return This builder for chaining. */ public Builder setJumboFramesEnabled(boolean value) { jumboFramesEnabled_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * The JumboFramesEnabled option for customer to set.
     * 
* * bool jumbo_frames_enabled = 11; * * @return This builder for chaining. */ public Builder clearJumboFramesEnabled() { bitField0_ = (bitField0_ & ~0x00000400); jumboFramesEnabled_ = false; 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.baremetalsolution.v2.NetworkConfig) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.NetworkConfig) private static final com.google.cloud.baremetalsolution.v2.NetworkConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.NetworkConfig(); } public static com.google.cloud.baremetalsolution.v2.NetworkConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NetworkConfig 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.baremetalsolution.v2.NetworkConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy