Class ParameterValidation.Builder (4.6.0)

public static final class ParameterValidation.Builder extends GeneratedMessageV3.Builder<ParameterValidation.Builder> implements ParameterValidationOrBuilder

Configuration for parameter validation.

Protobuf type google.cloud.dataproc.v1.ParameterValidation

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ParameterValidation build()
Returns
TypeDescription
ParameterValidation

buildPartial()

public ParameterValidation buildPartial()
Returns
TypeDescription
ParameterValidation

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRegex()

public ParameterValidation.Builder clearRegex()

Validation based on regular expressions.

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

Returns
TypeDescription
ParameterValidation.Builder

clearValidationType()

public ParameterValidation.Builder clearValidationType()
Returns
TypeDescription
ParameterValidation.Builder

clearValues()

public ParameterValidation.Builder clearValues()

Validation based on a list of allowed values.

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

Returns
TypeDescription
ParameterValidation.Builder

clone()

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

getDefaultInstanceForType()

public ParameterValidation getDefaultInstanceForType()
Returns
TypeDescription
ParameterValidation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRegex()

public RegexValidation getRegex()

Validation based on regular expressions.

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

Returns
TypeDescription
RegexValidation

The regex.

getRegexBuilder()

public RegexValidation.Builder getRegexBuilder()

Validation based on regular expressions.

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

Returns
TypeDescription
RegexValidation.Builder

getRegexOrBuilder()

public RegexValidationOrBuilder getRegexOrBuilder()

Validation based on regular expressions.

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

Returns
TypeDescription
RegexValidationOrBuilder

getValidationTypeCase()

public ParameterValidation.ValidationTypeCase getValidationTypeCase()
Returns
TypeDescription
ParameterValidation.ValidationTypeCase

getValues()

public ValueValidation getValues()

Validation based on a list of allowed values.

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

Returns
TypeDescription
ValueValidation

The values.

getValuesBuilder()

public ValueValidation.Builder getValuesBuilder()

Validation based on a list of allowed values.

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

Returns
TypeDescription
ValueValidation.Builder

getValuesOrBuilder()

public ValueValidationOrBuilder getValuesOrBuilder()

Validation based on a list of allowed values.

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

Returns
TypeDescription
ValueValidationOrBuilder

hasRegex()

public boolean hasRegex()

Validation based on regular expressions.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the values field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ParameterValidation other)

public ParameterValidation.Builder mergeFrom(ParameterValidation other)
Parameter
NameDescription
otherParameterValidation
Returns
TypeDescription
ParameterValidation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ParameterValidation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueRegexValidation
Returns
TypeDescription
ParameterValidation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ParameterValidation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueValueValidation
Returns
TypeDescription
ParameterValidation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ParameterValidation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueRegexValidation
Returns
TypeDescription
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
NameDescription
builderForValueRegexValidation.Builder
Returns
TypeDescription
ParameterValidation.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ParameterValidation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueValueValidation
Returns
TypeDescription
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
NameDescription
builderForValueValueValidation.Builder
Returns
TypeDescription
ParameterValidation.Builder