Class NetworkConfig.Builder

  • All Implemented Interfaces:
    NetworkConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    NetworkConfig

    public static final class NetworkConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<NetworkConfig.Builder>
    implements NetworkConfigOrBuilder
     Configuration parameters for a new network.
     
    Protobuf type google.cloud.baremetalsolution.v2.NetworkConfig
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkConfig.Builder>
      • clear

        public NetworkConfig.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkConfig.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkConfig.Builder>
      • getDefaultInstanceForType

        public NetworkConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public NetworkConfig build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public NetworkConfig buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public NetworkConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkConfig.Builder>
      • setField

        public NetworkConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                              Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkConfig.Builder>
      • clearField

        public NetworkConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkConfig.Builder>
      • clearOneof

        public NetworkConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkConfig.Builder>
      • setRepeatedField

        public NetworkConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                      int index,
                                                      Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkConfig.Builder>
      • addRepeatedField

        public NetworkConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                      Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkConfig.Builder>
      • mergeFrom

        public NetworkConfig.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NetworkConfig.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkConfig.Builder>
      • mergeFrom

        public NetworkConfig.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NetworkConfig.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Output only. The name of the network config.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface NetworkConfigOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The name of the network config.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface NetworkConfigOrBuilder
        Returns:
        The bytes for name.
      • setName

        public NetworkConfig.Builder setName​(String value)
         Output only. The name of the network config.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public NetworkConfig.Builder clearName()
         Output only. The name of the network config.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public NetworkConfig.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. The name of the network config.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getId

        public String getId()
         A transient unique identifier to identify a volume within an
         ProvisioningConfig request.
         
        string id = 2;
        Specified by:
        getId in interface NetworkConfigOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
         A transient unique identifier to identify a volume within an
         ProvisioningConfig request.
         
        string id = 2;
        Specified by:
        getIdBytes in interface NetworkConfigOrBuilder
        Returns:
        The bytes for id.
      • setId

        public NetworkConfig.Builder setId​(String value)
         A transient unique identifier to identify a volume within an
         ProvisioningConfig request.
         
        string id = 2;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public NetworkConfig.Builder clearId()
         A transient unique identifier to identify a volume within an
         ProvisioningConfig request.
         
        string id = 2;
        Returns:
        This builder for chaining.
      • setIdBytes

        public NetworkConfig.Builder setIdBytes​(com.google.protobuf.ByteString value)
         A transient unique identifier to identify a volume within an
         ProvisioningConfig request.
         
        string id = 2;
        Parameters:
        value - The bytes for id to set.
        Returns:
        This builder for chaining.
      • getTypeValue

        public int getTypeValue()
         The type of this network, either Client or Private.
         
        .google.cloud.baremetalsolution.v2.NetworkConfig.Type type = 3;
        Specified by:
        getTypeValue in interface NetworkConfigOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public NetworkConfig.Builder setTypeValue​(int value)
         The type of this network, either Client or Private.
         
        .google.cloud.baremetalsolution.v2.NetworkConfig.Type type = 3;
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • getType

        public NetworkConfig.Type getType()
         The type of this network, either Client or Private.
         
        .google.cloud.baremetalsolution.v2.NetworkConfig.Type type = 3;
        Specified by:
        getType in interface NetworkConfigOrBuilder
        Returns:
        The type.
      • setType

        public NetworkConfig.Builder setType​(NetworkConfig.Type value)
         The type of this network, either Client or Private.
         
        .google.cloud.baremetalsolution.v2.NetworkConfig.Type type = 3;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public NetworkConfig.Builder clearType()
         The type of this network, either Client or Private.
         
        .google.cloud.baremetalsolution.v2.NetworkConfig.Type type = 3;
        Returns:
        This builder for chaining.
      • getBandwidthValue

        public int getBandwidthValue()
         Interconnect bandwidth. Set only when type is CLIENT.
         
        .google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth bandwidth = 4;
        Specified by:
        getBandwidthValue in interface NetworkConfigOrBuilder
        Returns:
        The enum numeric value on the wire for bandwidth.
      • setBandwidthValue

        public NetworkConfig.Builder setBandwidthValue​(int value)
         Interconnect bandwidth. Set only when type is CLIENT.
         
        .google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth bandwidth = 4;
        Parameters:
        value - The enum numeric value on the wire for bandwidth to set.
        Returns:
        This builder for chaining.
      • setBandwidth

        public NetworkConfig.Builder setBandwidth​(NetworkConfig.Bandwidth value)
         Interconnect bandwidth. Set only when type is CLIENT.
         
        .google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth bandwidth = 4;
        Parameters:
        value - The bandwidth to set.
        Returns:
        This builder for chaining.
      • clearBandwidth

        public NetworkConfig.Builder clearBandwidth()
         Interconnect bandwidth. Set only when type is CLIENT.
         
        .google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth bandwidth = 4;
        Returns:
        This builder for chaining.
      • getVlanAttachmentsCount

        public int getVlanAttachmentsCount()
         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;
        Specified by:
        getVlanAttachmentsCount in interface NetworkConfigOrBuilder
      • getVlanAttachments

        public NetworkConfig.IntakeVlanAttachment getVlanAttachments​(int 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;
        Specified by:
        getVlanAttachments in interface NetworkConfigOrBuilder
      • setVlanAttachments

        public NetworkConfig.Builder setVlanAttachments​(int index,
                                                        NetworkConfig.IntakeVlanAttachment value)
         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;
      • setVlanAttachments

        public NetworkConfig.Builder setVlanAttachments​(int index,
                                                        NetworkConfig.IntakeVlanAttachment.Builder builderForValue)
         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;
      • addVlanAttachments

        public NetworkConfig.Builder addVlanAttachments​(NetworkConfig.IntakeVlanAttachment value)
         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;
      • addVlanAttachments

        public NetworkConfig.Builder addVlanAttachments​(int index,
                                                        NetworkConfig.IntakeVlanAttachment value)
         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;
      • addVlanAttachments

        public NetworkConfig.Builder addVlanAttachments​(NetworkConfig.IntakeVlanAttachment.Builder builderForValue)
         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;
      • addVlanAttachments

        public NetworkConfig.Builder addVlanAttachments​(int index,
                                                        NetworkConfig.IntakeVlanAttachment.Builder builderForValue)
         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;
      • addAllVlanAttachments

        public NetworkConfig.Builder addAllVlanAttachments​(Iterable<? extends NetworkConfig.IntakeVlanAttachment> values)
         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;
      • clearVlanAttachments

        public NetworkConfig.Builder clearVlanAttachments()
         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;
      • removeVlanAttachments

        public NetworkConfig.Builder removeVlanAttachments​(int 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;
      • getVlanAttachmentsBuilder

        public NetworkConfig.IntakeVlanAttachment.Builder getVlanAttachmentsBuilder​(int 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;
      • addVlanAttachmentsBuilder

        public NetworkConfig.IntakeVlanAttachment.Builder addVlanAttachmentsBuilder()
         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;
      • addVlanAttachmentsBuilder

        public NetworkConfig.IntakeVlanAttachment.Builder addVlanAttachmentsBuilder​(int 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;
      • getVlanAttachmentsBuilderList

        public List<NetworkConfig.IntakeVlanAttachment.Builder> getVlanAttachmentsBuilderList()
         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;
      • getCidrBytes

        public com.google.protobuf.ByteString getCidrBytes()
         CIDR range of the network.
         
        string cidr = 6;
        Specified by:
        getCidrBytes in interface NetworkConfigOrBuilder
        Returns:
        The bytes for cidr.
      • setCidr

        public NetworkConfig.Builder setCidr​(String value)
         CIDR range of the network.
         
        string cidr = 6;
        Parameters:
        value - The cidr to set.
        Returns:
        This builder for chaining.
      • clearCidr

        public NetworkConfig.Builder clearCidr()
         CIDR range of the network.
         
        string cidr = 6;
        Returns:
        This builder for chaining.
      • setCidrBytes

        public NetworkConfig.Builder setCidrBytes​(com.google.protobuf.ByteString value)
         CIDR range of the network.
         
        string cidr = 6;
        Parameters:
        value - The bytes for cidr to set.
        Returns:
        This builder for chaining.
      • getServiceCidrValue

        public int getServiceCidrValue()
         Service CIDR, if any.
         
        .google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr service_cidr = 7;
        Specified by:
        getServiceCidrValue in interface NetworkConfigOrBuilder
        Returns:
        The enum numeric value on the wire for serviceCidr.
      • setServiceCidrValue

        public NetworkConfig.Builder setServiceCidrValue​(int value)
         Service CIDR, if any.
         
        .google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr service_cidr = 7;
        Parameters:
        value - The enum numeric value on the wire for serviceCidr to set.
        Returns:
        This builder for chaining.
      • setServiceCidr

        public NetworkConfig.Builder setServiceCidr​(NetworkConfig.ServiceCidr value)
         Service CIDR, if any.
         
        .google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr service_cidr = 7;
        Parameters:
        value - The serviceCidr to set.
        Returns:
        This builder for chaining.
      • clearServiceCidr

        public NetworkConfig.Builder clearServiceCidr()
         Service CIDR, if any.
         
        .google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr service_cidr = 7;
        Returns:
        This builder for chaining.
      • getUserNote

        public String getUserNote()
         User note field, it can be used by customers to add additional information
         for the BMS Ops team .
         
        string user_note = 8;
        Specified by:
        getUserNote in interface NetworkConfigOrBuilder
        Returns:
        The userNote.
      • getUserNoteBytes

        public com.google.protobuf.ByteString getUserNoteBytes()
         User note field, it can be used by customers to add additional information
         for the BMS Ops team .
         
        string user_note = 8;
        Specified by:
        getUserNoteBytes in interface NetworkConfigOrBuilder
        Returns:
        The bytes for userNote.
      • setUserNote

        public NetworkConfig.Builder setUserNote​(String value)
         User note field, it can be used by customers to add additional information
         for the BMS Ops team .
         
        string user_note = 8;
        Parameters:
        value - The userNote to set.
        Returns:
        This builder for chaining.
      • clearUserNote

        public NetworkConfig.Builder clearUserNote()
         User note field, it can be used by customers to add additional information
         for the BMS Ops team .
         
        string user_note = 8;
        Returns:
        This builder for chaining.
      • setUserNoteBytes

        public NetworkConfig.Builder setUserNoteBytes​(com.google.protobuf.ByteString value)
         User note field, it can be used by customers to add additional information
         for the BMS Ops team .
         
        string user_note = 8;
        Parameters:
        value - The bytes for userNote to set.
        Returns:
        This builder for chaining.
      • getGcpService

        public String getGcpService()
         The GCP service of the network. Available gcp_service are in
         https://cloud.google.com/bare-metal/docs/bms-planning.
         
        string gcp_service = 9;
        Specified by:
        getGcpService in interface NetworkConfigOrBuilder
        Returns:
        The gcpService.
      • getGcpServiceBytes

        public com.google.protobuf.ByteString getGcpServiceBytes()
         The GCP service of the network. Available gcp_service are in
         https://cloud.google.com/bare-metal/docs/bms-planning.
         
        string gcp_service = 9;
        Specified by:
        getGcpServiceBytes in interface NetworkConfigOrBuilder
        Returns:
        The bytes for gcpService.
      • setGcpService

        public NetworkConfig.Builder setGcpService​(String value)
         The GCP service of the network. Available gcp_service are in
         https://cloud.google.com/bare-metal/docs/bms-planning.
         
        string gcp_service = 9;
        Parameters:
        value - The gcpService to set.
        Returns:
        This builder for chaining.
      • clearGcpService

        public NetworkConfig.Builder clearGcpService()
         The GCP service of the network. Available gcp_service are in
         https://cloud.google.com/bare-metal/docs/bms-planning.
         
        string gcp_service = 9;
        Returns:
        This builder for chaining.
      • setGcpServiceBytes

        public NetworkConfig.Builder setGcpServiceBytes​(com.google.protobuf.ByteString value)
         The GCP service of the network. Available gcp_service are in
         https://cloud.google.com/bare-metal/docs/bms-planning.
         
        string gcp_service = 9;
        Parameters:
        value - The bytes for gcpService to set.
        Returns:
        This builder for chaining.
      • getVlanSameProject

        public boolean getVlanSameProject()
         Whether the VLAN attachment pair is located in the same project.
         
        bool vlan_same_project = 10;
        Specified by:
        getVlanSameProject in interface NetworkConfigOrBuilder
        Returns:
        The vlanSameProject.
      • setVlanSameProject

        public NetworkConfig.Builder setVlanSameProject​(boolean value)
         Whether the VLAN attachment pair is located in the same project.
         
        bool vlan_same_project = 10;
        Parameters:
        value - The vlanSameProject to set.
        Returns:
        This builder for chaining.
      • clearVlanSameProject

        public NetworkConfig.Builder clearVlanSameProject()
         Whether the VLAN attachment pair is located in the same project.
         
        bool vlan_same_project = 10;
        Returns:
        This builder for chaining.
      • getJumboFramesEnabled

        public boolean getJumboFramesEnabled()
         The JumboFramesEnabled option for customer to set.
         
        bool jumbo_frames_enabled = 11;
        Specified by:
        getJumboFramesEnabled in interface NetworkConfigOrBuilder
        Returns:
        The jumboFramesEnabled.
      • setJumboFramesEnabled

        public NetworkConfig.Builder setJumboFramesEnabled​(boolean value)
         The JumboFramesEnabled option for customer to set.
         
        bool jumbo_frames_enabled = 11;
        Parameters:
        value - The jumboFramesEnabled to set.
        Returns:
        This builder for chaining.
      • clearJumboFramesEnabled

        public NetworkConfig.Builder clearJumboFramesEnabled()
         The JumboFramesEnabled option for customer to set.
         
        bool jumbo_frames_enabled = 11;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final NetworkConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkConfig.Builder>
      • mergeUnknownFields

        public final NetworkConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkConfig.Builder>