Class Regex.Builder (0.44.0)

public static final class Regex.Builder extends GeneratedMessage.Builder<Regex.Builder> implements RegexOrBuilder

Message defining a custom regular expression.

Protobuf type google.cloud.modelarmor.v1.Regex

Implements

RegexOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public Regex build()
Returns
Type Description
Regex

buildPartial()

public Regex buildPartial()
Returns
Type Description
Regex

clear()

public Regex.Builder clear()
Returns
Type Description
Regex.Builder
Overrides

clearPattern()

public Regex.Builder clearPattern()

Required. The regular expression pattern.

string pattern = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Regex.Builder

This builder for chaining.

getDefaultInstanceForType()

public Regex getDefaultInstanceForType()
Returns
Type Description
Regex

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPattern()

public String getPattern()

Required. The regular expression pattern.

string pattern = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The pattern.

getPatternBytes()

public ByteString getPatternBytes()

Required. The regular expression pattern.

string pattern = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for pattern.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Regex other)

public Regex.Builder mergeFrom(Regex other)
Parameter
Name Description
other Regex
Returns
Type Description
Regex.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Regex.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Regex.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Regex.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Regex.Builder
Overrides

setPattern(String value)

public Regex.Builder setPattern(String value)

Required. The regular expression pattern.

string pattern = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The pattern to set.

Returns
Type Description
Regex.Builder

This builder for chaining.

setPatternBytes(ByteString value)

public Regex.Builder setPatternBytes(ByteString value)

Required. The regular expression pattern.

string pattern = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for pattern to set.

Returns
Type Description
Regex.Builder

This builder for chaining.