Class NetworkConfig (0.42.0)

public final class NetworkConfig extends GeneratedMessageV3 implements NetworkConfigOrBuilder

Configuration parameters for a new network.

Protobuf type google.cloud.baremetalsolution.v2.NetworkConfig

Static Fields

BANDWIDTH_FIELD_NUMBER

public static final int BANDWIDTH_FIELD_NUMBER
Field Value
Type Description
int

CIDR_FIELD_NUMBER

public static final int CIDR_FIELD_NUMBER
Field Value
Type Description
int

GCP_SERVICE_FIELD_NUMBER

public static final int GCP_SERVICE_FIELD_NUMBER
Field Value
Type Description
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
Type Description
int

JUMBO_FRAMES_ENABLED_FIELD_NUMBER

public static final int JUMBO_FRAMES_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_CIDR_FIELD_NUMBER

public static final int SERVICE_CIDR_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

USER_NOTE_FIELD_NUMBER

public static final int USER_NOTE_FIELD_NUMBER
Field Value
Type Description
int

VLAN_ATTACHMENTS_FIELD_NUMBER

public static final int VLAN_ATTACHMENTS_FIELD_NUMBER
Field Value
Type Description
int

VLAN_SAME_PROJECT_FIELD_NUMBER

public static final int VLAN_SAME_PROJECT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static NetworkConfig getDefaultInstance()
Returns
Type Description
NetworkConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static NetworkConfig.Builder newBuilder()
Returns
Type Description
NetworkConfig.Builder

newBuilder(NetworkConfig prototype)

public static NetworkConfig.Builder newBuilder(NetworkConfig prototype)
Parameter
Name Description
prototype NetworkConfig
Returns
Type Description
NetworkConfig.Builder

parseDelimitedFrom(InputStream input)

public static NetworkConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NetworkConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static NetworkConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
NetworkConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NetworkConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NetworkConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
NetworkConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NetworkConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NetworkConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
NetworkConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static NetworkConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NetworkConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static NetworkConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
NetworkConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NetworkConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<NetworkConfig> parser()
Returns
Type Description
Parser<NetworkConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBandwidth()

public NetworkConfig.Bandwidth getBandwidth()

Interconnect bandwidth. Set only when type is CLIENT.

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

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

The enum numeric value on the wire for bandwidth.

getCidr()

public String getCidr()

CIDR range of the network.

string cidr = 6;

Returns
Type Description
String

The cidr.

getCidrBytes()

public ByteString getCidrBytes()

CIDR range of the network.

string cidr = 6;

Returns
Type Description
ByteString

The bytes for cidr.

getDefaultInstanceForType()

public NetworkConfig getDefaultInstanceForType()
Returns
Type Description
NetworkConfig

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
Type Description
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
Type Description
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
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

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

string id = 2;

Returns
Type Description
ByteString

The bytes for id.

getJumboFramesEnabled()

public boolean getJumboFramesEnabled()

The JumboFramesEnabled option for customer to set.

bool jumbo_frames_enabled = 11;

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<NetworkConfig> getParserForType()
Returns
Type Description
Parser<NetworkConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getServiceCidr()

public NetworkConfig.ServiceCidr getServiceCidr()

Service CIDR, if any.

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

Returns
Type Description
NetworkConfig.ServiceCidr

The serviceCidr.

getServiceCidrValue()

public int getServiceCidrValue()

Service CIDR, if any.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
NetworkConfig.IntakeVlanAttachment

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

The vlanSameProject.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public NetworkConfig.Builder newBuilderForType()
Returns
Type Description
NetworkConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NetworkConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
NetworkConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public NetworkConfig.Builder toBuilder()
Returns
Type Description
NetworkConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException