Class InstanceWithNamedPorts.Builder (1.13.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.NamedPort>
Returns
TypeDescription
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
NameDescription
valueNamedPort
Returns
TypeDescription
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
NameDescription
builderForValueNamedPort.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueNamedPort
Returns
TypeDescription
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
NameDescription
indexint
builderForValueNamedPort.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
NamedPort.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InstanceWithNamedPorts build()
Returns
TypeDescription
InstanceWithNamedPorts

buildPartial()

public InstanceWithNamedPorts buildPartial()
Returns
TypeDescription
InstanceWithNamedPorts

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstance()

public InstanceWithNamedPorts.Builder clearInstance()

[Output Only] The URL of the instance.

optional string instance = 18257045;

Returns
TypeDescription
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
TypeDescription
InstanceWithNamedPorts.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public InstanceWithNamedPorts.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
InstanceWithNamedPorts.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public InstanceWithNamedPorts getDefaultInstanceForType()
Returns
TypeDescription
InstanceWithNamedPorts

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInstance()

public String getInstance()

[Output Only] The URL of the instance.

optional string instance = 18257045;

Returns
TypeDescription
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

[Output Only] The URL of the instance.

optional string instance = 18257045;

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

The bytes for status.

hasInstance()

public boolean hasInstance()

[Output Only] The URL of the instance.

optional string instance = 18257045;

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

Whether the status field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InstanceWithNamedPorts other)

public InstanceWithNamedPorts.Builder mergeFrom(InstanceWithNamedPorts other)
Parameter
NameDescription
otherInstanceWithNamedPorts
Returns
TypeDescription
InstanceWithNamedPorts.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstanceWithNamedPorts.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
InstanceWithNamedPorts.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstance(String value)

public InstanceWithNamedPorts.Builder setInstance(String value)

[Output Only] The URL of the instance.

optional string instance = 18257045;

Parameter
NameDescription
valueString

The instance to set.

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

The bytes for instance to set.

Returns
TypeDescription
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
NameDescription
indexint
valueNamedPort
Returns
TypeDescription
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
NameDescription
indexint
builderForValueNamedPort.Builder
Returns
TypeDescription
InstanceWithNamedPorts.Builder

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

public InstanceWithNamedPorts.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The status to set.

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

The bytes for status to set.

Returns
TypeDescription
InstanceWithNamedPorts.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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