Class UpdateInstanceMetadataItemsRequest (1.25.0)

public final class UpdateInstanceMetadataItemsRequest extends GeneratedMessageV3 implements UpdateInstanceMetadataItemsRequestOrBuilder

Request for adding/changing metadata items for an instance.

Protobuf type google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > UpdateInstanceMetadataItemsRequest

Static Fields

ITEMS_FIELD_NUMBER

public static final int ITEMS_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static UpdateInstanceMetadataItemsRequest getDefaultInstance()
Returns
TypeDescription
UpdateInstanceMetadataItemsRequest

getDescriptor()

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

newBuilder()

public static UpdateInstanceMetadataItemsRequest.Builder newBuilder()
Returns
TypeDescription
UpdateInstanceMetadataItemsRequest.Builder

newBuilder(UpdateInstanceMetadataItemsRequest prototype)

public static UpdateInstanceMetadataItemsRequest.Builder newBuilder(UpdateInstanceMetadataItemsRequest prototype)
Parameter
NameDescription
prototypeUpdateInstanceMetadataItemsRequest
Returns
TypeDescription
UpdateInstanceMetadataItemsRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<UpdateInstanceMetadataItemsRequest> parser()
Returns
TypeDescription
Parser<UpdateInstanceMetadataItemsRequest>

Methods

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

equals(Object obj)

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

getDefaultInstanceForType()

public UpdateInstanceMetadataItemsRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateInstanceMetadataItemsRequest

getItems()

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

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.

getParserForType()

public Parser<UpdateInstanceMetadataItemsRequest> getParserForType()
Returns
TypeDescription
Parser<UpdateInstanceMetadataItemsRequest>
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 UpdateInstanceMetadataItemsRequest.Builder newBuilderForType()
Returns
TypeDescription
UpdateInstanceMetadataItemsRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected UpdateInstanceMetadataItemsRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
UpdateInstanceMetadataItemsRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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