Interface RegexValidationOrBuilder (4.46.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
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 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
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 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
Type Description
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
Type Description
List<String>

A list containing the regexes.