Class UpdateInstanceMetadataItemsRequest.Builder (1.45.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateInstanceMetadataItemsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateInstanceMetadataItemsRequest.Builder
Overrides

build()

public UpdateInstanceMetadataItemsRequest build()
Returns
Type Description
UpdateInstanceMetadataItemsRequest

buildPartial()

public UpdateInstanceMetadataItemsRequest buildPartial()
Returns
Type Description
UpdateInstanceMetadataItemsRequest

clear()

public UpdateInstanceMetadataItemsRequest.Builder clear()
Returns
Type Description
UpdateInstanceMetadataItemsRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public UpdateInstanceMetadataItemsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UpdateInstanceMetadataItemsRequest.Builder
Overrides

clearItems()

public UpdateInstanceMetadataItemsRequest.Builder clearItems()
Returns
Type Description
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
Type Description
UpdateInstanceMetadataItemsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateInstanceMetadataItemsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UpdateInstanceMetadataItemsRequest.Builder
Overrides

clone()

public UpdateInstanceMetadataItemsRequest.Builder clone()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public UpdateInstanceMetadataItemsRequest getDefaultInstanceForType()
Returns
Type Description
UpdateInstanceMetadataItemsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getItems() (deprecated)

public Map<String,String> getItems()

Use #getItemsMap() instead.

Returns
Type Description
Map<String,String>

getItemsCount()

public int getItemsCount()

Metadata items to add/update for the instance.

map<string, string> items = 2;

Returns
Type Description
int

getItemsMap()

public Map<String,String> getItemsMap()

Metadata items to add/update for the instance.

map<string, string> items = 2;

Returns
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
String

getItemsOrThrow(String key)

public String getItemsOrThrow(String key)

Metadata items to add/update for the instance.

map<string, string> items = 2;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableItems() (deprecated)

public Map<String,String> getMutableItems()

Use alternate mutation accessors instead.

Returns
Type Description
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
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
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateInstanceMetadataItemsRequest other)

public UpdateInstanceMetadataItemsRequest.Builder mergeFrom(UpdateInstanceMetadataItemsRequest other)
Parameter
Name Description
other UpdateInstanceMetadataItemsRequest
Returns
Type Description
UpdateInstanceMetadataItemsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateInstanceMetadataItemsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateInstanceMetadataItemsRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UpdateInstanceMetadataItemsRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UpdateInstanceMetadataItemsRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateInstanceMetadataItemsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
UpdateInstanceMetadataItemsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateInstanceMetadataItemsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpdateInstanceMetadataItemsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateInstanceMetadataItemsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateInstanceMetadataItemsRequest.Builder
Overrides