Class CustomMetadata.Builder (1.47.0)

public static final class CustomMetadata.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CustomMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CustomMetadata.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public CustomMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CustomMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CustomMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CustomMetadata.Builder
Overrides

clearValues()

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

clone()

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

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 GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CustomMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

public CustomMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CustomMetadata.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CustomMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CustomMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CustomMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CustomMetadata.Builder
Overrides