Network Services v1beta1 API - Class ExtensionBinding.Types.MatchCondition.Types.StringMatch (1.0.0-beta01)

public sealed class ExtensionBinding.Types.MatchCondition.Types.StringMatch : IMessage<ExtensionBinding.Types.MatchCondition.Types.StringMatch>, IEquatable<ExtensionBinding.Types.MatchCondition.Types.StringMatch>, IDeepCloneable<ExtensionBinding.Types.MatchCondition.Types.StringMatch>, IBufferMessage, IMessage

Reference documentation and code samples for the Network Services v1beta1 API class ExtensionBinding.Types.MatchCondition.Types.StringMatch.

Specifies matching logic for string values.

Inheritance

object > ExtensionBinding.Types.MatchCondition.Types.StringMatch

Namespace

Google.Cloud.NetworkServices.V1Beta1

Assembly

Google.Cloud.NetworkServices.V1Beta1.dll

Constructors

StringMatch()

public StringMatch()

StringMatch(StringMatch)

public StringMatch(ExtensionBinding.Types.MatchCondition.Types.StringMatch other)
Parameter
Name Description
other ExtensionBindingTypesMatchConditionTypesStringMatch

Properties

Contains

public string Contains { get; set; }

Optional. 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
Property Value
Type Description
string

Exact

public string Exact { get; set; }

Optional. The input string must match exactly the string specified here.

Examples:

  • abc only matches the value abc.
Property Value
Type Description
string

HasContains

public bool HasContains { get; }

Gets whether the "contains" field is set

Property Value
Type Description
bool

HasExact

public bool HasExact { get; }

Gets whether the "exact" field is set

Property Value
Type Description
bool

HasPrefix

public bool HasPrefix { get; }

Gets whether the "prefix" field is set

Property Value
Type Description
bool

HasSuffix

public bool HasSuffix { get; }

Gets whether the "suffix" field is set

Property Value
Type Description
bool

IgnoreCase

public bool IgnoreCase { get; set; }

Optional. 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.

Property Value
Type Description
bool

MatchPatternCase

public ExtensionBinding.Types.MatchCondition.Types.StringMatch.MatchPatternOneofCase MatchPatternCase { get; }
Property Value
Type Description
ExtensionBindingTypesMatchConditionTypesStringMatchMatchPatternOneofCase

Prefix

public string Prefix { get; set; }

Optional. The input string must have the prefix specified here. Note: empty prefix is not allowed.

Examples:

  • abc matches the value abc.xyz
Property Value
Type Description
string

Suffix

public string Suffix { get; set; }

Optional. 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
Property Value
Type Description
string