Class MatchingCondition.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MatchingCondition.Builder>
com.google.analytics.admin.v1alpha.MatchingCondition.Builder
- All Implemented Interfaces:
MatchingConditionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- MatchingCondition
public static final class MatchingCondition.Builder
extends com.google.protobuf.GeneratedMessage.Builder<MatchingCondition.Builder>
implements MatchingConditionOrBuilder
Defines a condition for when an Event Edit or Event Creation rule applies to an event.Protobuf type
google.analytics.admin.v1alpha.MatchingCondition-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Required.Whether or not the result of the comparison should be negated.Required.Required.intRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetField()Required.com.google.protobuf.ByteStringRequired.booleanWhether or not the result of the comparison should be negated.getValue()Required.com.google.protobuf.ByteStringRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(MatchingCondition other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Required.setComparisonTypeValue(int value) Required.Required.setFieldBytes(com.google.protobuf.ByteString value) Required.setNegated(boolean value) Whether or not the result of the comparison should be negated.Required.setValueBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<MatchingCondition.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<MatchingCondition.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.GeneratedMessage.Builder<MatchingCondition.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MatchingCondition.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<MatchingCondition.Builder>
-
mergeFrom
public MatchingCondition.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<MatchingCondition.Builder>- Throws:
IOException
-
getField
Required. The name of the field that is compared against for the condition. If 'event_name' is specified this condition will apply to the name of the event. Otherwise the condition will apply to a parameter with the specified name. This value cannot contain spaces.
string field = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getFieldin interfaceMatchingConditionOrBuilder- Returns:
- The field.
-
getFieldBytes
public com.google.protobuf.ByteString getFieldBytes()Required. The name of the field that is compared against for the condition. If 'event_name' is specified this condition will apply to the name of the event. Otherwise the condition will apply to a parameter with the specified name. This value cannot contain spaces.
string field = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getFieldBytesin interfaceMatchingConditionOrBuilder- Returns:
- The bytes for field.
-
setField
Required. The name of the field that is compared against for the condition. If 'event_name' is specified this condition will apply to the name of the event. Otherwise the condition will apply to a parameter with the specified name. This value cannot contain spaces.
string field = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The field to set.- Returns:
- This builder for chaining.
-
clearField
Required. The name of the field that is compared against for the condition. If 'event_name' is specified this condition will apply to the name of the event. Otherwise the condition will apply to a parameter with the specified name. This value cannot contain spaces.
string field = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setFieldBytes
Required. The name of the field that is compared against for the condition. If 'event_name' is specified this condition will apply to the name of the event. Otherwise the condition will apply to a parameter with the specified name. This value cannot contain spaces.
string field = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for field to set.- Returns:
- This builder for chaining.
-
getComparisonTypeValue
public int getComparisonTypeValue()Required. The type of comparison to be applied to the value.
.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getComparisonTypeValuein interfaceMatchingConditionOrBuilder- Returns:
- The enum numeric value on the wire for comparisonType.
-
setComparisonTypeValue
Required. The type of comparison to be applied to the value.
.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for comparisonType to set.- Returns:
- This builder for chaining.
-
getComparisonType
Required. The type of comparison to be applied to the value.
.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getComparisonTypein interfaceMatchingConditionOrBuilder- Returns:
- The comparisonType.
-
setComparisonType
Required. The type of comparison to be applied to the value.
.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The comparisonType to set.- Returns:
- This builder for chaining.
-
clearComparisonType
Required. The type of comparison to be applied to the value.
.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getValue
Required. The value being compared against for this condition. The runtime implementation may perform type coercion of this value to evaluate this condition based on the type of the parameter value.
string value = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getValuein interfaceMatchingConditionOrBuilder- Returns:
- The value.
-
getValueBytes
public com.google.protobuf.ByteString getValueBytes()Required. The value being compared against for this condition. The runtime implementation may perform type coercion of this value to evaluate this condition based on the type of the parameter value.
string value = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getValueBytesin interfaceMatchingConditionOrBuilder- Returns:
- The bytes for value.
-
setValue
Required. The value being compared against for this condition. The runtime implementation may perform type coercion of this value to evaluate this condition based on the type of the parameter value.
string value = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The value to set.- Returns:
- This builder for chaining.
-
clearValue
Required. The value being compared against for this condition. The runtime implementation may perform type coercion of this value to evaluate this condition based on the type of the parameter value.
string value = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setValueBytes
Required. The value being compared against for this condition. The runtime implementation may perform type coercion of this value to evaluate this condition based on the type of the parameter value.
string value = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for value to set.- Returns:
- This builder for chaining.
-
getNegated
public boolean getNegated()Whether or not the result of the comparison should be negated. For example, if `negated` is true, then 'equals' comparisons would function as 'not equals'.
bool negated = 4;- Specified by:
getNegatedin interfaceMatchingConditionOrBuilder- Returns:
- The negated.
-
setNegated
Whether or not the result of the comparison should be negated. For example, if `negated` is true, then 'equals' comparisons would function as 'not equals'.
bool negated = 4;- Parameters:
value- The negated to set.- Returns:
- This builder for chaining.
-
clearNegated
Whether or not the result of the comparison should be negated. For example, if `negated` is true, then 'equals' comparisons would function as 'not equals'.
bool negated = 4;- Returns:
- This builder for chaining.
-