Class InstanceWithNamedPorts.Builder (1.93.0)

public static final class InstanceWithNamedPorts.Builder extends GeneratedMessage.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. [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. [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. [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. [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. [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. [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. [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

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

clearInstance()

public InstanceWithNamedPorts.Builder clearInstance()

Output only. [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. [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

clearStatus()

public InstanceWithNamedPorts.Builder clearStatus()

Output only. [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.

getDefaultInstanceForType()

public InstanceWithNamedPorts getDefaultInstanceForType()
Returns
Type Description
InstanceWithNamedPorts

getDescriptorForType()

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

getInstance()

public String getInstance()

Output only. [Output Only] The URL of the instance.

optional string instance = 18257045;

Returns
Type Description
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

Output only. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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 GeneratedMessage.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

removeNamedPorts(int index)

public InstanceWithNamedPorts.Builder removeNamedPorts(int index)

Output only. [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

setInstance(String value)

public InstanceWithNamedPorts.Builder setInstance(String value)

Output only. [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. [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. [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. [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

setStatus(String value)

public InstanceWithNamedPorts.Builder setStatus(String value)

Output only. [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. [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.