Class InstanceGroupsSetNamedPortsRequest.Builder (1.19.0)

public static final class InstanceGroupsSetNamedPortsRequest.Builder extends GeneratedMessageV3.Builder<InstanceGroupsSetNamedPortsRequest.Builder> implements InstanceGroupsSetNamedPortsRequestOrBuilder

Protobuf type google.cloud.compute.v1.InstanceGroupsSetNamedPortsRequest

Static Methods

getDescriptor()

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

Methods

addAllNamedPorts(Iterable<? extends NamedPort> values)

public InstanceGroupsSetNamedPortsRequest.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
InstanceGroupsSetNamedPortsRequest.Builder

addNamedPorts(NamedPort value)

public InstanceGroupsSetNamedPortsRequest.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
InstanceGroupsSetNamedPortsRequest.Builder

addNamedPorts(NamedPort.Builder builderForValue)

public InstanceGroupsSetNamedPortsRequest.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
InstanceGroupsSetNamedPortsRequest.Builder

addNamedPorts(int index, NamedPort value)

public InstanceGroupsSetNamedPortsRequest.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
InstanceGroupsSetNamedPortsRequest.Builder

addNamedPorts(int index, NamedPort.Builder builderForValue)

public InstanceGroupsSetNamedPortsRequest.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
InstanceGroupsSetNamedPortsRequest.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 InstanceGroupsSetNamedPortsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InstanceGroupsSetNamedPortsRequest.Builder
Overrides

build()

public InstanceGroupsSetNamedPortsRequest build()
Returns
TypeDescription
InstanceGroupsSetNamedPortsRequest

buildPartial()

public InstanceGroupsSetNamedPortsRequest buildPartial()
Returns
TypeDescription
InstanceGroupsSetNamedPortsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFingerprint()

public InstanceGroupsSetNamedPortsRequest.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. A request with an incorrect fingerprint will fail with error 412 conditionNotMet.

optional string fingerprint = 234678500;

Returns
TypeDescription
InstanceGroupsSetNamedPortsRequest.Builder

This builder for chaining.

clearNamedPorts()

public InstanceGroupsSetNamedPortsRequest.Builder clearNamedPorts()

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

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

Returns
TypeDescription
InstanceGroupsSetNamedPortsRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public InstanceGroupsSetNamedPortsRequest getDefaultInstanceForType()
Returns
TypeDescription
InstanceGroupsSetNamedPortsRequest

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. A request with an incorrect fingerprint will fail with error 412 conditionNotMet.

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. A request with an incorrect fingerprint will fail with error 412 conditionNotMet.

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. A request with an incorrect fingerprint will fail with error 412 conditionNotMet.

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(InstanceGroupsSetNamedPortsRequest other)

public InstanceGroupsSetNamedPortsRequest.Builder mergeFrom(InstanceGroupsSetNamedPortsRequest other)
Parameter
NameDescription
otherInstanceGroupsSetNamedPortsRequest
Returns
TypeDescription
InstanceGroupsSetNamedPortsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeNamedPorts(int index)

public InstanceGroupsSetNamedPortsRequest.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
InstanceGroupsSetNamedPortsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFingerprint(String value)

public InstanceGroupsSetNamedPortsRequest.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. A request with an incorrect fingerprint will fail with error 412 conditionNotMet.

optional string fingerprint = 234678500;

Parameter
NameDescription
valueString

The fingerprint to set.

Returns
TypeDescription
InstanceGroupsSetNamedPortsRequest.Builder

This builder for chaining.

setFingerprintBytes(ByteString value)

public InstanceGroupsSetNamedPortsRequest.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. A request with an incorrect fingerprint will fail with error 412 conditionNotMet.

optional string fingerprint = 234678500;

Parameter
NameDescription
valueByteString

The bytes for fingerprint to set.

Returns
TypeDescription
InstanceGroupsSetNamedPortsRequest.Builder

This builder for chaining.

setNamedPorts(int index, NamedPort value)

public InstanceGroupsSetNamedPortsRequest.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
InstanceGroupsSetNamedPortsRequest.Builder

setNamedPorts(int index, NamedPort.Builder builderForValue)

public InstanceGroupsSetNamedPortsRequest.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
InstanceGroupsSetNamedPortsRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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