public static final class ExtensionBinding.MatchCondition.StringMatch.Builder extends GeneratedMessage.Builder<ExtensionBinding.MatchCondition.StringMatch.Builder> implements ExtensionBinding.MatchCondition.StringMatchOrBuilderSpecifies matching logic for string values.
Protobuf type
google.cloud.networkservices.v1beta1.ExtensionBinding.MatchCondition.StringMatch
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ExtensionBinding.MatchCondition.StringMatch.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ExtensionBinding.MatchCondition.StringMatch build()| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.MatchCondition.StringMatch |
|
buildPartial()
public ExtensionBinding.MatchCondition.StringMatch buildPartial()| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.MatchCondition.StringMatch |
|
clear()
public ExtensionBinding.MatchCondition.StringMatch.Builder clear()| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.MatchCondition.StringMatch.Builder |
|
clearContains()
public ExtensionBinding.MatchCondition.StringMatch.Builder clearContains()Optional. The input string must have the substring specified here. Note: empty contains match is not allowed, please use regex instead.
Examples:
abcmatches the valuexyz.abc.def
string contains = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.MatchCondition.StringMatch.Builder |
This builder for chaining. |
clearExact()
public ExtensionBinding.MatchCondition.StringMatch.Builder clearExact()Optional. The input string must match exactly the string specified here.
Examples:
.abconly matches the valueabc
string exact = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.MatchCondition.StringMatch.Builder |
This builder for chaining. |
clearIgnoreCase()
public ExtensionBinding.MatchCondition.StringMatch.Builder clearIgnoreCase() Optional. If true, indicates the exact/prefix/suffix/contains matching
should be case insensitive. For example, the matcher if set to true.data will
match both input string Data and data
bool ignore_case = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.MatchCondition.StringMatch.Builder |
This builder for chaining. |
clearMatchPattern()
public ExtensionBinding.MatchCondition.StringMatch.Builder clearMatchPattern()| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.MatchCondition.StringMatch.Builder |
|
clearPrefix()
public ExtensionBinding.MatchCondition.StringMatch.Builder clearPrefix()Optional. The input string must have the prefix specified here. Note: empty prefix is not allowed.
Examples:
abcmatches the valueabc.xyz
string prefix = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.MatchCondition.StringMatch.Builder |
This builder for chaining. |
clearSuffix()
public ExtensionBinding.MatchCondition.StringMatch.Builder clearSuffix()Optional. The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead.
Examples:
abcmatches the valuexyz.abc
string suffix = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.MatchCondition.StringMatch.Builder |
This builder for chaining. |
getContains()
public String getContains()Optional. The input string must have the substring specified here. Note: empty contains match is not allowed, please use regex instead.
Examples:
abcmatches the valuexyz.abc.def
string contains = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The contains. |
getContainsBytes()
public ByteString getContainsBytes()Optional. The input string must have the substring specified here. Note: empty contains match is not allowed, please use regex instead.
Examples:
abcmatches the valuexyz.abc.def
string contains = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for contains. |
getDefaultInstanceForType()
public ExtensionBinding.MatchCondition.StringMatch getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.MatchCondition.StringMatch |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getExact()
public String getExact()Optional. The input string must match exactly the string specified here.
Examples:
.abconly matches the valueabc
string exact = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The exact. |
getExactBytes()
public ByteString getExactBytes()Optional. The input string must match exactly the string specified here.
Examples:
.abconly matches the valueabc
string exact = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for exact. |
getIgnoreCase()
public boolean getIgnoreCase() Optional. If true, indicates the exact/prefix/suffix/contains matching
should be case insensitive. For example, the matcher if set to true.data will
match both input string Data and data
bool ignore_case = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The ignoreCase. |
getMatchPatternCase()
public ExtensionBinding.MatchCondition.StringMatch.MatchPatternCase getMatchPatternCase()| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.MatchCondition.StringMatch.MatchPatternCase |
|
getPrefix()
public String getPrefix()Optional. The input string must have the prefix specified here. Note: empty prefix is not allowed.
Examples:
abcmatches the valueabc.xyz
string prefix = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The prefix. |
getPrefixBytes()
public ByteString getPrefixBytes()Optional. The input string must have the prefix specified here. Note: empty prefix is not allowed.
Examples:
abcmatches the valueabc.xyz
string prefix = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for prefix. |
getSuffix()
public String getSuffix()Optional. The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead.
Examples:
abcmatches the valuexyz.abc
string suffix = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The suffix. |
getSuffixBytes()
public ByteString getSuffixBytes()Optional. The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead.
Examples:
abcmatches the valuexyz.abc
string suffix = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for suffix. |
hasContains()
public boolean hasContains()Optional. The input string must have the substring specified here. Note: empty contains match is not allowed, please use regex instead.
Examples:
abcmatches the valuexyz.abc.def
string contains = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the contains field is set. |
hasExact()
public boolean hasExact()Optional. The input string must match exactly the string specified here.
Examples:
.abconly matches the valueabc
string exact = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the exact field is set. |
hasPrefix()
public boolean hasPrefix()Optional. The input string must have the prefix specified here. Note: empty prefix is not allowed.
Examples:
abcmatches the valueabc.xyz
string prefix = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the prefix field is set. |
hasSuffix()
public boolean hasSuffix()Optional. The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead.
Examples:
abcmatches the valuexyz.abc
string suffix = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the suffix field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ExtensionBinding.MatchCondition.StringMatch other)
public ExtensionBinding.MatchCondition.StringMatch.Builder mergeFrom(ExtensionBinding.MatchCondition.StringMatch other)| Parameter | |
|---|---|
| Name | Description |
other |
ExtensionBinding.MatchCondition.StringMatch |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.MatchCondition.StringMatch.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ExtensionBinding.MatchCondition.StringMatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.MatchCondition.StringMatch.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ExtensionBinding.MatchCondition.StringMatch.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.MatchCondition.StringMatch.Builder |
|
setContains(String value)
public ExtensionBinding.MatchCondition.StringMatch.Builder setContains(String value)Optional. The input string must have the substring specified here. Note: empty contains match is not allowed, please use regex instead.
Examples:
abcmatches the valuexyz.abc.def
string contains = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe contains to set. |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.MatchCondition.StringMatch.Builder |
This builder for chaining. |
setContainsBytes(ByteString value)
public ExtensionBinding.MatchCondition.StringMatch.Builder setContainsBytes(ByteString value)Optional. The input string must have the substring specified here. Note: empty contains match is not allowed, please use regex instead.
Examples:
abcmatches the valuexyz.abc.def
string contains = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for contains to set. |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.MatchCondition.StringMatch.Builder |
This builder for chaining. |
setExact(String value)
public ExtensionBinding.MatchCondition.StringMatch.Builder setExact(String value)Optional. The input string must match exactly the string specified here.
Examples:
.abconly matches the valueabc
string exact = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe exact to set. |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.MatchCondition.StringMatch.Builder |
This builder for chaining. |
setExactBytes(ByteString value)
public ExtensionBinding.MatchCondition.StringMatch.Builder setExactBytes(ByteString value)Optional. The input string must match exactly the string specified here.
Examples:
.abconly matches the valueabc
string exact = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for exact to set. |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.MatchCondition.StringMatch.Builder |
This builder for chaining. |
setIgnoreCase(boolean value)
public ExtensionBinding.MatchCondition.StringMatch.Builder setIgnoreCase(boolean value) Optional. If true, indicates the exact/prefix/suffix/contains matching
should be case insensitive. For example, the matcher if set to true.data will
match both input string Data and data
bool ignore_case = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe ignoreCase to set. |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.MatchCondition.StringMatch.Builder |
This builder for chaining. |
setPrefix(String value)
public ExtensionBinding.MatchCondition.StringMatch.Builder setPrefix(String value)Optional. The input string must have the prefix specified here. Note: empty prefix is not allowed.
Examples:
abcmatches the valueabc.xyz
string prefix = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe prefix to set. |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.MatchCondition.StringMatch.Builder |
This builder for chaining. |
setPrefixBytes(ByteString value)
public ExtensionBinding.MatchCondition.StringMatch.Builder setPrefixBytes(ByteString value)Optional. The input string must have the prefix specified here. Note: empty prefix is not allowed.
Examples:
abcmatches the valueabc.xyz
string prefix = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for prefix to set. |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.MatchCondition.StringMatch.Builder |
This builder for chaining. |
setSuffix(String value)
public ExtensionBinding.MatchCondition.StringMatch.Builder setSuffix(String value)Optional. The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead.
Examples:
abcmatches the valuexyz.abc
string suffix = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe suffix to set. |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.MatchCondition.StringMatch.Builder |
This builder for chaining. |
setSuffixBytes(ByteString value)
public ExtensionBinding.MatchCondition.StringMatch.Builder setSuffixBytes(ByteString value)Optional. The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead.
Examples:
abcmatches the valuexyz.abc
string suffix = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for suffix to set. |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.MatchCondition.StringMatch.Builder |
This builder for chaining. |