Class DeployParameters.Builder (1.33.0)

public static final class DeployParameters.Builder extends GeneratedMessageV3.Builder<DeployParameters.Builder> implements DeployParametersOrBuilder

DeployParameters contains deploy parameters information.

Protobuf type google.cloud.deploy.v1.DeployParameters

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeployParameters build()
Returns
TypeDescription
DeployParameters

buildPartial()

public DeployParameters buildPartial()
Returns
TypeDescription
DeployParameters

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMatchTargetLabels()

public DeployParameters.Builder clearMatchTargetLabels()
Returns
TypeDescription
DeployParameters.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValues()

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

clone()

public DeployParameters.Builder clone()
Returns
TypeDescription
DeployParameters.Builder
Overrides

containsMatchTargetLabels(String key)

public boolean containsMatchTargetLabels(String key)

Optional. Deploy parameters are applied to targets with match labels. If unspecified, deploy parameters are applied to all targets (including child targets of a multi-target).

map<string, string> match_target_labels = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

containsValues(String key)

public boolean containsValues(String key)

Required. Values are deploy parameters in key-value pairs.

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

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public DeployParameters getDefaultInstanceForType()
Returns
TypeDescription
DeployParameters

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMatchTargetLabels() (deprecated)

public Map<String,String> getMatchTargetLabels()
Returns
TypeDescription
Map<String,String>

getMatchTargetLabelsCount()

public int getMatchTargetLabelsCount()

Optional. Deploy parameters are applied to targets with match labels. If unspecified, deploy parameters are applied to all targets (including child targets of a multi-target).

map<string, string> match_target_labels = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getMatchTargetLabelsMap()

public Map<String,String> getMatchTargetLabelsMap()

Optional. Deploy parameters are applied to targets with match labels. If unspecified, deploy parameters are applied to all targets (including child targets of a multi-target).

map<string, string> match_target_labels = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Map<String,String>

getMatchTargetLabelsOrDefault(String key, String defaultValue)

public String getMatchTargetLabelsOrDefault(String key, String defaultValue)

Optional. Deploy parameters are applied to targets with match labels. If unspecified, deploy parameters are applied to all targets (including child targets of a multi-target).

map<string, string> match_target_labels = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getMatchTargetLabelsOrThrow(String key)

public String getMatchTargetLabelsOrThrow(String key)

Optional. Deploy parameters are applied to targets with match labels. If unspecified, deploy parameters are applied to all targets (including child targets of a multi-target).

map<string, string> match_target_labels = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableMatchTargetLabels() (deprecated)

public Map<String,String> getMutableMatchTargetLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

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()

Required. Values are deploy parameters in key-value pairs.

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

Returns
TypeDescription
int

getValuesMap()

public Map<String,String> getValuesMap()

Required. Values are deploy parameters in key-value pairs.

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

Returns
TypeDescription
Map<String,String>

getValuesOrDefault(String key, String defaultValue)

public String getValuesOrDefault(String key, String defaultValue)

Required. Values are deploy parameters in key-value pairs.

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

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getValuesOrThrow(String key)

public String getValuesOrThrow(String key)

Required. Values are deploy parameters in key-value pairs.

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

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(DeployParameters other)

public DeployParameters.Builder mergeFrom(DeployParameters other)
Parameter
NameDescription
otherDeployParameters
Returns
TypeDescription
DeployParameters.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeployParameters.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeployParameters.Builder
Overrides

putAllMatchTargetLabels(Map<String,String> values)

public DeployParameters.Builder putAllMatchTargetLabels(Map<String,String> values)

Optional. Deploy parameters are applied to targets with match labels. If unspecified, deploy parameters are applied to all targets (including child targets of a multi-target).

map<string, string> match_target_labels = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
DeployParameters.Builder

putAllValues(Map<String,String> values)

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

Required. Values are deploy parameters in key-value pairs.

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

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
DeployParameters.Builder

putMatchTargetLabels(String key, String value)

public DeployParameters.Builder putMatchTargetLabels(String key, String value)

Optional. Deploy parameters are applied to targets with match labels. If unspecified, deploy parameters are applied to all targets (including child targets of a multi-target).

map<string, string> match_target_labels = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
DeployParameters.Builder

putValues(String key, String value)

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

Required. Values are deploy parameters in key-value pairs.

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

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
DeployParameters.Builder

removeMatchTargetLabels(String key)

public DeployParameters.Builder removeMatchTargetLabels(String key)

Optional. Deploy parameters are applied to targets with match labels. If unspecified, deploy parameters are applied to all targets (including child targets of a multi-target).

map<string, string> match_target_labels = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
DeployParameters.Builder

removeValues(String key)

public DeployParameters.Builder removeValues(String key)

Required. Values are deploy parameters in key-value pairs.

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

Parameter
NameDescription
keyString
Returns
TypeDescription
DeployParameters.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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