Class ServerNetworkTemplate (0.55.0)

public final class ServerNetworkTemplate extends GeneratedMessageV3 implements ServerNetworkTemplateOrBuilder

Network template.

Protobuf type google.cloud.baremetalsolution.v2.ServerNetworkTemplate

Static Fields

APPLICABLE_INSTANCE_TYPES_FIELD_NUMBER

public static final int APPLICABLE_INSTANCE_TYPES_FIELD_NUMBER
Field Value
Type Description
int

LOGICAL_INTERFACES_FIELD_NUMBER

public static final int LOGICAL_INTERFACES_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ServerNetworkTemplate getDefaultInstance()
Returns
Type Description
ServerNetworkTemplate

getDescriptor()

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

newBuilder()

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

newBuilder(ServerNetworkTemplate prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getApplicableInstanceTypes(int index)

public String getApplicableInstanceTypes(int index)

Instance types this template is applicable to.

repeated string applicable_instance_types = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The applicableInstanceTypes at the given index.

getApplicableInstanceTypesBytes(int index)

public ByteString getApplicableInstanceTypesBytes(int index)

Instance types this template is applicable to.

repeated string applicable_instance_types = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the applicableInstanceTypes at the given index.

getApplicableInstanceTypesCount()

public int getApplicableInstanceTypesCount()

Instance types this template is applicable to.

repeated string applicable_instance_types = 2;

Returns
Type Description
int

The count of applicableInstanceTypes.

getApplicableInstanceTypesList()

public ProtocolStringList getApplicableInstanceTypesList()

Instance types this template is applicable to.

repeated string applicable_instance_types = 2;

Returns
Type Description
ProtocolStringList

A list containing the applicableInstanceTypes.

getDefaultInstanceForType()

public ServerNetworkTemplate getDefaultInstanceForType()
Returns
Type Description
ServerNetworkTemplate

getLogicalInterfaces(int index)

public ServerNetworkTemplate.LogicalInterface getLogicalInterfaces(int index)

Logical interfaces.

repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3;

Parameter
Name Description
index int
Returns
Type Description
ServerNetworkTemplate.LogicalInterface

getLogicalInterfacesCount()

public int getLogicalInterfacesCount()

Logical interfaces.

repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3;

Returns
Type Description
int

getLogicalInterfacesList()

public List<ServerNetworkTemplate.LogicalInterface> getLogicalInterfacesList()

Logical interfaces.

repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3;

Returns
Type Description
List<LogicalInterface>

getLogicalInterfacesOrBuilder(int index)

public ServerNetworkTemplate.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder(int index)

Logical interfaces.

repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3;

Parameter
Name Description
index int
Returns
Type Description
ServerNetworkTemplate.LogicalInterfaceOrBuilder

getLogicalInterfacesOrBuilderList()

public List<? extends ServerNetworkTemplate.LogicalInterfaceOrBuilder> getLogicalInterfacesOrBuilderList()

Logical interfaces.

repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3;

Returns
Type Description
List<? extends com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder>

getName()

public String getName()

Output only. Template's unique name. The full resource name follows the pattern: projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template} Generally, the {server_network_template} follows the syntax of "bond<interface_type_index><bond_mode>" or "nic<interface_type_index>".

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Template's unique name. The full resource name follows the pattern: projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template} Generally, the {server_network_template} follows the syntax of "bond<interface_type_index><bond_mode>" or "nic<interface_type_index>".

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

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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 ServerNetworkTemplate.Builder newBuilderForType()
Returns
Type Description
ServerNetworkTemplate.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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