Class RegexValidation.Builder (4.24.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
TypeDescription
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
NameDescription
valuesIterable<String>

The regexes to add.

Returns
TypeDescription
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
NameDescription
valueString

The regexes to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the regexes to add.

Returns
TypeDescription
RegexValidation.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RegexValidation build()
Returns
TypeDescription
RegexValidation

buildPartial()

public RegexValidation buildPartial()
Returns
TypeDescription
RegexValidation

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public RegexValidation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
RegexValidation.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RegexValidation getDefaultInstanceForType()
Returns
TypeDescription
RegexValidation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

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

A list containing the regexes.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RegexValidation other)

public RegexValidation.Builder mergeFrom(RegexValidation other)
Parameter
NameDescription
otherRegexValidation
Returns
TypeDescription
RegexValidation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public RegexValidation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RegexValidation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RegexValidation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RegexValidation.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

The index to set the value at.

valueString

The regexes to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RegexValidation.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RegexValidation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RegexValidation.Builder
Overrides