Class UpdateInstanceMetadataItemsRequest.Builder (1.32.0)

public static final class UpdateInstanceMetadataItemsRequest.Builder extends GeneratedMessageV3.Builder<UpdateInstanceMetadataItemsRequest.Builder> implements UpdateInstanceMetadataItemsRequestOrBuilder

Request for adding/changing metadata items for an instance.

Protobuf type google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateInstanceMetadataItemsRequest build()
Returns
TypeDescription
UpdateInstanceMetadataItemsRequest

buildPartial()

public UpdateInstanceMetadataItemsRequest buildPartial()
Returns
TypeDescription
UpdateInstanceMetadataItemsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearItems()

public UpdateInstanceMetadataItemsRequest.Builder clearItems()
Returns
TypeDescription
UpdateInstanceMetadataItemsRequest.Builder

clearName()

public UpdateInstanceMetadataItemsRequest.Builder clearName()

Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateInstanceMetadataItemsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

containsItems(String key)

public boolean containsItems(String key)

Metadata items to add/update for the instance.

map<string, string> items = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public UpdateInstanceMetadataItemsRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateInstanceMetadataItemsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getItems() (deprecated)

public Map<String,String> getItems()

Use #getItemsMap() instead.

Returns
TypeDescription
Map<String,String>

getItemsCount()

public int getItemsCount()

Metadata items to add/update for the instance.

map<string, string> items = 2;

Returns
TypeDescription
int

getItemsMap()

public Map<String,String> getItemsMap()

Metadata items to add/update for the instance.

map<string, string> items = 2;

Returns
TypeDescription
Map<String,String>

getItemsOrDefault(String key, String defaultValue)

public String getItemsOrDefault(String key, String defaultValue)

Metadata items to add/update for the instance.

map<string, string> items = 2;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getItemsOrThrow(String key)

public String getItemsOrThrow(String key)

Metadata items to add/update for the instance.

map<string, string> items = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableItems() (deprecated)

public Map<String,String> getMutableItems()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

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

public UpdateInstanceMetadataItemsRequest.Builder mergeFrom(UpdateInstanceMetadataItemsRequest other)
Parameter
NameDescription
otherUpdateInstanceMetadataItemsRequest
Returns
TypeDescription
UpdateInstanceMetadataItemsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllItems(Map<String,String> values)

public UpdateInstanceMetadataItemsRequest.Builder putAllItems(Map<String,String> values)

Metadata items to add/update for the instance.

map<string, string> items = 2;

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

putItems(String key, String value)

public UpdateInstanceMetadataItemsRequest.Builder putItems(String key, String value)

Metadata items to add/update for the instance.

map<string, string> items = 2;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
UpdateInstanceMetadataItemsRequest.Builder

removeItems(String key)

public UpdateInstanceMetadataItemsRequest.Builder removeItems(String key)

Metadata items to add/update for the instance.

map<string, string> items = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
UpdateInstanceMetadataItemsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public UpdateInstanceMetadataItemsRequest.Builder setName(String value)

Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
UpdateInstanceMetadataItemsRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public UpdateInstanceMetadataItemsRequest.Builder setNameBytes(ByteString value)

Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
UpdateInstanceMetadataItemsRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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