Class ServerNetworkTemplate.Builder (0.43.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
Type Description
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
Name Description
values Iterable<String>

The applicableInstanceTypes to add.

Returns
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface>
Returns
Type Description
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
Name Description
value String

The applicableInstanceTypes to add.

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

The bytes of the applicableInstanceTypes to add.

Returns
Type Description
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
Name Description
value ServerNetworkTemplate.LogicalInterface
Returns
Type Description
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
Name Description
builderForValue ServerNetworkTemplate.LogicalInterface.Builder
Returns
Type Description
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
Name Description
index int
value ServerNetworkTemplate.LogicalInterface
Returns
Type Description
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
Name Description
index int
builderForValue ServerNetworkTemplate.LogicalInterface.Builder
Returns
Type Description
ServerNetworkTemplate.Builder

addLogicalInterfacesBuilder()

public ServerNetworkTemplate.LogicalInterface.Builder addLogicalInterfacesBuilder()

Logical interfaces.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
ServerNetworkTemplate.LogicalInterface.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ServerNetworkTemplate.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ServerNetworkTemplate.Builder
Overrides

build()

public ServerNetworkTemplate build()
Returns
Type Description
ServerNetworkTemplate

buildPartial()

public ServerNetworkTemplate buildPartial()
Returns
Type Description
ServerNetworkTemplate

clear()

public ServerNetworkTemplate.Builder clear()
Returns
Type Description
ServerNetworkTemplate.Builder
Overrides

clearApplicableInstanceTypes()

public ServerNetworkTemplate.Builder clearApplicableInstanceTypes()

Instance types this template is applicable to.

repeated string applicable_instance_types = 2;

Returns
Type Description
ServerNetworkTemplate.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ServerNetworkTemplate.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ServerNetworkTemplate.Builder
Overrides

clearLogicalInterfaces()

public ServerNetworkTemplate.Builder clearLogicalInterfaces()

Logical interfaces.

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

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ServerNetworkTemplate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ServerNetworkTemplate.Builder
Overrides

clone()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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

getLogicalInterfacesBuilder(int index)

public ServerNetworkTemplate.LogicalInterface.Builder getLogicalInterfacesBuilder(int index)

Logical interfaces.

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

Parameter
Name Description
index int
Returns
Type Description
ServerNetworkTemplate.LogicalInterface.Builder

getLogicalInterfacesBuilderList()

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

Logical interfaces.

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

Returns
Type Description
List<Builder>

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ServerNetworkTemplate other)

public ServerNetworkTemplate.Builder mergeFrom(ServerNetworkTemplate other)
Parameter
Name Description
other ServerNetworkTemplate
Returns
Type Description
ServerNetworkTemplate.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ServerNetworkTemplate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServerNetworkTemplate.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ServerNetworkTemplate.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ServerNetworkTemplate.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ServerNetworkTemplate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The applicableInstanceTypes to set.

Returns
Type Description
ServerNetworkTemplate.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ServerNetworkTemplate.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
index int
value ServerNetworkTemplate.LogicalInterface
Returns
Type Description
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
Name Description
index int
builderForValue ServerNetworkTemplate.LogicalInterface.Builder
Returns
Type Description
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
Name Description
value String

The name to set.

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

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ServerNetworkTemplate.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ServerNetworkTemplate.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ServerNetworkTemplate.Builder
Overrides