Class AuthzPolicy.AuthzRule.StringMatch (0.94.0)

public static final class AuthzPolicy.AuthzRule.StringMatch extends GeneratedMessage implements AuthzPolicy.AuthzRule.StringMatchOrBuilder

Determines how a string value should be matched.

Protobuf type google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > AuthzPolicy.AuthzRule.StringMatch

Static Fields

CONTAINS_FIELD_NUMBER

public static final int CONTAINS_FIELD_NUMBER
Field Value
Type Description
int

EXACT_FIELD_NUMBER

public static final int EXACT_FIELD_NUMBER
Field Value
Type Description
int

IGNORE_CASE_FIELD_NUMBER

public static final int IGNORE_CASE_FIELD_NUMBER
Field Value
Type Description
int

PREFIX_FIELD_NUMBER

public static final int PREFIX_FIELD_NUMBER
Field Value
Type Description
int

SUFFIX_FIELD_NUMBER

public static final int SUFFIX_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AuthzPolicy.AuthzRule.StringMatch getDefaultInstance()
Returns
Type Description
AuthzPolicy.AuthzRule.StringMatch

getDescriptor()

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

newBuilder()

public static AuthzPolicy.AuthzRule.StringMatch.Builder newBuilder()
Returns
Type Description
AuthzPolicy.AuthzRule.StringMatch.Builder

newBuilder(AuthzPolicy.AuthzRule.StringMatch prototype)

public static AuthzPolicy.AuthzRule.StringMatch.Builder newBuilder(AuthzPolicy.AuthzRule.StringMatch prototype)
Parameter
Name Description
prototype AuthzPolicy.AuthzRule.StringMatch
Returns
Type Description
AuthzPolicy.AuthzRule.StringMatch.Builder

parseDelimitedFrom(InputStream input)

public static AuthzPolicy.AuthzRule.StringMatch parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AuthzPolicy.AuthzRule.StringMatch
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AuthzPolicy.AuthzRule.StringMatch parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthzPolicy.AuthzRule.StringMatch
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AuthzPolicy.AuthzRule.StringMatch parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AuthzPolicy.AuthzRule.StringMatch
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AuthzPolicy.AuthzRule.StringMatch parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthzPolicy.AuthzRule.StringMatch
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AuthzPolicy.AuthzRule.StringMatch parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AuthzPolicy.AuthzRule.StringMatch
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AuthzPolicy.AuthzRule.StringMatch parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthzPolicy.AuthzRule.StringMatch
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AuthzPolicy.AuthzRule.StringMatch parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AuthzPolicy.AuthzRule.StringMatch
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AuthzPolicy.AuthzRule.StringMatch parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthzPolicy.AuthzRule.StringMatch
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AuthzPolicy.AuthzRule.StringMatch parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AuthzPolicy.AuthzRule.StringMatch
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AuthzPolicy.AuthzRule.StringMatch parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthzPolicy.AuthzRule.StringMatch
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AuthzPolicy.AuthzRule.StringMatch parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AuthzPolicy.AuthzRule.StringMatch
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AuthzPolicy.AuthzRule.StringMatch parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthzPolicy.AuthzRule.StringMatch
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AuthzPolicy.AuthzRule.StringMatch> parser()
Returns
Type Description
Parser<StringMatch>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getContains()

public String getContains()

The input string must have the substring specified here. Note: empty contains match is not allowed, please use regex instead.

Examples:

  • abc matches the value xyz.abc.def

string contains = 4;

Returns
Type Description
String

The contains.

getContainsBytes()

public ByteString getContainsBytes()

The input string must have the substring specified here. Note: empty contains match is not allowed, please use regex instead.

Examples:

  • abc matches the value xyz.abc.def

string contains = 4;

Returns
Type Description
ByteString

The bytes for contains.

getDefaultInstanceForType()

public AuthzPolicy.AuthzRule.StringMatch getDefaultInstanceForType()
Returns
Type Description
AuthzPolicy.AuthzRule.StringMatch

getExact()

public String getExact()

The input string must match exactly the string specified here.

Examples:

  • abc only matches the value abc.

string exact = 1;

Returns
Type Description
String

The exact.

getExactBytes()

public ByteString getExactBytes()

The input string must match exactly the string specified here.

Examples:

  • abc only matches the value abc.

string exact = 1;

Returns
Type Description
ByteString

The bytes for exact.

getIgnoreCase()

public boolean getIgnoreCase()

If true, indicates the exact/prefix/suffix/contains matching should be case insensitive. For example, the matcher data will match both input string Data and data if set to true.

bool ignore_case = 5;

Returns
Type Description
boolean

The ignoreCase.

getMatchPatternCase()

public AuthzPolicy.AuthzRule.StringMatch.MatchPatternCase getMatchPatternCase()
Returns
Type Description
AuthzPolicy.AuthzRule.StringMatch.MatchPatternCase

getParserForType()

public Parser<AuthzPolicy.AuthzRule.StringMatch> getParserForType()
Returns
Type Description
Parser<StringMatch>
Overrides

getPrefix()

public String getPrefix()

The input string must have the prefix specified here. Note: empty prefix is not allowed, please use regex instead.

Examples:

  • abc matches the value abc.xyz

string prefix = 2;

Returns
Type Description
String

The prefix.

getPrefixBytes()

public ByteString getPrefixBytes()

The input string must have the prefix specified here. Note: empty prefix is not allowed, please use regex instead.

Examples:

  • abc matches the value abc.xyz

string prefix = 2;

Returns
Type Description
ByteString

The bytes for prefix.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSuffix()

public String getSuffix()

The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead.

Examples:

  • abc matches the value xyz.abc

string suffix = 3;

Returns
Type Description
String

The suffix.

getSuffixBytes()

public ByteString getSuffixBytes()

The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead.

Examples:

  • abc matches the value xyz.abc

string suffix = 3;

Returns
Type Description
ByteString

The bytes for suffix.

hasContains()

public boolean hasContains()

The input string must have the substring specified here. Note: empty contains match is not allowed, please use regex instead.

Examples:

  • abc matches the value xyz.abc.def

string contains = 4;

Returns
Type Description
boolean

Whether the contains field is set.

hasExact()

public boolean hasExact()

The input string must match exactly the string specified here.

Examples:

  • abc only matches the value abc.

string exact = 1;

Returns
Type Description
boolean

Whether the exact field is set.

hasPrefix()

public boolean hasPrefix()

The input string must have the prefix specified here. Note: empty prefix is not allowed, please use regex instead.

Examples:

  • abc matches the value abc.xyz

string prefix = 2;

Returns
Type Description
boolean

Whether the prefix field is set.

hasSuffix()

public boolean hasSuffix()

The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead.

Examples:

  • abc matches the value xyz.abc

string suffix = 3;

Returns
Type Description
boolean

Whether the suffix field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AuthzPolicy.AuthzRule.StringMatch.Builder newBuilderForType()
Returns
Type Description
AuthzPolicy.AuthzRule.StringMatch.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected AuthzPolicy.AuthzRule.StringMatch.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AuthzPolicy.AuthzRule.StringMatch.Builder
Overrides

toBuilder()

public AuthzPolicy.AuthzRule.StringMatch.Builder toBuilder()
Returns
Type Description
AuthzPolicy.AuthzRule.StringMatch.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException