Class ServerNetworkTemplate.Builder (0.11.0)

public static final class ServerNetworkTemplate.Builder extends GeneratedMessageV3.Builder<ServerNetworkTemplate.Builder> implements ServerNetworkTemplateOrBuilder

Network template.

Protobuf type google.cloud.baremetalsolution.v2.ServerNetworkTemplate

Static Methods

getDescriptor()

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

Methods

addAllApplicableInstanceTypes(Iterable<String> values)

public ServerNetworkTemplate.Builder addAllApplicableInstanceTypes(Iterable<String> values)

Instance types this template is applicable to.

repeated string applicable_instance_types = 2;

Parameter
NameDescription
valuesIterable<String>

The applicableInstanceTypes to add.

Returns
TypeDescription
ServerNetworkTemplate.Builder

This builder for chaining.

addAllLogicalInterfaces(Iterable<? extends ServerNetworkTemplate.LogicalInterface> values)

public ServerNetworkTemplate.Builder addAllLogicalInterfaces(Iterable<? extends ServerNetworkTemplate.LogicalInterface> values)

Logical interfaces.

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

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

addApplicableInstanceTypes(String value)

public ServerNetworkTemplate.Builder addApplicableInstanceTypes(String value)

Instance types this template is applicable to.

repeated string applicable_instance_types = 2;

Parameter
NameDescription
valueString

The applicableInstanceTypes to add.

Returns
TypeDescription
ServerNetworkTemplate.Builder

This builder for chaining.

addApplicableInstanceTypesBytes(ByteString value)

public ServerNetworkTemplate.Builder addApplicableInstanceTypesBytes(ByteString value)

Instance types this template is applicable to.

repeated string applicable_instance_types = 2;

Parameter
NameDescription
valueByteString

The bytes of the applicableInstanceTypes to add.

Returns
TypeDescription
ServerNetworkTemplate.Builder

This builder for chaining.

addLogicalInterfaces(ServerNetworkTemplate.LogicalInterface value)

public ServerNetworkTemplate.Builder addLogicalInterfaces(ServerNetworkTemplate.LogicalInterface value)

Logical interfaces.

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

Parameter
NameDescription
valueServerNetworkTemplate.LogicalInterface
Returns
TypeDescription
ServerNetworkTemplate.Builder

addLogicalInterfaces(ServerNetworkTemplate.LogicalInterface.Builder builderForValue)

public ServerNetworkTemplate.Builder addLogicalInterfaces(ServerNetworkTemplate.LogicalInterface.Builder builderForValue)

Logical interfaces.

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

Parameter
NameDescription
builderForValueServerNetworkTemplate.LogicalInterface.Builder
Returns
TypeDescription
ServerNetworkTemplate.Builder

addLogicalInterfaces(int index, ServerNetworkTemplate.LogicalInterface value)

public ServerNetworkTemplate.Builder addLogicalInterfaces(int index, ServerNetworkTemplate.LogicalInterface value)

Logical interfaces.

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

Parameters
NameDescription
indexint
valueServerNetworkTemplate.LogicalInterface
Returns
TypeDescription
ServerNetworkTemplate.Builder

addLogicalInterfaces(int index, ServerNetworkTemplate.LogicalInterface.Builder builderForValue)

public ServerNetworkTemplate.Builder addLogicalInterfaces(int index, ServerNetworkTemplate.LogicalInterface.Builder builderForValue)

Logical interfaces.

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

Parameters
NameDescription
indexint
builderForValueServerNetworkTemplate.LogicalInterface.Builder
Returns
TypeDescription
ServerNetworkTemplate.Builder

addLogicalInterfacesBuilder()

public ServerNetworkTemplate.LogicalInterface.Builder addLogicalInterfacesBuilder()

Logical interfaces.

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

Returns
TypeDescription
ServerNetworkTemplate.LogicalInterface.Builder

addLogicalInterfacesBuilder(int index)

public ServerNetworkTemplate.LogicalInterface.Builder addLogicalInterfacesBuilder(int index)

Logical interfaces.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ServerNetworkTemplate.LogicalInterface.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ServerNetworkTemplate build()
Returns
TypeDescription
ServerNetworkTemplate

buildPartial()

public ServerNetworkTemplate buildPartial()
Returns
TypeDescription
ServerNetworkTemplate

clear()

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

clearApplicableInstanceTypes()

public ServerNetworkTemplate.Builder clearApplicableInstanceTypes()

Instance types this template is applicable to.

repeated string applicable_instance_types = 2;

Returns
TypeDescription
ServerNetworkTemplate.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLogicalInterfaces()

public ServerNetworkTemplate.Builder clearLogicalInterfaces()

Logical interfaces.

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

Returns
TypeDescription
ServerNetworkTemplate.Builder

clearName()

public ServerNetworkTemplate.Builder clearName()

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getApplicableInstanceTypes(int index)

public String getApplicableInstanceTypes(int index)

Instance types this template is applicable to.

repeated string applicable_instance_types = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
int

The count of applicableInstanceTypes.

getApplicableInstanceTypesList()

public ProtocolStringList getApplicableInstanceTypesList()

Instance types this template is applicable to.

repeated string applicable_instance_types = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the applicableInstanceTypes.

getDefaultInstanceForType()

public ServerNetworkTemplate getDefaultInstanceForType()
Returns
TypeDescription
ServerNetworkTemplate

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLogicalInterfaces(int index)

public ServerNetworkTemplate.LogicalInterface getLogicalInterfaces(int index)

Logical interfaces.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ServerNetworkTemplate.LogicalInterface

getLogicalInterfacesBuilder(int index)

public ServerNetworkTemplate.LogicalInterface.Builder getLogicalInterfacesBuilder(int index)

Logical interfaces.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ServerNetworkTemplate.LogicalInterface.Builder

getLogicalInterfacesBuilderList()

public List<ServerNetworkTemplate.LogicalInterface.Builder> getLogicalInterfacesBuilderList()

Logical interfaces.

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

Returns
TypeDescription
List<Builder>

getLogicalInterfacesCount()

public int getLogicalInterfacesCount()

Logical interfaces.

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

Returns
TypeDescription
int

getLogicalInterfacesList()

public List<ServerNetworkTemplate.LogicalInterface> getLogicalInterfacesList()

Logical interfaces.

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

Returns
TypeDescription
List<LogicalInterface>

getLogicalInterfacesOrBuilder(int index)

public ServerNetworkTemplate.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder(int index)

Logical interfaces.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ServerNetworkTemplate.LogicalInterfaceOrBuilder

getLogicalInterfacesOrBuilderList()

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

Logical interfaces.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ServerNetworkTemplate other)

public ServerNetworkTemplate.Builder mergeFrom(ServerNetworkTemplate other)
Parameter
NameDescription
otherServerNetworkTemplate
Returns
TypeDescription
ServerNetworkTemplate.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeLogicalInterfaces(int index)

public ServerNetworkTemplate.Builder removeLogicalInterfaces(int index)

Logical interfaces.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ServerNetworkTemplate.Builder

setApplicableInstanceTypes(int index, String value)

public ServerNetworkTemplate.Builder setApplicableInstanceTypes(int index, String value)

Instance types this template is applicable to.

repeated string applicable_instance_types = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The applicableInstanceTypes to set.

Returns
TypeDescription
ServerNetworkTemplate.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLogicalInterfaces(int index, ServerNetworkTemplate.LogicalInterface value)

public ServerNetworkTemplate.Builder setLogicalInterfaces(int index, ServerNetworkTemplate.LogicalInterface value)

Logical interfaces.

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

Parameters
NameDescription
indexint
valueServerNetworkTemplate.LogicalInterface
Returns
TypeDescription
ServerNetworkTemplate.Builder

setLogicalInterfaces(int index, ServerNetworkTemplate.LogicalInterface.Builder builderForValue)

public ServerNetworkTemplate.Builder setLogicalInterfaces(int index, ServerNetworkTemplate.LogicalInterface.Builder builderForValue)

Logical interfaces.

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

Parameters
NameDescription
indexint
builderForValueServerNetworkTemplate.LogicalInterface.Builder
Returns
TypeDescription
ServerNetworkTemplate.Builder

setName(String value)

public ServerNetworkTemplate.Builder setName(String value)

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ServerNetworkTemplate.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ServerNetworkTemplate.Builder setNameBytes(ByteString value)

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ServerNetworkTemplate.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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