Class CustomMetadata.Builder (1.35.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CustomMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CustomMetadata.Builder
Overrides

build()

public CustomMetadata build()
Returns
TypeDescription
CustomMetadata

buildPartial()

public CustomMetadata buildPartial()
Returns
TypeDescription
CustomMetadata

clear()

public CustomMetadata.Builder clear()
Returns
TypeDescription
CustomMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CustomMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CustomMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CustomMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CustomMetadata.Builder
Overrides

clearValues()

public CustomMetadata.Builder clearValues()
Returns
TypeDescription
CustomMetadata.Builder

clone()

public CustomMetadata.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public CustomMetadata getDefaultInstanceForType()
Returns
TypeDescription
CustomMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableValues() (deprecated)

public Map<String,String> getMutableValues()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getValues() (deprecated)

public Map<String,String> getValues()

Use #getValuesMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CustomMetadata other)

public CustomMetadata.Builder mergeFrom(CustomMetadata other)
Parameter
NameDescription
otherCustomMetadata
Returns
TypeDescription
CustomMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CustomMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomMetadata.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CustomMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CustomMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CustomMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
CustomMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CustomMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CustomMetadata.Builder
Overrides

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

public CustomMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CustomMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CustomMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CustomMetadata.Builder
Overrides