Send feedback
Class SetInstanceLabelsRequest.Builder (1.1.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.1.1 keyboard_arrow_down
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
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
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
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]