Class RegionInstanceGroupsSetNamedPortsRequest.Builder (1.20.0)

public static final class RegionInstanceGroupsSetNamedPortsRequest.Builder extends GeneratedMessageV3.Builder<RegionInstanceGroupsSetNamedPortsRequest.Builder> implements RegionInstanceGroupsSetNamedPortsRequestOrBuilder

Protobuf type google.cloud.compute.v1.RegionInstanceGroupsSetNamedPortsRequest

Static Methods

getDescriptor()

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

Methods

addAllNamedPorts(Iterable<? extends NamedPort> values)

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

The list of named ports to set for this instance group.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.NamedPort>
Returns
TypeDescription
RegionInstanceGroupsSetNamedPortsRequest.Builder

addNamedPorts(NamedPort value)

public RegionInstanceGroupsSetNamedPortsRequest.Builder addNamedPorts(NamedPort value)

The list of named ports to set for this instance group.

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

Parameter
NameDescription
valueNamedPort
Returns
TypeDescription
RegionInstanceGroupsSetNamedPortsRequest.Builder

addNamedPorts(NamedPort.Builder builderForValue)

public RegionInstanceGroupsSetNamedPortsRequest.Builder addNamedPorts(NamedPort.Builder builderForValue)

The list of named ports to set for this instance group.

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

Parameter
NameDescription
builderForValueNamedPort.Builder
Returns
TypeDescription
RegionInstanceGroupsSetNamedPortsRequest.Builder

addNamedPorts(int index, NamedPort value)

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

The list of named ports to set for this instance group.

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

Parameters
NameDescription
indexint
valueNamedPort
Returns
TypeDescription
RegionInstanceGroupsSetNamedPortsRequest.Builder

addNamedPorts(int index, NamedPort.Builder builderForValue)

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

The list of named ports to set for this instance group.

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

Parameters
NameDescription
indexint
builderForValueNamedPort.Builder
Returns
TypeDescription
RegionInstanceGroupsSetNamedPortsRequest.Builder

addNamedPortsBuilder()

public NamedPort.Builder addNamedPortsBuilder()

The list of named ports to set for 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)

The list of named ports to set for 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 RegionInstanceGroupsSetNamedPortsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RegionInstanceGroupsSetNamedPortsRequest.Builder
Overrides

build()

public RegionInstanceGroupsSetNamedPortsRequest build()
Returns
TypeDescription
RegionInstanceGroupsSetNamedPortsRequest

buildPartial()

public RegionInstanceGroupsSetNamedPortsRequest buildPartial()
Returns
TypeDescription
RegionInstanceGroupsSetNamedPortsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFingerprint()

public RegionInstanceGroupsSetNamedPortsRequest.Builder clearFingerprint()

The fingerprint of the named ports information for this instance group. Use this optional property to prevent conflicts when multiple users change the named ports settings concurrently. Obtain the fingerprint with the instanceGroups.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request.

optional string fingerprint = 234678500;

Returns
TypeDescription
RegionInstanceGroupsSetNamedPortsRequest.Builder

This builder for chaining.

clearNamedPorts()

public RegionInstanceGroupsSetNamedPortsRequest.Builder clearNamedPorts()

The list of named ports to set for this instance group.

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

Returns
TypeDescription
RegionInstanceGroupsSetNamedPortsRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public RegionInstanceGroupsSetNamedPortsRequest getDefaultInstanceForType()
Returns
TypeDescription
RegionInstanceGroupsSetNamedPortsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFingerprint()

public String getFingerprint()

The fingerprint of the named ports information for this instance group. Use this optional property to prevent conflicts when multiple users change the named ports settings concurrently. Obtain the fingerprint with the instanceGroups.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request.

optional string fingerprint = 234678500;

Returns
TypeDescription
String

The fingerprint.

getFingerprintBytes()

public ByteString getFingerprintBytes()

The fingerprint of the named ports information for this instance group. Use this optional property to prevent conflicts when multiple users change the named ports settings concurrently. Obtain the fingerprint with the instanceGroups.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request.

optional string fingerprint = 234678500;

Returns
TypeDescription
ByteString

The bytes for fingerprint.

getNamedPorts(int index)

public NamedPort getNamedPorts(int index)

The list of named ports to set for 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)

The list of named ports to set for 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()

The list of named ports to set for this instance group.

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

Returns
TypeDescription
List<Builder>

getNamedPortsCount()

public int getNamedPortsCount()

The list of named ports to set for this instance group.

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

Returns
TypeDescription
int

getNamedPortsList()

public List<NamedPort> getNamedPortsList()

The list of named ports to set for this instance group.

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

Returns
TypeDescription
List<NamedPort>

getNamedPortsOrBuilder(int index)

public NamedPortOrBuilder getNamedPortsOrBuilder(int index)

The list of named ports to set for this instance group.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
NamedPortOrBuilder

getNamedPortsOrBuilderList()

public List<? extends NamedPortOrBuilder> getNamedPortsOrBuilderList()

The list of named ports to set for this instance group.

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

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

hasFingerprint()

public boolean hasFingerprint()

The fingerprint of the named ports information for this instance group. Use this optional property to prevent conflicts when multiple users change the named ports settings concurrently. Obtain the fingerprint with the instanceGroups.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request.

optional string fingerprint = 234678500;

Returns
TypeDescription
boolean

Whether the fingerprint field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RegionInstanceGroupsSetNamedPortsRequest other)

public RegionInstanceGroupsSetNamedPortsRequest.Builder mergeFrom(RegionInstanceGroupsSetNamedPortsRequest other)
Parameter
NameDescription
otherRegionInstanceGroupsSetNamedPortsRequest
Returns
TypeDescription
RegionInstanceGroupsSetNamedPortsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeNamedPorts(int index)

public RegionInstanceGroupsSetNamedPortsRequest.Builder removeNamedPorts(int index)

The list of named ports to set for this instance group.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
RegionInstanceGroupsSetNamedPortsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFingerprint(String value)

public RegionInstanceGroupsSetNamedPortsRequest.Builder setFingerprint(String value)

The fingerprint of the named ports information for this instance group. Use this optional property to prevent conflicts when multiple users change the named ports settings concurrently. Obtain the fingerprint with the instanceGroups.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request.

optional string fingerprint = 234678500;

Parameter
NameDescription
valueString

The fingerprint to set.

Returns
TypeDescription
RegionInstanceGroupsSetNamedPortsRequest.Builder

This builder for chaining.

setFingerprintBytes(ByteString value)

public RegionInstanceGroupsSetNamedPortsRequest.Builder setFingerprintBytes(ByteString value)

The fingerprint of the named ports information for this instance group. Use this optional property to prevent conflicts when multiple users change the named ports settings concurrently. Obtain the fingerprint with the instanceGroups.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request.

optional string fingerprint = 234678500;

Parameter
NameDescription
valueByteString

The bytes for fingerprint to set.

Returns
TypeDescription
RegionInstanceGroupsSetNamedPortsRequest.Builder

This builder for chaining.

setNamedPorts(int index, NamedPort value)

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

The list of named ports to set for this instance group.

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

Parameters
NameDescription
indexint
valueNamedPort
Returns
TypeDescription
RegionInstanceGroupsSetNamedPortsRequest.Builder

setNamedPorts(int index, NamedPort.Builder builderForValue)

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

The list of named ports to set for this instance group.

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

Parameters
NameDescription
indexint
builderForValueNamedPort.Builder
Returns
TypeDescription
RegionInstanceGroupsSetNamedPortsRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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