Class VRF.Builder (0.27.0)

public static final class VRF.Builder extends GeneratedMessageV3.Builder<VRF.Builder> implements VRFOrBuilder

A network VRF.

Protobuf type google.cloud.baremetalsolution.v2.VRF

Implements

VRFOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllVlanAttachments(Iterable<? extends VRF.VlanAttachment> values)

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;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment>
Returns
TypeDescription
VRF.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VRF.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VRF.Builder
Overrides

addVlanAttachments(VRF.VlanAttachment value)

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;

Parameter
NameDescription
valueVRF.VlanAttachment
Returns
TypeDescription
VRF.Builder

addVlanAttachments(VRF.VlanAttachment.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueVRF.VlanAttachment.Builder
Returns
TypeDescription
VRF.Builder

addVlanAttachments(int index, VRF.VlanAttachment value)

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;

Parameters
NameDescription
indexint
valueVRF.VlanAttachment
Returns
TypeDescription
VRF.Builder

addVlanAttachments(int index, VRF.VlanAttachment.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueVRF.VlanAttachment.Builder
Returns
TypeDescription
VRF.Builder

addVlanAttachmentsBuilder()

public VRF.VlanAttachment.Builder addVlanAttachmentsBuilder()

The list of VLAN attachments for the VRF.

repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7;

Returns
TypeDescription
VRF.VlanAttachment.Builder

addVlanAttachmentsBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
VRF.VlanAttachment.Builder

build()

public VRF build()
Returns
TypeDescription
VRF

buildPartial()

public VRF buildPartial()
Returns
TypeDescription
VRF

clear()

public VRF.Builder clear()
Returns
TypeDescription
VRF.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public VRF.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
VRF.Builder
Overrides

clearName()

public VRF.Builder clearName()

The name of the VRF.

string name = 1;

Returns
TypeDescription
VRF.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VRF.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
VRF.Builder
Overrides

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;

Returns
TypeDescription
VRF.Builder

clearState()

public VRF.Builder clearState()

The possible state of VRF.

.google.cloud.baremetalsolution.v2.VRF.State state = 5;

Returns
TypeDescription
VRF.Builder

This builder for chaining.

clearVlanAttachments()

public VRF.Builder clearVlanAttachments()

The list of VLAN attachments for the VRF.

repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7;

Returns
TypeDescription
VRF.Builder

clone()

public VRF.Builder clone()
Returns
TypeDescription
VRF.Builder
Overrides

getDefaultInstanceForType()

public VRF getDefaultInstanceForType()
Returns
TypeDescription
VRF

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

The name of the VRF.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the VRF.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

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;

Returns
TypeDescription
VRF.QosPolicy

The qosPolicy.

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;

Returns
TypeDescription
VRF.QosPolicy.Builder

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;

Returns
TypeDescription
VRF.QosPolicyOrBuilder

getState()

public VRF.State getState()

The possible state of VRF.

.google.cloud.baremetalsolution.v2.VRF.State state = 5;

Returns
TypeDescription
VRF.State

The state.

getStateValue()

public int getStateValue()

The possible state of VRF.

.google.cloud.baremetalsolution.v2.VRF.State state = 5;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getVlanAttachments(int index)

public VRF.VlanAttachment getVlanAttachments(int index)

The list of VLAN attachments for the VRF.

repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
VRF.VlanAttachment

getVlanAttachmentsBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
VRF.VlanAttachment.Builder

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;

Returns
TypeDescription
List<Builder>

getVlanAttachmentsCount()

public int getVlanAttachmentsCount()

The list of VLAN attachments for the VRF.

repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7;

Returns
TypeDescription
int

getVlanAttachmentsList()

public List<VRF.VlanAttachment> getVlanAttachmentsList()

The list of VLAN attachments for the VRF.

repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7;

Returns
TypeDescription
List<VlanAttachment>

getVlanAttachmentsOrBuilder(int index)

public VRF.VlanAttachmentOrBuilder getVlanAttachmentsOrBuilder(int index)

The list of VLAN attachments for the VRF.

repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
VRF.VlanAttachmentOrBuilder

getVlanAttachmentsOrBuilderList()

public List<? extends VRF.VlanAttachmentOrBuilder> getVlanAttachmentsOrBuilderList()

The list of VLAN attachments for the VRF.

repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7;

Returns
TypeDescription
List<? extends com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder>

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;

Returns
TypeDescription
boolean

Whether the qosPolicy field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VRF other)

public VRF.Builder mergeFrom(VRF other)
Parameter
NameDescription
otherVRF
Returns
TypeDescription
VRF.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VRF.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VRF.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public VRF.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
VRF.Builder
Overrides

mergeQosPolicy(VRF.QosPolicy value)

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;

Parameter
NameDescription
valueVRF.QosPolicy
Returns
TypeDescription
VRF.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VRF.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VRF.Builder
Overrides

removeVlanAttachments(int index)

public VRF.Builder removeVlanAttachments(int index)

The list of VLAN attachments for the VRF.

repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
VRF.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public VRF.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VRF.Builder
Overrides

setName(String value)

public VRF.Builder setName(String value)

The name of the VRF.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
VRF.Builder

This builder for chaining.

setNameBytes(ByteString value)

public VRF.Builder setNameBytes(ByteString value)

The name of the VRF.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
VRF.Builder

This builder for chaining.

setQosPolicy(VRF.QosPolicy value)

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;

Parameter
NameDescription
valueVRF.QosPolicy
Returns
TypeDescription
VRF.Builder

setQosPolicy(VRF.QosPolicy.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueVRF.QosPolicy.Builder
Returns
TypeDescription
VRF.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public VRF.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VRF.Builder
Overrides

setState(VRF.State value)

public VRF.Builder setState(VRF.State value)

The possible state of VRF.

.google.cloud.baremetalsolution.v2.VRF.State state = 5;

Parameter
NameDescription
valueVRF.State

The state to set.

Returns
TypeDescription
VRF.Builder

This builder for chaining.

setStateValue(int value)

public VRF.Builder setStateValue(int value)

The possible state of VRF.

.google.cloud.baremetalsolution.v2.VRF.State state = 5;

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
VRF.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final VRF.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VRF.Builder
Overrides

setVlanAttachments(int index, VRF.VlanAttachment value)

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;

Parameters
NameDescription
indexint
valueVRF.VlanAttachment
Returns
TypeDescription
VRF.Builder

setVlanAttachments(int index, VRF.VlanAttachment.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueVRF.VlanAttachment.Builder
Returns
TypeDescription
VRF.Builder