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
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
Returns
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
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
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RegexValidation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public RegexValidation build()
Returns
buildPartial()
public RegexValidation buildPartial()
Returns
clear()
public RegexValidation.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public RegexValidation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public RegexValidation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public RegexValidation.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public RegexValidation getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(RegexValidation other)
public RegexValidation.Builder mergeFrom(RegexValidation other)
Parameter
Returns
public RegexValidation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public RegexValidation.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RegexValidation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public RegexValidation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RegexValidation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final RegexValidation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides