public final class UpdateInstanceMetadataItemsRequest extends GeneratedMessageV3 implements UpdateInstanceMetadataItemsRequestOrBuilder
Request for adding/changing metadata items for an instance.
Protobuf type google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest
Static Fields
public static final int ITEMS_FIELD_NUMBER
Field Value
public static final int NAME_FIELD_NUMBER
Field Value
Static Methods
public static UpdateInstanceMetadataItemsRequest getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static UpdateInstanceMetadataItemsRequest.Builder newBuilder()
Returns
public static UpdateInstanceMetadataItemsRequest.Builder newBuilder(UpdateInstanceMetadataItemsRequest prototype)
Parameter
Returns
public static UpdateInstanceMetadataItemsRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static UpdateInstanceMetadataItemsRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static UpdateInstanceMetadataItemsRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static UpdateInstanceMetadataItemsRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static UpdateInstanceMetadataItemsRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static UpdateInstanceMetadataItemsRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static UpdateInstanceMetadataItemsRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static UpdateInstanceMetadataItemsRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static UpdateInstanceMetadataItemsRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static UpdateInstanceMetadataItemsRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static UpdateInstanceMetadataItemsRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static UpdateInstanceMetadataItemsRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<UpdateInstanceMetadataItemsRequest> parser()
Returns
Methods
public boolean containsItems(String key)
Metadata items to add/update for the instance.
map<string, string> items = 2;
Parameter
Returns
public boolean equals(Object obj)
Parameter
Returns
Overrides
public UpdateInstanceMetadataItemsRequest getDefaultInstanceForType()
Returns
public Map<String,String> getItems()
Returns
public int getItemsCount()
Metadata items to add/update for the instance.
map<string, string> items = 2;
Returns
public Map<String,String> getItemsMap()
Metadata items to add/update for the instance.
map<string, string> items = 2;
Returns
public String getItemsOrDefault(String key, String defaultValue)
Metadata items to add/update for the instance.
map<string, string> items = 2;
Parameters
Returns
public String getItemsOrThrow(String key)
Metadata items to add/update for the instance.
map<string, string> items = 2;
Parameter
Returns
Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
String | The name.
|
public ByteString getNameBytes()
Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
public Parser<UpdateInstanceMetadataItemsRequest> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public UpdateInstanceMetadataItemsRequest.Builder newBuilderForType()
Returns
protected UpdateInstanceMetadataItemsRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public UpdateInstanceMetadataItemsRequest.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions