Class UpdateInstanceMetadataItemsResponse (1.27.0)

public final class UpdateInstanceMetadataItemsResponse extends GeneratedMessageV3 implements UpdateInstanceMetadataItemsResponseOrBuilder

Response for adding/changing metadata items for an instance.

Protobuf type google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > UpdateInstanceMetadataItemsResponse
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)

Static Fields

ITEMS_FIELD_NUMBER

public static final int ITEMS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static UpdateInstanceMetadataItemsResponse getDefaultInstance()

getDescriptor()

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

newBuilder()

public static UpdateInstanceMetadataItemsResponse.Builder newBuilder()

newBuilder(UpdateInstanceMetadataItemsResponse prototype)

public static UpdateInstanceMetadataItemsResponse.Builder newBuilder(UpdateInstanceMetadataItemsResponse prototype)
Parameter
NameDescription
prototypeUpdateInstanceMetadataItemsResponse

parseDelimitedFrom(InputStream input)

public static UpdateInstanceMetadataItemsResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UpdateInstanceMetadataItemsResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static UpdateInstanceMetadataItemsResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static UpdateInstanceMetadataItemsResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static UpdateInstanceMetadataItemsResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static UpdateInstanceMetadataItemsResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static UpdateInstanceMetadataItemsResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static UpdateInstanceMetadataItemsResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static UpdateInstanceMetadataItemsResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UpdateInstanceMetadataItemsResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static UpdateInstanceMetadataItemsResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static UpdateInstanceMetadataItemsResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<UpdateInstanceMetadataItemsResponse> parser()

Methods

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public UpdateInstanceMetadataItemsResponse getDefaultInstanceForType()

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

getParserForType()

public Parser<UpdateInstanceMetadataItemsResponse> getParserForType()
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public UpdateInstanceMetadataItemsResponse.Builder newBuilderForType()

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected UpdateInstanceMetadataItemsResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public UpdateInstanceMetadataItemsResponse.Builder toBuilder()

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException