Class NetworkConfig.Builder (0.40.0)

public static final class NetworkConfig.Builder extends GeneratedMessageV3.Builder<NetworkConfig.Builder> implements NetworkConfigOrBuilder

Configuration parameters for a new network.

Protobuf type google.cloud.baremetalsolution.v2.NetworkConfig

Static Methods

getDescriptor()

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

Methods

addAllVlanAttachments(Iterable<? extends NetworkConfig.IntakeVlanAttachment> values)

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;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addVlanAttachments(NetworkConfig.IntakeVlanAttachment value)

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;

Parameter
NameDescription
valueNetworkConfig.IntakeVlanAttachment
Returns
TypeDescription
NetworkConfig.Builder

addVlanAttachments(NetworkConfig.IntakeVlanAttachment.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueNetworkConfig.IntakeVlanAttachment.Builder
Returns
TypeDescription
NetworkConfig.Builder

addVlanAttachments(int index, NetworkConfig.IntakeVlanAttachment value)

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;

Parameters
NameDescription
indexint
valueNetworkConfig.IntakeVlanAttachment
Returns
TypeDescription
NetworkConfig.Builder

addVlanAttachments(int index, NetworkConfig.IntakeVlanAttachment.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueNetworkConfig.IntakeVlanAttachment.Builder
Returns
TypeDescription
NetworkConfig.Builder

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;

Returns
TypeDescription
NetworkConfig.IntakeVlanAttachment.Builder

addVlanAttachmentsBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkConfig.IntakeVlanAttachment.Builder

build()

public NetworkConfig build()
Returns
TypeDescription
NetworkConfig

buildPartial()

public NetworkConfig buildPartial()
Returns
TypeDescription
NetworkConfig

clear()

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

clearBandwidth()

public NetworkConfig.Builder clearBandwidth()

Interconnect bandwidth. Set only when type is CLIENT.

.google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth bandwidth = 4;

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

clearCidr()

public NetworkConfig.Builder clearCidr()

CIDR range of the network.

string cidr = 6;

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

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
TypeDescription
NetworkConfig.Builder

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
TypeDescription
NetworkConfig.Builder

This builder for chaining.

clearJumboFramesEnabled()

public NetworkConfig.Builder clearJumboFramesEnabled()

The JumboFramesEnabled option for customer to set.

bool jumbo_frames_enabled = 11;

Returns
TypeDescription
NetworkConfig.Builder

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
TypeDescription
NetworkConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearServiceCidr()

public NetworkConfig.Builder clearServiceCidr()

Service CIDR, if any.

.google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr service_cidr = 7;

Returns
TypeDescription
NetworkConfig.Builder

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
TypeDescription
NetworkConfig.Builder

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
TypeDescription
NetworkConfig.Builder

This builder for chaining.

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;

Returns
TypeDescription
NetworkConfig.Builder

clearVlanSameProject()

public NetworkConfig.Builder clearVlanSameProject()

Whether the VLAN attachment pair is located in the same project.

bool vlan_same_project = 10;

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

clone()

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

getBandwidth()

public NetworkConfig.Bandwidth getBandwidth()

Interconnect bandwidth. Set only when type is CLIENT.

.google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth bandwidth = 4;

Returns
TypeDescription
NetworkConfig.Bandwidth

The bandwidth.

getBandwidthValue()

public int getBandwidthValue()

Interconnect bandwidth. Set only when type is CLIENT.

.google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth bandwidth = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for bandwidth.

getCidr()

public String getCidr()

CIDR range of the network.

string cidr = 6;

Returns
TypeDescription
String

The cidr.

getCidrBytes()

public ByteString getCidrBytes()

CIDR range of the network.

string cidr = 6;

Returns
TypeDescription
ByteString

The bytes for cidr.

getDefaultInstanceForType()

public NetworkConfig getDefaultInstanceForType()
Returns
TypeDescription
NetworkConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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;

Returns
TypeDescription
String

The gcpService.

getGcpServiceBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for gcpService.

getId()

public String getId()

A transient unique identifier to identify a volume within an ProvisioningConfig request.

string id = 2;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

A transient unique identifier to identify a volume within an ProvisioningConfig request.

string id = 2;

Returns
TypeDescription
ByteString

The bytes for id.

getJumboFramesEnabled()

public boolean getJumboFramesEnabled()

The JumboFramesEnabled option for customer to set.

bool jumbo_frames_enabled = 11;

Returns
TypeDescription
boolean

The jumboFramesEnabled.

getName()

public String getName()

Output only. The name of the network config.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The name of the network config.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getServiceCidr()

public NetworkConfig.ServiceCidr getServiceCidr()

Service CIDR, if any.

.google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr service_cidr = 7;

Returns
TypeDescription
NetworkConfig.ServiceCidr

The serviceCidr.

getServiceCidrValue()

public int getServiceCidrValue()

Service CIDR, if any.

.google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr service_cidr = 7;

Returns
TypeDescription
int

The enum numeric value on the wire for serviceCidr.

getType()

public NetworkConfig.Type getType()

The type of this network, either Client or Private.

.google.cloud.baremetalsolution.v2.NetworkConfig.Type type = 3;

Returns
TypeDescription
NetworkConfig.Type

The type.

getTypeValue()

public int getTypeValue()

The type of this network, either Client or Private.

.google.cloud.baremetalsolution.v2.NetworkConfig.Type type = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for type.

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;

Returns
TypeDescription
String

The userNote.

getUserNoteBytes()

public ByteString getUserNoteBytes()

User note field, it can be used by customers to add additional information for the BMS Ops team .

string user_note = 8;

Returns
TypeDescription
ByteString

The bytes for userNote.

getVlanAttachments(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkConfig.IntakeVlanAttachment

getVlanAttachmentsBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkConfig.IntakeVlanAttachment.Builder

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;

Returns
TypeDescription
List<Builder>

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;

Returns
TypeDescription
int

getVlanAttachmentsList()

public List<NetworkConfig.IntakeVlanAttachment> getVlanAttachmentsList()

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;

Returns
TypeDescription
List<IntakeVlanAttachment>

getVlanAttachmentsOrBuilder(int index)

public NetworkConfig.IntakeVlanAttachmentOrBuilder getVlanAttachmentsOrBuilder(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;

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkConfig.IntakeVlanAttachmentOrBuilder

getVlanAttachmentsOrBuilderList()

public List<? extends NetworkConfig.IntakeVlanAttachmentOrBuilder> getVlanAttachmentsOrBuilderList()

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;

Returns
TypeDescription
List<? extends com.google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachmentOrBuilder>

getVlanSameProject()

public boolean getVlanSameProject()

Whether the VLAN attachment pair is located in the same project.

bool vlan_same_project = 10;

Returns
TypeDescription
boolean

The vlanSameProject.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NetworkConfig other)

public NetworkConfig.Builder mergeFrom(NetworkConfig other)
Parameter
NameDescription
otherNetworkConfig
Returns
TypeDescription
NetworkConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeVlanAttachments(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkConfig.Builder

setBandwidth(NetworkConfig.Bandwidth value)

public NetworkConfig.Builder setBandwidth(NetworkConfig.Bandwidth value)

Interconnect bandwidth. Set only when type is CLIENT.

.google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth bandwidth = 4;

Parameter
NameDescription
valueNetworkConfig.Bandwidth

The bandwidth to set.

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

setBandwidthValue(int value)

public NetworkConfig.Builder setBandwidthValue(int value)

Interconnect bandwidth. Set only when type is CLIENT.

.google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth bandwidth = 4;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

setCidr(String value)

public NetworkConfig.Builder setCidr(String value)

CIDR range of the network.

string cidr = 6;

Parameter
NameDescription
valueString

The cidr to set.

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

setCidrBytes(ByteString value)

public NetworkConfig.Builder setCidrBytes(ByteString value)

CIDR range of the network.

string cidr = 6;

Parameter
NameDescription
valueByteString

The bytes for cidr to set.

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcpService(String value)

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;

Parameter
NameDescription
valueString

The gcpService to set.

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

setGcpServiceBytes(ByteString value)

public NetworkConfig.Builder setGcpServiceBytes(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;

Parameter
NameDescription
valueByteString

The bytes for gcpService to set.

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

setId(String value)

public NetworkConfig.Builder setId(String value)

A transient unique identifier to identify a volume within an ProvisioningConfig request.

string id = 2;

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

setIdBytes(ByteString value)

public NetworkConfig.Builder setIdBytes(ByteString value)

A transient unique identifier to identify a volume within an ProvisioningConfig request.

string id = 2;

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

setJumboFramesEnabled(boolean value)

public NetworkConfig.Builder setJumboFramesEnabled(boolean value)

The JumboFramesEnabled option for customer to set.

bool jumbo_frames_enabled = 11;

Parameter
NameDescription
valueboolean

The jumboFramesEnabled to set.

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

setName(String value)

public NetworkConfig.Builder setName(String value)

Output only. The name of the network config.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public NetworkConfig.Builder setNameBytes(ByteString value)

Output only. The name of the network config.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

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

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

setServiceCidr(NetworkConfig.ServiceCidr value)

public NetworkConfig.Builder setServiceCidr(NetworkConfig.ServiceCidr value)

Service CIDR, if any.

.google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr service_cidr = 7;

Parameter
NameDescription
valueNetworkConfig.ServiceCidr

The serviceCidr to set.

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

setServiceCidrValue(int value)

public NetworkConfig.Builder setServiceCidrValue(int value)

Service CIDR, if any.

.google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr service_cidr = 7;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

setType(NetworkConfig.Type value)

public NetworkConfig.Builder setType(NetworkConfig.Type value)

The type of this network, either Client or Private.

.google.cloud.baremetalsolution.v2.NetworkConfig.Type type = 3;

Parameter
NameDescription
valueNetworkConfig.Type

The type to set.

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

setTypeValue(int value)

public NetworkConfig.Builder setTypeValue(int value)

The type of this network, either Client or Private.

.google.cloud.baremetalsolution.v2.NetworkConfig.Type type = 3;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUserNote(String value)

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;

Parameter
NameDescription
valueString

The userNote to set.

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

setUserNoteBytes(ByteString value)

public NetworkConfig.Builder setUserNoteBytes(ByteString value)

User note field, it can be used by customers to add additional information for the BMS Ops team .

string user_note = 8;

Parameter
NameDescription
valueByteString

The bytes for userNote to set.

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

setVlanAttachments(int index, NetworkConfig.IntakeVlanAttachment value)

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;

Parameters
NameDescription
indexint
valueNetworkConfig.IntakeVlanAttachment
Returns
TypeDescription
NetworkConfig.Builder

setVlanAttachments(int index, NetworkConfig.IntakeVlanAttachment.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueNetworkConfig.IntakeVlanAttachment.Builder
Returns
TypeDescription
NetworkConfig.Builder

setVlanSameProject(boolean value)

public NetworkConfig.Builder setVlanSameProject(boolean value)

Whether the VLAN attachment pair is located in the same project.

bool vlan_same_project = 10;

Parameter
NameDescription
valueboolean

The vlanSameProject to set.

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.