Class UpdateInstanceMetadataItemsResponse.Builder (1.44.0)

public static final class UpdateInstanceMetadataItemsResponse.Builder extends GeneratedMessageV3.Builder<UpdateInstanceMetadataItemsResponse.Builder> implements UpdateInstanceMetadataItemsResponseOrBuilder

Response for adding/changing metadata items for an instance.

Protobuf type google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateInstanceMetadataItemsResponse build()
Returns
Type Description
UpdateInstanceMetadataItemsResponse

buildPartial()

public UpdateInstanceMetadataItemsResponse buildPartial()
Returns
Type Description
UpdateInstanceMetadataItemsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearItems()

public UpdateInstanceMetadataItemsResponse.Builder clearItems()
Returns
Type Description
UpdateInstanceMetadataItemsResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public UpdateInstanceMetadataItemsResponse.Builder clone()
Returns
Type Description
UpdateInstanceMetadataItemsResponse.Builder
Overrides

containsItems(String key)

public boolean containsItems(String key)

Map of items that were added/updated to/in the metadata.

map<string, string> items = 1;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public UpdateInstanceMetadataItemsResponse getDefaultInstanceForType()
Returns
Type Description
UpdateInstanceMetadataItemsResponse

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

Map of items that were added/updated to/in the metadata.

map<string, string> items = 1;

Returns
Type Description
int

getItemsMap()

public Map<String,String> getItemsMap()

Map of items that were added/updated to/in the metadata.

map<string, string> items = 1;

Returns
Type Description
Map<String,String>

getItemsOrDefault(String key, String defaultValue)

public String getItemsOrDefault(String key, String defaultValue)

Map of items that were added/updated to/in the metadata.

map<string, string> items = 1;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getItemsOrThrow(String key)

public String getItemsOrThrow(String key)

Map of items that were added/updated to/in the metadata.

map<string, string> items = 1;

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>

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateInstanceMetadataItemsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateInstanceMetadataItemsResponse.Builder
Overrides

putAllItems(Map<String,String> values)

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

Map of items that were added/updated to/in the metadata.

map<string, string> items = 1;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
UpdateInstanceMetadataItemsResponse.Builder

putItems(String key, String value)

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

Map of items that were added/updated to/in the metadata.

map<string, string> items = 1;

Parameters
Name Description
key String
value String
Returns
Type Description
UpdateInstanceMetadataItemsResponse.Builder

removeItems(String key)

public UpdateInstanceMetadataItemsResponse.Builder removeItems(String key)

Map of items that were added/updated to/in the metadata.

map<string, string> items = 1;

Parameter
Name Description
key String
Returns
Type Description
UpdateInstanceMetadataItemsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public UpdateInstanceMetadataItemsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpdateInstanceMetadataItemsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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