Class ParameterValidation.Builder (4.44.0)

See more code actions.
public static final class ParameterValidation.Builder extends GeneratedMessageV3.Builder<ParameterValidation.Builder> implements ParameterValidationOrBuilder

Configuration for parameter validation.

Protobuf type google.cloud.dataproc.v1.ParameterValidation

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ParameterValidation build()
Returns
Type Description
ParameterValidation

buildPartial()

public ParameterValidation buildPartial()
Returns
Type Description
ParameterValidation

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRegex()

public ParameterValidation.Builder clearRegex()

Validation based on regular expressions.

.google.cloud.dataproc.v1.RegexValidation regex = 1;

Returns
Type Description
ParameterValidation.Builder

clearValidationType()

public ParameterValidation.Builder clearValidationType()
Returns
Type Description
ParameterValidation.Builder

clearValues()

public ParameterValidation.Builder clearValues()

Validation based on a list of allowed values.

.google.cloud.dataproc.v1.ValueValidation values = 2;

Returns
Type Description
ParameterValidation.Builder

clone()

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

getDefaultInstanceForType()

public ParameterValidation getDefaultInstanceForType()
Returns
Type Description
ParameterValidation

getDescriptorForType()

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

getRegex()

public RegexValidation getRegex()

Validation based on regular expressions.

.google.cloud.dataproc.v1.RegexValidation regex = 1;

Returns
Type Description
RegexValidation

The regex.

getRegexBuilder()

public RegexValidation.Builder getRegexBuilder()

Validation based on regular expressions.

.google.cloud.dataproc.v1.RegexValidation regex = 1;

Returns
Type Description
RegexValidation.Builder

getRegexOrBuilder()

public RegexValidationOrBuilder getRegexOrBuilder()

Validation based on regular expressions.

.google.cloud.dataproc.v1.RegexValidation regex = 1;

Returns
Type Description
RegexValidationOrBuilder

getValidationTypeCase()

public ParameterValidation.ValidationTypeCase getValidationTypeCase()
Returns
Type Description
ParameterValidation.ValidationTypeCase

getValues()

public ValueValidation getValues()

Validation based on a list of allowed values.

.google.cloud.dataproc.v1.ValueValidation values = 2;

Returns
Type Description
ValueValidation

The values.

getValuesBuilder()

public ValueValidation.Builder getValuesBuilder()

Validation based on a list of allowed values.

.google.cloud.dataproc.v1.ValueValidation values = 2;

Returns
Type Description
ValueValidation.Builder

getValuesOrBuilder()

public ValueValidationOrBuilder getValuesOrBuilder()

Validation based on a list of allowed values.

.google.cloud.dataproc.v1.ValueValidation values = 2;

Returns
Type Description
ValueValidationOrBuilder

hasRegex()

public boolean hasRegex()

Validation based on regular expressions.

.google.cloud.dataproc.v1.RegexValidation regex = 1;

Returns
Type Description
boolean

Whether the regex field is set.

hasValues()

public boolean hasValues()

Validation based on a list of allowed values.

.google.cloud.dataproc.v1.ValueValidation values = 2;

Returns
Type Description
boolean

Whether the values field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ParameterValidation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRegex(RegexValidation value)

public ParameterValidation.Builder mergeRegex(RegexValidation value)

Validation based on regular expressions.

.google.cloud.dataproc.v1.RegexValidation regex = 1;

Parameter
Name Description
value RegexValidation
Returns
Type Description
ParameterValidation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ParameterValidation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ParameterValidation.Builder
Overrides

mergeValues(ValueValidation value)

public ParameterValidation.Builder mergeValues(ValueValidation value)

Validation based on a list of allowed values.

.google.cloud.dataproc.v1.ValueValidation values = 2;

Parameter
Name Description
value ValueValidation
Returns
Type Description
ParameterValidation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setRegex(RegexValidation value)

public ParameterValidation.Builder setRegex(RegexValidation value)

Validation based on regular expressions.

.google.cloud.dataproc.v1.RegexValidation regex = 1;

Parameter
Name Description
value RegexValidation
Returns
Type Description
ParameterValidation.Builder

setRegex(RegexValidation.Builder builderForValue)

public ParameterValidation.Builder setRegex(RegexValidation.Builder builderForValue)

Validation based on regular expressions.

.google.cloud.dataproc.v1.RegexValidation regex = 1;

Parameter
Name Description
builderForValue RegexValidation.Builder
Returns
Type Description
ParameterValidation.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValues(ValueValidation value)

public ParameterValidation.Builder setValues(ValueValidation value)

Validation based on a list of allowed values.

.google.cloud.dataproc.v1.ValueValidation values = 2;

Parameter
Name Description
value ValueValidation
Returns
Type Description
ParameterValidation.Builder

setValues(ValueValidation.Builder builderForValue)

public ParameterValidation.Builder setValues(ValueValidation.Builder builderForValue)

Validation based on a list of allowed values.

.google.cloud.dataproc.v1.ValueValidation values = 2;

Parameter
Name Description
builderForValue ValueValidation.Builder
Returns
Type Description
ParameterValidation.Builder