public static final class CustomMetadata.Builder extends GeneratedMessageV3.Builder<CustomMetadata.Builder> implements CustomMetadataOrBuilder
CustomMetadata contains information from a user-defined operation.
Protobuf type google.events.cloud.deploy.v1.CustomMetadata
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CustomMetadata.BuilderImplements
CustomMetadataOrBuilderStatic 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 |
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 |
clearField(Descriptors.FieldDescriptor field)
public CustomMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
CustomMetadata.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public CustomMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
CustomMetadata.Builder |
clearValues()
public CustomMetadata.Builder clearValues()
Returns | |
---|---|
Type | Description |
CustomMetadata.Builder |
clone()
public CustomMetadata.Builder clone()
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;
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 |
getMutableValues()
public Map<String,String> getMutableValues()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getValues()
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;
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;
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;
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;
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
String |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter | |
---|---|
Name | Description |
number |
int |
Returns | |
---|---|
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter | |
---|---|
Name | Description |
number |
int |
Returns | |
---|---|
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public CustomMetadata.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
CustomMetadata.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CustomMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CustomMetadata.Builder |
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;
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;
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;
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 |
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final CustomMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CustomMetadata.Builder |