Class UpdateInstanceMetadataItemsResponse.Builder (1.14.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateInstanceMetadataItemsResponse build()
Returns
TypeDescription
UpdateInstanceMetadataItemsResponse

buildPartial()

public UpdateInstanceMetadataItemsResponse buildPartial()
Returns
TypeDescription
UpdateInstanceMetadataItemsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearItems()

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public UpdateInstanceMetadataItemsResponse.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public UpdateInstanceMetadataItemsResponse getDefaultInstanceForType()
Returns
TypeDescription
UpdateInstanceMetadataItemsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getItems()

public Map<String,String> getItems()

Use #getItemsMap() instead.

Returns
TypeDescription
Map<String,String>

getItemsCount()

public int getItemsCount()

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

map<string, string> items = 1;

Returns
TypeDescription
int

getItemsMap()

public Map<String,String> getItemsMap()

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

map<string, string> items = 1;

Returns
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

getMutableItems()

public Map<String,String> getMutableItems()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

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

public UpdateInstanceMetadataItemsResponse.Builder mergeFrom(UpdateInstanceMetadataItemsResponse other)
Parameter
NameDescription
otherUpdateInstanceMetadataItemsResponse
Returns
TypeDescription
UpdateInstanceMetadataItemsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateInstanceMetadataItemsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
UpdateInstanceMetadataItemsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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