Class RegexValidation.Builder (4.39.0)

public static final class RegexValidation.Builder extends GeneratedMessageV3.Builder<RegexValidation.Builder> implements RegexValidationOrBuilder

Validation based on regular expressions.

Protobuf type google.cloud.dataproc.v1.RegexValidation

Static Methods

getDescriptor()

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

Methods

addAllRegexes(Iterable<String> values)

public RegexValidation.Builder addAllRegexes(Iterable<String> values)

Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient).

repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<String>

The regexes to add.

Returns
Type Description
RegexValidation.Builder

This builder for chaining.

addRegexes(String value)

public RegexValidation.Builder addRegexes(String value)

Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient).

repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The regexes to add.

Returns
Type Description
RegexValidation.Builder

This builder for chaining.

addRegexesBytes(ByteString value)

public RegexValidation.Builder addRegexesBytes(ByteString value)

Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient).

repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes of the regexes to add.

Returns
Type Description
RegexValidation.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RegexValidation build()
Returns
Type Description
RegexValidation

buildPartial()

public RegexValidation buildPartial()
Returns
Type Description
RegexValidation

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRegexes()

public RegexValidation.Builder clearRegexes()

Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient).

repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RegexValidation.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RegexValidation getDefaultInstanceForType()
Returns
Type Description
RegexValidation

getDescriptorForType()

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

getRegexes(int index)

public String getRegexes(int index)

Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient).

repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The regexes at the given index.

getRegexesBytes(int index)

public ByteString getRegexesBytes(int index)

Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient).

repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the regexes at the given index.

getRegexesCount()

public int getRegexesCount()

Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient).

repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of regexes.

getRegexesList()

public ProtocolStringList getRegexesList()

Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient).

repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the regexes.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RegexValidation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setRegexes(int index, String value)

public RegexValidation.Builder setRegexes(int index, String value)

Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient).

repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value String

The regexes to set.

Returns
Type Description
RegexValidation.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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