Package com.google.cloud.recommender.v1
Class ValueMatcher.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ValueMatcher.Builder>
-
- com.google.cloud.recommender.v1.ValueMatcher.Builder
-
- All Implemented Interfaces:
ValueMatcherOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ValueMatcher
public static final class ValueMatcher.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ValueMatcher.Builder> implements ValueMatcherOrBuilder
Contains various matching options for values for a GCP resource field.
Protobuf typegoogle.cloud.recommender.v1.ValueMatcher
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueMatcher.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ValueMatcherbuild()ValueMatcherbuildPartial()ValueMatcher.Builderclear()ValueMatcher.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ValueMatcher.BuilderclearMatchesPattern()To be used for full regex matching.ValueMatcher.BuilderclearMatchVariant()ValueMatcher.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ValueMatcher.Builderclone()ValueMatchergetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetMatchesPattern()To be used for full regex matching.com.google.protobuf.ByteStringgetMatchesPatternBytes()To be used for full regex matching.ValueMatcher.MatchVariantCasegetMatchVariantCase()booleanhasMatchesPattern()To be used for full regex matching.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ValueMatcher.BuildermergeFrom(ValueMatcher other)ValueMatcher.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ValueMatcher.BuildermergeFrom(com.google.protobuf.Message other)ValueMatcher.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ValueMatcher.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ValueMatcher.BuildersetMatchesPattern(String value)To be used for full regex matching.ValueMatcher.BuildersetMatchesPatternBytes(com.google.protobuf.ByteString value)To be used for full regex matching.ValueMatcher.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ValueMatcher.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ValueMatcher.Builder>
-
clear
public ValueMatcher.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ValueMatcher.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ValueMatcher.Builder>
-
getDefaultInstanceForType
public ValueMatcher getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ValueMatcher build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ValueMatcher buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ValueMatcher.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ValueMatcher.Builder>
-
setField
public ValueMatcher.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ValueMatcher.Builder>
-
clearField
public ValueMatcher.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ValueMatcher.Builder>
-
clearOneof
public ValueMatcher.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ValueMatcher.Builder>
-
setRepeatedField
public ValueMatcher.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ValueMatcher.Builder>
-
addRepeatedField
public ValueMatcher.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ValueMatcher.Builder>
-
mergeFrom
public ValueMatcher.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ValueMatcher.Builder>
-
mergeFrom
public ValueMatcher.Builder mergeFrom(ValueMatcher other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ValueMatcher.Builder>
-
mergeFrom
public ValueMatcher.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ValueMatcher.Builder>- Throws:
IOException
-
getMatchVariantCase
public ValueMatcher.MatchVariantCase getMatchVariantCase()
- Specified by:
getMatchVariantCasein interfaceValueMatcherOrBuilder
-
clearMatchVariant
public ValueMatcher.Builder clearMatchVariant()
-
hasMatchesPattern
public boolean hasMatchesPattern()
To be used for full regex matching. The regular expression is using the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax), so to be used with RE2::FullMatch
string matches_pattern = 1;- Specified by:
hasMatchesPatternin interfaceValueMatcherOrBuilder- Returns:
- Whether the matchesPattern field is set.
-
getMatchesPattern
public String getMatchesPattern()
To be used for full regex matching. The regular expression is using the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax), so to be used with RE2::FullMatch
string matches_pattern = 1;- Specified by:
getMatchesPatternin interfaceValueMatcherOrBuilder- Returns:
- The matchesPattern.
-
getMatchesPatternBytes
public com.google.protobuf.ByteString getMatchesPatternBytes()
To be used for full regex matching. The regular expression is using the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax), so to be used with RE2::FullMatch
string matches_pattern = 1;- Specified by:
getMatchesPatternBytesin interfaceValueMatcherOrBuilder- Returns:
- The bytes for matchesPattern.
-
setMatchesPattern
public ValueMatcher.Builder setMatchesPattern(String value)
To be used for full regex matching. The regular expression is using the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax), so to be used with RE2::FullMatch
string matches_pattern = 1;- Parameters:
value- The matchesPattern to set.- Returns:
- This builder for chaining.
-
clearMatchesPattern
public ValueMatcher.Builder clearMatchesPattern()
To be used for full regex matching. The regular expression is using the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax), so to be used with RE2::FullMatch
string matches_pattern = 1;- Returns:
- This builder for chaining.
-
setMatchesPatternBytes
public ValueMatcher.Builder setMatchesPatternBytes(com.google.protobuf.ByteString value)
To be used for full regex matching. The regular expression is using the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax), so to be used with RE2::FullMatch
string matches_pattern = 1;- Parameters:
value- The bytes for matchesPattern to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ValueMatcher.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ValueMatcher.Builder>
-
mergeUnknownFields
public final ValueMatcher.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ValueMatcher.Builder>
-
-