Class RegexValidation.Builder (4.80.0)

public static final class RegexValidation.Builder extends GeneratedMessage.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.

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

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.

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 GeneratedMessage.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

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.