Interface RegexValidationOrBuilder (4.20.0)

public interface RegexValidationOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getRegexes(int index)

public abstract 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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The regexes at the given index.

getRegexesBytes(int index)

public abstract 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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the regexes at the given index.

getRegexesCount()

public abstract 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
TypeDescription
int

The count of regexes.

getRegexesList()

public abstract List<String> 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
TypeDescription
List<String>

A list containing the regexes.