Class NetworkConfig (0.32.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
TypeDescription
int

CIDR_FIELD_NUMBER

public static final int CIDR_FIELD_NUMBER
Field Value
TypeDescription
int

GCP_SERVICE_FIELD_NUMBER

public static final int GCP_SERVICE_FIELD_NUMBER
Field Value
TypeDescription
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

JUMBO_FRAMES_ENABLED_FIELD_NUMBER

public static final int JUMBO_FRAMES_ENABLED_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

SERVICE_CIDR_FIELD_NUMBER

public static final int SERVICE_CIDR_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

USER_NOTE_FIELD_NUMBER

public static final int USER_NOTE_FIELD_NUMBER
Field Value
TypeDescription
int

VLAN_ATTACHMENTS_FIELD_NUMBER

public static final int VLAN_ATTACHMENTS_FIELD_NUMBER
Field Value
TypeDescription
int

VLAN_SAME_PROJECT_FIELD_NUMBER

public static final int VLAN_SAME_PROJECT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static NetworkConfig getDefaultInstance()
Returns
TypeDescription
NetworkConfig

getDescriptor()

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

newBuilder()

public static NetworkConfig.Builder newBuilder()
Returns
TypeDescription
NetworkConfig.Builder

newBuilder(NetworkConfig prototype)

public static NetworkConfig.Builder newBuilder(NetworkConfig prototype)
Parameter
NameDescription
prototypeNetworkConfig
Returns
TypeDescription
NetworkConfig.Builder

parseDelimitedFrom(InputStream input)

public static NetworkConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NetworkConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static NetworkConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
NetworkConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NetworkConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NetworkConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
NetworkConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NetworkConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NetworkConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
NetworkConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static NetworkConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NetworkConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static NetworkConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
NetworkConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NetworkConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<NetworkConfig> parser()
Returns
TypeDescription
Parser<NetworkConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

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.

getParserForType()

public Parser<NetworkConfig> getParserForType()
Returns
TypeDescription
Parser<NetworkConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public NetworkConfig.Builder newBuilderForType()
Returns
TypeDescription
NetworkConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NetworkConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
NetworkConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public NetworkConfig.Builder toBuilder()
Returns
TypeDescription
NetworkConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException