Class CustomMetadata.Builder (1.81.0)

public static final class CustomMetadata.Builder extends GeneratedMessage.Builder<CustomMetadata.Builder> implements CustomMetadataOrBuilder

CustomMetadata contains information from a user-defined operation.

Protobuf type google.cloud.deploy.v1.CustomMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public CustomMetadata build()
Returns
Type Description
CustomMetadata

buildPartial()

public CustomMetadata buildPartial()
Returns
Type Description
CustomMetadata

clear()

public CustomMetadata.Builder clear()
Returns
Type Description
CustomMetadata.Builder
Overrides

clearValues()

public CustomMetadata.Builder clearValues()
Returns
Type Description
CustomMetadata.Builder

containsValues(String key)

public boolean containsValues(String key)

Output only. Key-value pairs provided by the user-defined operation.

map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public CustomMetadata getDefaultInstanceForType()
Returns
Type Description
CustomMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMutableValues() (deprecated)

public Map<String,String> getMutableValues()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getValues() (deprecated)

public Map<String,String> getValues()

Use #getValuesMap() instead.

Returns
Type Description
Map<String,String>

getValuesCount()

public int getValuesCount()

Output only. Key-value pairs provided by the user-defined operation.

map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getValuesMap()

public Map<String,String> getValuesMap()

Output only. Key-value pairs provided by the user-defined operation.

map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Map<String,String>

getValuesOrDefault(String key, String defaultValue)

public String getValuesOrDefault(String key, String defaultValue)

Output only. Key-value pairs provided by the user-defined operation.

map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getValuesOrThrow(String key)

public String getValuesOrThrow(String key)

Output only. Key-value pairs provided by the user-defined operation.

map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
String

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CustomMetadata other)

public CustomMetadata.Builder mergeFrom(CustomMetadata other)
Parameter
Name Description
other CustomMetadata
Returns
Type Description
CustomMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CustomMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CustomMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CustomMetadata.Builder
Overrides

putAllValues(Map<String,String> values)

public CustomMetadata.Builder putAllValues(Map<String,String> values)

Output only. Key-value pairs provided by the user-defined operation.

map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
CustomMetadata.Builder

putValues(String key, String value)

public CustomMetadata.Builder putValues(String key, String value)

Output only. Key-value pairs provided by the user-defined operation.

map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
value String
Returns
Type Description
CustomMetadata.Builder

removeValues(String key)

public CustomMetadata.Builder removeValues(String key)

Output only. Key-value pairs provided by the user-defined operation.

map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
CustomMetadata.Builder