Class VRF.Builder

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

    public static final class VRF.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<VRF.Builder>
    implements VRFOrBuilder
     A network VRF.
     
    Protobuf type google.cloud.baremetalsolution.v2.VRF
    • 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<VRF.Builder>
      • clear

        public VRF.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<VRF.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<VRF.Builder>
      • getDefaultInstanceForType

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

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

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

        public VRF.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<VRF.Builder>
      • setField

        public VRF.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<VRF.Builder>
      • clearField

        public VRF.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<VRF.Builder>
      • clearOneof

        public VRF.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<VRF.Builder>
      • setRepeatedField

        public VRF.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<VRF.Builder>
      • addRepeatedField

        public VRF.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<VRF.Builder>
      • mergeFrom

        public VRF.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<VRF.Builder>
      • isInitialized

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

        public VRF.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<VRF.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         The name of the VRF.
         
        string name = 1;
        Specified by:
        getName in interface VRFOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The name of the VRF.
         
        string name = 1;
        Specified by:
        getNameBytes in interface VRFOrBuilder
        Returns:
        The bytes for name.
      • setName

        public VRF.Builder setName​(String value)
         The name of the VRF.
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public VRF.Builder clearName()
         The name of the VRF.
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public VRF.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The name of the VRF.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getStateValue

        public int getStateValue()
         The possible state of VRF.
         
        .google.cloud.baremetalsolution.v2.VRF.State state = 5;
        Specified by:
        getStateValue in interface VRFOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public VRF.Builder setStateValue​(int value)
         The possible state of VRF.
         
        .google.cloud.baremetalsolution.v2.VRF.State state = 5;
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • getState

        public VRF.State getState()
         The possible state of VRF.
         
        .google.cloud.baremetalsolution.v2.VRF.State state = 5;
        Specified by:
        getState in interface VRFOrBuilder
        Returns:
        The state.
      • setState

        public VRF.Builder setState​(VRF.State value)
         The possible state of VRF.
         
        .google.cloud.baremetalsolution.v2.VRF.State state = 5;
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public VRF.Builder clearState()
         The possible state of VRF.
         
        .google.cloud.baremetalsolution.v2.VRF.State state = 5;
        Returns:
        This builder for chaining.
      • hasQosPolicy

        public boolean hasQosPolicy()
         The QOS policy applied to this VRF.
         The value is only meaningful when all the vlan attachments have the same
         QoS. This field should not be used for new integrations, use vlan
         attachment level qos instead. The field is left for backward-compatibility.
         
        .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6;
        Specified by:
        hasQosPolicy in interface VRFOrBuilder
        Returns:
        Whether the qosPolicy field is set.
      • getQosPolicy

        public VRF.QosPolicy getQosPolicy()
         The QOS policy applied to this VRF.
         The value is only meaningful when all the vlan attachments have the same
         QoS. This field should not be used for new integrations, use vlan
         attachment level qos instead. The field is left for backward-compatibility.
         
        .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6;
        Specified by:
        getQosPolicy in interface VRFOrBuilder
        Returns:
        The qosPolicy.
      • setQosPolicy

        public VRF.Builder setQosPolicy​(VRF.QosPolicy value)
         The QOS policy applied to this VRF.
         The value is only meaningful when all the vlan attachments have the same
         QoS. This field should not be used for new integrations, use vlan
         attachment level qos instead. The field is left for backward-compatibility.
         
        .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6;
      • setQosPolicy

        public VRF.Builder setQosPolicy​(VRF.QosPolicy.Builder builderForValue)
         The QOS policy applied to this VRF.
         The value is only meaningful when all the vlan attachments have the same
         QoS. This field should not be used for new integrations, use vlan
         attachment level qos instead. The field is left for backward-compatibility.
         
        .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6;
      • mergeQosPolicy

        public VRF.Builder mergeQosPolicy​(VRF.QosPolicy value)
         The QOS policy applied to this VRF.
         The value is only meaningful when all the vlan attachments have the same
         QoS. This field should not be used for new integrations, use vlan
         attachment level qos instead. The field is left for backward-compatibility.
         
        .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6;
      • clearQosPolicy

        public VRF.Builder clearQosPolicy()
         The QOS policy applied to this VRF.
         The value is only meaningful when all the vlan attachments have the same
         QoS. This field should not be used for new integrations, use vlan
         attachment level qos instead. The field is left for backward-compatibility.
         
        .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6;
      • getQosPolicyBuilder

        public VRF.QosPolicy.Builder getQosPolicyBuilder()
         The QOS policy applied to this VRF.
         The value is only meaningful when all the vlan attachments have the same
         QoS. This field should not be used for new integrations, use vlan
         attachment level qos instead. The field is left for backward-compatibility.
         
        .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6;
      • getQosPolicyOrBuilder

        public VRF.QosPolicyOrBuilder getQosPolicyOrBuilder()
         The QOS policy applied to this VRF.
         The value is only meaningful when all the vlan attachments have the same
         QoS. This field should not be used for new integrations, use vlan
         attachment level qos instead. The field is left for backward-compatibility.
         
        .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6;
        Specified by:
        getQosPolicyOrBuilder in interface VRFOrBuilder
      • getVlanAttachmentsCount

        public int getVlanAttachmentsCount()
         The list of VLAN attachments for the VRF.
         
        repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7;
        Specified by:
        getVlanAttachmentsCount in interface VRFOrBuilder
      • getVlanAttachments

        public VRF.VlanAttachment getVlanAttachments​(int index)
         The list of VLAN attachments for the VRF.
         
        repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7;
        Specified by:
        getVlanAttachments in interface VRFOrBuilder
      • setVlanAttachments

        public VRF.Builder setVlanAttachments​(int index,
                                              VRF.VlanAttachment value)
         The list of VLAN attachments for the VRF.
         
        repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7;
      • setVlanAttachments

        public VRF.Builder setVlanAttachments​(int index,
                                              VRF.VlanAttachment.Builder builderForValue)
         The list of VLAN attachments for the VRF.
         
        repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7;
      • addVlanAttachments

        public VRF.Builder addVlanAttachments​(VRF.VlanAttachment value)
         The list of VLAN attachments for the VRF.
         
        repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7;
      • addVlanAttachments

        public VRF.Builder addVlanAttachments​(int index,
                                              VRF.VlanAttachment value)
         The list of VLAN attachments for the VRF.
         
        repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7;
      • addVlanAttachments

        public VRF.Builder addVlanAttachments​(VRF.VlanAttachment.Builder builderForValue)
         The list of VLAN attachments for the VRF.
         
        repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7;
      • addVlanAttachments

        public VRF.Builder addVlanAttachments​(int index,
                                              VRF.VlanAttachment.Builder builderForValue)
         The list of VLAN attachments for the VRF.
         
        repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7;
      • addAllVlanAttachments

        public VRF.Builder addAllVlanAttachments​(Iterable<? extends VRF.VlanAttachment> values)
         The list of VLAN attachments for the VRF.
         
        repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7;
      • clearVlanAttachments

        public VRF.Builder clearVlanAttachments()
         The list of VLAN attachments for the VRF.
         
        repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7;
      • removeVlanAttachments

        public VRF.Builder removeVlanAttachments​(int index)
         The list of VLAN attachments for the VRF.
         
        repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7;
      • getVlanAttachmentsBuilder

        public VRF.VlanAttachment.Builder getVlanAttachmentsBuilder​(int index)
         The list of VLAN attachments for the VRF.
         
        repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7;
      • addVlanAttachmentsBuilder

        public VRF.VlanAttachment.Builder addVlanAttachmentsBuilder()
         The list of VLAN attachments for the VRF.
         
        repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7;
      • addVlanAttachmentsBuilder

        public VRF.VlanAttachment.Builder addVlanAttachmentsBuilder​(int index)
         The list of VLAN attachments for the VRF.
         
        repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7;
      • getVlanAttachmentsBuilderList

        public List<VRF.VlanAttachment.Builder> getVlanAttachmentsBuilderList()
         The list of VLAN attachments for the VRF.
         
        repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7;
      • setUnknownFields

        public final VRF.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<VRF.Builder>
      • mergeUnknownFields

        public final VRF.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<VRF.Builder>