Send feedback
Class UpdateInstanceMetadataItemsRequest.Builder (1.5.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.5.0 keyboard_arrow_down
public static final class UpdateInstanceMetadataItemsRequest . Builder extends GeneratedMessageV3 . Builder<UpdateInstanceMetadataItemsRequest . Builder > implements UpdateInstanceMetadataItemsRequestOrBuilder
Request for adding/changing metadata items for an instance.
Protobuf type google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
public UpdateInstanceMetadataItemsRequest . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
public UpdateInstanceMetadataItemsRequest build ()
Returns
public UpdateInstanceMetadataItemsRequest buildPartial ()
Returns
public UpdateInstanceMetadataItemsRequest . Builder clear ()
Returns
Overrides
public UpdateInstanceMetadataItemsRequest . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
public UpdateInstanceMetadataItemsRequest . Builder clearItems ()
Returns
public UpdateInstanceMetadataItemsRequest . Builder clearName ()
Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
public UpdateInstanceMetadataItemsRequest . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
public UpdateInstanceMetadataItemsRequest . Builder clone ()
Returns
Overrides
public boolean containsItems ( String key )
Metadata items to add/update for the instance.
map<string, string> items = 2;
Parameter
Returns
public UpdateInstanceMetadataItemsRequest getDefaultInstanceForType ()
Returns
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
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
public Map<String , String > getMutableItems ()
Use alternate mutation accessors instead.
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
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
protected MapField internalGetMapField ( int number )
Parameter
Returns
Overrides
protected MapField internalGetMutableMapField ( int number )
Parameter
Returns
Overrides
public final boolean isInitialized ()
Returns
Overrides
public UpdateInstanceMetadataItemsRequest . Builder mergeFrom ( UpdateInstanceMetadataItemsRequest other )
Parameter
Returns
public UpdateInstanceMetadataItemsRequest . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
public UpdateInstanceMetadataItemsRequest . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
public final UpdateInstanceMetadataItemsRequest . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
public UpdateInstanceMetadataItemsRequest . Builder putAllItems ( Map<String , String > values )
Metadata items to add/update for the instance.
map<string, string> items = 2;
Parameter
Returns
public UpdateInstanceMetadataItemsRequest . Builder putItems ( String key , String value )
Metadata items to add/update for the instance.
map<string, string> items = 2;
Parameters
Returns
public UpdateInstanceMetadataItemsRequest . Builder removeItems ( String key )
Metadata items to add/update for the instance.
map<string, string> items = 2;
Parameter
Returns
public UpdateInstanceMetadataItemsRequest . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
public UpdateInstanceMetadataItemsRequest . Builder setName ( String value )
Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name Description value String
The name to set.
Returns
public UpdateInstanceMetadataItemsRequest . Builder setNameBytes ( ByteString value )
Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name Description value ByteString
The bytes for name to set.
Returns
public UpdateInstanceMetadataItemsRequest . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
public final UpdateInstanceMetadataItemsRequest . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]