Class VRF.Builder (0.45.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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment>
Returns
Type Description
VRF.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VRF.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value VRF.VlanAttachment
Returns
Type Description
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
Name Description
builderForValue VRF.VlanAttachment.Builder
Returns
Type Description
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
Name Description
index int
value VRF.VlanAttachment
Returns
Type Description
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
Name Description
index int
builderForValue VRF.VlanAttachment.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
VRF.VlanAttachment.Builder

build()

public VRF build()
Returns
Type Description
VRF

buildPartial()

public VRF buildPartial()
Returns
Type Description
VRF

clear()

public VRF.Builder clear()
Returns
Type Description
VRF.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public VRF.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
VRF.Builder
Overrides

clearName()

public VRF.Builder clearName()

The name of the VRF.

string name = 1;

Returns
Type Description
VRF.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VRF.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
VRF.Builder

clearState()

public VRF.Builder clearState()

The possible state of VRF.

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

Returns
Type Description
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
Type Description
VRF.Builder

clone()

public VRF.Builder clone()
Returns
Type Description
VRF.Builder
Overrides

getDefaultInstanceForType()

public VRF getDefaultInstanceForType()
Returns
Type Description
VRF

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

The name of the VRF.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the VRF.

string name = 1;

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
VRF.QosPolicyOrBuilder

getState()

public VRF.State getState()

The possible state of VRF.

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

Returns
Type Description
VRF.State

The state.

getStateValue()

public int getStateValue()

The possible state of VRF.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
boolean

Whether the qosPolicy field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VRF other)

public VRF.Builder mergeFrom(VRF other)
Parameter
Name Description
other VRF
Returns
Type Description
VRF.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VRF.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VRF.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public VRF.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value VRF.QosPolicy
Returns
Type Description
VRF.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VRF.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
VRF.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public VRF.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VRF.Builder
Overrides

setName(String value)

public VRF.Builder setName(String value)

The name of the VRF.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
VRF.Builder

This builder for chaining.

setNameBytes(ByteString value)

public VRF.Builder setNameBytes(ByteString value)

The name of the VRF.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
value VRF.QosPolicy
Returns
Type Description
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
Name Description
builderForValue VRF.QosPolicy.Builder
Returns
Type Description
VRF.Builder

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

public VRF.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value VRF.State

The state to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
VRF.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final VRF.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
value VRF.VlanAttachment
Returns
Type Description
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
Name Description
index int
builderForValue VRF.VlanAttachment.Builder
Returns
Type Description
VRF.Builder