Class InstancesSetLabelsRequest.Builder (1.19.0)

public static final class InstancesSetLabelsRequest.Builder extends GeneratedMessageV3.Builder<InstancesSetLabelsRequest.Builder> implements InstancesSetLabelsRequestOrBuilder

Protobuf type google.cloud.compute.v1.InstancesSetLabelsRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InstancesSetLabelsRequest build()
Returns
TypeDescription
InstancesSetLabelsRequest

buildPartial()

public InstancesSetLabelsRequest buildPartial()
Returns
TypeDescription
InstancesSetLabelsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLabelFingerprint()

public InstancesSetLabelsRequest.Builder clearLabelFingerprint()

Fingerprint of the previous set of labels for this resource, used to prevent conflicts. Provide the latest fingerprint value when making a request to add or change labels.

optional string label_fingerprint = 178124825;

Returns
TypeDescription
InstancesSetLabelsRequest.Builder

This builder for chaining.

clearLabels()

public InstancesSetLabelsRequest.Builder clearLabels()
Returns
TypeDescription
InstancesSetLabelsRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

map<string, string> labels = 500195327;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public InstancesSetLabelsRequest getDefaultInstanceForType()
Returns
TypeDescription
InstancesSetLabelsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabelFingerprint()

public String getLabelFingerprint()

Fingerprint of the previous set of labels for this resource, used to prevent conflicts. Provide the latest fingerprint value when making a request to add or change labels.

optional string label_fingerprint = 178124825;

Returns
TypeDescription
String

The labelFingerprint.

getLabelFingerprintBytes()

public ByteString getLabelFingerprintBytes()

Fingerprint of the previous set of labels for this resource, used to prevent conflicts. Provide the latest fingerprint value when making a request to add or change labels.

optional string label_fingerprint = 178124825;

Returns
TypeDescription
ByteString

The bytes for labelFingerprint.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

map<string, string> labels = 500195327;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

map<string, string> labels = 500195327;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

map<string, string> labels = 500195327;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

map<string, string> labels = 500195327;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

hasLabelFingerprint()

public boolean hasLabelFingerprint()

Fingerprint of the previous set of labels for this resource, used to prevent conflicts. Provide the latest fingerprint value when making a request to add or change labels.

optional string label_fingerprint = 178124825;

Returns
TypeDescription
boolean

Whether the labelFingerprint field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InstancesSetLabelsRequest other)

public InstancesSetLabelsRequest.Builder mergeFrom(InstancesSetLabelsRequest other)
Parameter
NameDescription
otherInstancesSetLabelsRequest
Returns
TypeDescription
InstancesSetLabelsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllLabels(Map<String,String> values)

public InstancesSetLabelsRequest.Builder putAllLabels(Map<String,String> values)

map<string, string> labels = 500195327;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
InstancesSetLabelsRequest.Builder

putLabels(String key, String value)

public InstancesSetLabelsRequest.Builder putLabels(String key, String value)

map<string, string> labels = 500195327;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
InstancesSetLabelsRequest.Builder

removeLabels(String key)

public InstancesSetLabelsRequest.Builder removeLabels(String key)

map<string, string> labels = 500195327;

Parameter
NameDescription
keyString
Returns
TypeDescription
InstancesSetLabelsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLabelFingerprint(String value)

public InstancesSetLabelsRequest.Builder setLabelFingerprint(String value)

Fingerprint of the previous set of labels for this resource, used to prevent conflicts. Provide the latest fingerprint value when making a request to add or change labels.

optional string label_fingerprint = 178124825;

Parameter
NameDescription
valueString

The labelFingerprint to set.

Returns
TypeDescription
InstancesSetLabelsRequest.Builder

This builder for chaining.

setLabelFingerprintBytes(ByteString value)

public InstancesSetLabelsRequest.Builder setLabelFingerprintBytes(ByteString value)

Fingerprint of the previous set of labels for this resource, used to prevent conflicts. Provide the latest fingerprint value when making a request to add or change labels.

optional string label_fingerprint = 178124825;

Parameter
NameDescription
valueByteString

The bytes for labelFingerprint to set.

Returns
TypeDescription
InstancesSetLabelsRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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