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
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 UpdateInstanceMetadataItemsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public UpdateInstanceMetadataItemsResponse build()
Returns
public UpdateInstanceMetadataItemsResponse buildPartial()
Returns
public UpdateInstanceMetadataItemsResponse.Builder clear()
Returns
Overrides
public UpdateInstanceMetadataItemsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public UpdateInstanceMetadataItemsResponse.Builder clearItems()
Returns
public UpdateInstanceMetadataItemsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public UpdateInstanceMetadataItemsResponse.Builder clone()
Returns
Overrides
public boolean containsItems(String key)
Map of items that were added/updated to/in the metadata.
map<string, string> items = 1;
Parameter
Returns
public UpdateInstanceMetadataItemsResponse getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public Map<String,String> getItems()
Returns
public int getItemsCount()
Map of items that were added/updated to/in the metadata.
map<string, string> items = 1;
Returns
public Map<String,String> getItemsMap()
Map of items that were added/updated to/in the metadata.
map<string, string> items = 1;
Returns
public String getItemsOrDefault(String key, String defaultValue)
Map of items that were added/updated to/in the metadata.
map<string, string> items = 1;
Parameters
Returns
public String getItemsOrThrow(String key)
Map of items that were added/updated to/in the metadata.
map<string, string> items = 1;
Parameter
Returns
public Map<String,String> getMutableItems()
Use alternate mutation accessors instead.
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 UpdateInstanceMetadataItemsResponse.Builder mergeFrom(UpdateInstanceMetadataItemsResponse other)
Parameter
Returns
public UpdateInstanceMetadataItemsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public UpdateInstanceMetadataItemsResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final UpdateInstanceMetadataItemsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
Returns
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
Returns
public UpdateInstanceMetadataItemsResponse.Builder removeItems(String key)
Map of items that were added/updated to/in the metadata.
map<string, string> items = 1;
Parameter
Returns
public UpdateInstanceMetadataItemsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public UpdateInstanceMetadataItemsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final UpdateInstanceMetadataItemsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides