Class InstanceWithNamedPorts.Builder (1.53.0)

public static final class InstanceWithNamedPorts.Builder extends GeneratedMessageV3.Builder<InstanceWithNamedPorts.Builder> implements InstanceWithNamedPortsOrBuilder

Protobuf type google.cloud.compute.v1.InstanceWithNamedPorts

Static Methods

getDescriptor()

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

Methods

addAllNamedPorts(Iterable<? extends NamedPort> values)

public InstanceWithNamedPorts.Builder addAllNamedPorts(Iterable<? extends NamedPort> values)

[Output Only] The named ports that belong to this instance group.

repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.NamedPort>
Returns
Type Description
InstanceWithNamedPorts.Builder

addNamedPorts(NamedPort value)

public InstanceWithNamedPorts.Builder addNamedPorts(NamedPort value)

[Output Only] The named ports that belong to this instance group.

repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;

Parameter
Name Description
value NamedPort
Returns
Type Description
InstanceWithNamedPorts.Builder

addNamedPorts(NamedPort.Builder builderForValue)

public InstanceWithNamedPorts.Builder addNamedPorts(NamedPort.Builder builderForValue)

[Output Only] The named ports that belong to this instance group.

repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;

Parameter
Name Description
builderForValue NamedPort.Builder
Returns
Type Description
InstanceWithNamedPorts.Builder

addNamedPorts(int index, NamedPort value)

public InstanceWithNamedPorts.Builder addNamedPorts(int index, NamedPort value)

[Output Only] The named ports that belong to this instance group.

repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;

Parameters
Name Description
index int
value NamedPort
Returns
Type Description
InstanceWithNamedPorts.Builder

addNamedPorts(int index, NamedPort.Builder builderForValue)

public InstanceWithNamedPorts.Builder addNamedPorts(int index, NamedPort.Builder builderForValue)

[Output Only] The named ports that belong to this instance group.

repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;

Parameters
Name Description
index int
builderForValue NamedPort.Builder
Returns
Type Description
InstanceWithNamedPorts.Builder

addNamedPortsBuilder()

public NamedPort.Builder addNamedPortsBuilder()

[Output Only] The named ports that belong to this instance group.

repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;

Returns
Type Description
NamedPort.Builder

addNamedPortsBuilder(int index)

public NamedPort.Builder addNamedPortsBuilder(int index)

[Output Only] The named ports that belong to this instance group.

repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;

Parameter
Name Description
index int
Returns
Type Description
NamedPort.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InstanceWithNamedPorts build()
Returns
Type Description
InstanceWithNamedPorts

buildPartial()

public InstanceWithNamedPorts buildPartial()
Returns
Type Description
InstanceWithNamedPorts

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstance()

public InstanceWithNamedPorts.Builder clearInstance()

[Output Only] The URL of the instance.

optional string instance = 18257045;

Returns
Type Description
InstanceWithNamedPorts.Builder

This builder for chaining.

clearNamedPorts()

public InstanceWithNamedPorts.Builder clearNamedPorts()

[Output Only] The named ports that belong to this instance group.

repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;

Returns
Type Description
InstanceWithNamedPorts.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStatus()

public InstanceWithNamedPorts.Builder clearStatus()

[Output Only] The status of the instance. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
Type Description
InstanceWithNamedPorts.Builder

This builder for chaining.

clone()

public InstanceWithNamedPorts.Builder clone()
Returns
Type Description
InstanceWithNamedPorts.Builder
Overrides

getDefaultInstanceForType()

public InstanceWithNamedPorts getDefaultInstanceForType()
Returns
Type Description
InstanceWithNamedPorts

getDescriptorForType()

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

getInstance()

public String getInstance()

[Output Only] The URL of the instance.

optional string instance = 18257045;

Returns
Type Description
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

[Output Only] The URL of the instance.

optional string instance = 18257045;

Returns
Type Description
ByteString

The bytes for instance.

getNamedPorts(int index)

public NamedPort getNamedPorts(int index)

[Output Only] The named ports that belong to this instance group.

repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;

Parameter
Name Description
index int
Returns
Type Description
NamedPort

getNamedPortsBuilder(int index)

public NamedPort.Builder getNamedPortsBuilder(int index)

[Output Only] The named ports that belong to this instance group.

repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;

Parameter
Name Description
index int
Returns
Type Description
NamedPort.Builder

getNamedPortsBuilderList()

public List<NamedPort.Builder> getNamedPortsBuilderList()

[Output Only] The named ports that belong to this instance group.

repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;

Returns
Type Description
List<Builder>

getNamedPortsCount()

public int getNamedPortsCount()

[Output Only] The named ports that belong to this instance group.

repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;

Returns
Type Description
int

getNamedPortsList()

public List<NamedPort> getNamedPortsList()

[Output Only] The named ports that belong to this instance group.

repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;

Returns
Type Description
List<NamedPort>

getNamedPortsOrBuilder(int index)

public NamedPortOrBuilder getNamedPortsOrBuilder(int index)

[Output Only] The named ports that belong to this instance group.

repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;

Parameter
Name Description
index int
Returns
Type Description
NamedPortOrBuilder

getNamedPortsOrBuilderList()

public List<? extends NamedPortOrBuilder> getNamedPortsOrBuilderList()

[Output Only] The named ports that belong to this instance group.

repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.NamedPortOrBuilder>

getStatus()

public String getStatus()

[Output Only] The status of the instance. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
Type Description
String

The status.

getStatusBytes()

public ByteString getStatusBytes()

[Output Only] The status of the instance. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
Type Description
ByteString

The bytes for status.

hasInstance()

public boolean hasInstance()

[Output Only] The URL of the instance.

optional string instance = 18257045;

Returns
Type Description
boolean

Whether the instance field is set.

hasStatus()

public boolean hasStatus()

[Output Only] The status of the instance. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
Type Description
boolean

Whether the status field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InstanceWithNamedPorts other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstanceWithNamedPorts.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InstanceWithNamedPorts.Builder
Overrides

removeNamedPorts(int index)

public InstanceWithNamedPorts.Builder removeNamedPorts(int index)

[Output Only] The named ports that belong to this instance group.

repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;

Parameter
Name Description
index int
Returns
Type Description
InstanceWithNamedPorts.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstance(String value)

public InstanceWithNamedPorts.Builder setInstance(String value)

[Output Only] The URL of the instance.

optional string instance = 18257045;

Parameter
Name Description
value String

The instance to set.

Returns
Type Description
InstanceWithNamedPorts.Builder

This builder for chaining.

setInstanceBytes(ByteString value)

public InstanceWithNamedPorts.Builder setInstanceBytes(ByteString value)

[Output Only] The URL of the instance.

optional string instance = 18257045;

Parameter
Name Description
value ByteString

The bytes for instance to set.

Returns
Type Description
InstanceWithNamedPorts.Builder

This builder for chaining.

setNamedPorts(int index, NamedPort value)

public InstanceWithNamedPorts.Builder setNamedPorts(int index, NamedPort value)

[Output Only] The named ports that belong to this instance group.

repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;

Parameters
Name Description
index int
value NamedPort
Returns
Type Description
InstanceWithNamedPorts.Builder

setNamedPorts(int index, NamedPort.Builder builderForValue)

public InstanceWithNamedPorts.Builder setNamedPorts(int index, NamedPort.Builder builderForValue)

[Output Only] The named ports that belong to this instance group.

repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;

Parameters
Name Description
index int
builderForValue NamedPort.Builder
Returns
Type Description
InstanceWithNamedPorts.Builder

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

public InstanceWithNamedPorts.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
InstanceWithNamedPorts.Builder
Overrides

setStatus(String value)

public InstanceWithNamedPorts.Builder setStatus(String value)

[Output Only] The status of the instance. Check the Status enum for the list of possible values.

optional string status = 181260274;

Parameter
Name Description
value String

The status to set.

Returns
Type Description
InstanceWithNamedPorts.Builder

This builder for chaining.

setStatusBytes(ByteString value)

public InstanceWithNamedPorts.Builder setStatusBytes(ByteString value)

[Output Only] The status of the instance. Check the Status enum for the list of possible values.

optional string status = 181260274;

Parameter
Name Description
value ByteString

The bytes for status to set.

Returns
Type Description
InstanceWithNamedPorts.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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