Class RegexpPattern.Builder (0.10.0)

public static final class RegexpPattern.Builder extends GeneratedMessage.Builder<RegexpPattern.Builder> implements RegexpPatternOrBuilder

The regular expression (regex) validator for parameter values.

Protobuf type google.cloud.cloudsecuritycompliance.v1.RegexpPattern

Static Methods

getDescriptor()

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

Methods

build()

public RegexpPattern build()
Returns
Type Description
RegexpPattern

buildPartial()

public RegexpPattern buildPartial()
Returns
Type Description
RegexpPattern

clear()

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

clearPattern()

public RegexpPattern.Builder clearPattern()

Required. The regex pattern to match the values of the parameter with.

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

Returns
Type Description
RegexpPattern.Builder

This builder for chaining.

getDefaultInstanceForType()

public RegexpPattern getDefaultInstanceForType()
Returns
Type Description
RegexpPattern

getDescriptorForType()

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

getPattern()

public String getPattern()

Required. The regex pattern to match the values of the parameter with.

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

Returns
Type Description
String

The pattern.

getPatternBytes()

public ByteString getPatternBytes()

Required. The regex pattern to match the values of the parameter with.

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(RegexpPattern other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setPattern(String value)

public RegexpPattern.Builder setPattern(String value)

Required. The regex pattern to match the values of the parameter with.

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

Parameter
Name Description
value String

The pattern to set.

Returns
Type Description
RegexpPattern.Builder

This builder for chaining.

setPatternBytes(ByteString value)

public RegexpPattern.Builder setPatternBytes(ByteString value)

Required. The regex pattern to match the values of the parameter with.

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

Parameter
Name Description
value ByteString

The bytes for pattern to set.

Returns
Type Description
RegexpPattern.Builder

This builder for chaining.