public static final class SetInstanceLabelsRequest.Builder extends GeneratedMessageV3.Builder<SetInstanceLabelsRequest.Builder> implements SetInstanceLabelsRequestOrBuilder
Request for setting instance labels.
Protobuf type google.cloud.notebooks.v1.SetInstanceLabelsRequest
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SetInstanceLabelsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SetInstanceLabelsRequest build()
Returns
buildPartial()
public SetInstanceLabelsRequest buildPartial()
Returns
clear()
public SetInstanceLabelsRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public SetInstanceLabelsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearLabels()
public SetInstanceLabelsRequest.Builder clearLabels()
Returns
clearName()
public SetInstanceLabelsRequest.Builder clearName()
Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public SetInstanceLabelsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public SetInstanceLabelsRequest.Builder clone()
Returns
Overrides
containsLabels(String key)
public boolean containsLabels(String key)
Labels to apply to this instance.
These can be later modified by the setLabels method
map<string, string> labels = 2;
Parameter
Returns
getDefaultInstanceForType()
public SetInstanceLabelsRequest getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getLabels()
public Map<String,String> getLabels()
Returns
getLabelsCount()
public int getLabelsCount()
Labels to apply to this instance.
These can be later modified by the setLabels method
map<string, string> labels = 2;
Returns
getLabelsMap()
public Map<String,String> getLabelsMap()
Labels to apply to this instance.
These can be later modified by the setLabels method
map<string, string> labels = 2;
Returns
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Labels to apply to this instance.
These can be later modified by the setLabels method
map<string, string> labels = 2;
Parameters
Returns
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Labels to apply to this instance.
These can be later modified by the setLabels method
map<string, string> labels = 2;
Parameter
Returns
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Returns
getName()
Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SetInstanceLabelsRequest other)
public SetInstanceLabelsRequest.Builder mergeFrom(SetInstanceLabelsRequest other)
Parameter
Returns
public SetInstanceLabelsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SetInstanceLabelsRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SetInstanceLabelsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
putAllLabels(Map<String,String> values)
public SetInstanceLabelsRequest.Builder putAllLabels(Map<String,String> values)
Labels to apply to this instance.
These can be later modified by the setLabels method
map<string, string> labels = 2;
Parameter
Returns
putLabels(String key, String value)
public SetInstanceLabelsRequest.Builder putLabels(String key, String value)
Labels to apply to this instance.
These can be later modified by the setLabels method
map<string, string> labels = 2;
Parameters
Returns
removeLabels(String key)
public SetInstanceLabelsRequest.Builder removeLabels(String key)
Labels to apply to this instance.
These can be later modified by the setLabels method
map<string, string> labels = 2;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SetInstanceLabelsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setName(String value)
public SetInstanceLabelsRequest.Builder setName(String value)
Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | String
The name to set.
|
Returns
setNameBytes(ByteString value)
public SetInstanceLabelsRequest.Builder setNameBytes(ByteString value)
Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SetInstanceLabelsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SetInstanceLabelsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides