Class MatchingCondition (0.43.0)

public final class MatchingCondition extends GeneratedMessageV3 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

Static Fields

COMPARISON_TYPE_FIELD_NUMBER

public static final int COMPARISON_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

FIELD_FIELD_NUMBER

public static final int FIELD_FIELD_NUMBER
Field Value
TypeDescription
int

NEGATED_FIELD_NUMBER

public static final int NEGATED_FIELD_NUMBER
Field Value
TypeDescription
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MatchingCondition getDefaultInstance()
Returns
TypeDescription
MatchingCondition

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static MatchingCondition.Builder newBuilder()
Returns
TypeDescription
MatchingCondition.Builder

newBuilder(MatchingCondition prototype)

public static MatchingCondition.Builder newBuilder(MatchingCondition prototype)
Parameter
NameDescription
prototypeMatchingCondition
Returns
TypeDescription
MatchingCondition.Builder

parseDelimitedFrom(InputStream input)

public static MatchingCondition parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MatchingCondition
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MatchingCondition parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MatchingCondition
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static MatchingCondition parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
MatchingCondition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MatchingCondition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MatchingCondition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MatchingCondition parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
MatchingCondition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MatchingCondition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MatchingCondition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MatchingCondition parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
MatchingCondition
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MatchingCondition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MatchingCondition
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static MatchingCondition parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MatchingCondition
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MatchingCondition parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MatchingCondition
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static MatchingCondition parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
MatchingCondition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MatchingCondition parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MatchingCondition
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<MatchingCondition> parser()
Returns
TypeDescription
Parser<MatchingCondition>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getComparisonType()

public MatchingCondition.ComparisonType 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];

Returns
TypeDescription
MatchingCondition.ComparisonType

The comparisonType.

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];

Returns
TypeDescription
int

The enum numeric value on the wire for comparisonType.

getDefaultInstanceForType()

public MatchingCondition getDefaultInstanceForType()
Returns
TypeDescription
MatchingCondition

getField()

public String 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];

Returns
TypeDescription
String

The field.

getFieldBytes()

public 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];

Returns
TypeDescription
ByteString

The bytes for field.

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;

Returns
TypeDescription
boolean

The negated.

getParserForType()

public Parser<MatchingCondition> getParserForType()
Returns
TypeDescription
Parser<MatchingCondition>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getValue()

public String 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];

Returns
TypeDescription
String

The value.

getValueBytes()

public 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];

Returns
TypeDescription
ByteString

The bytes for value.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public MatchingCondition.Builder newBuilderForType()
Returns
TypeDescription
MatchingCondition.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MatchingCondition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
MatchingCondition.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public MatchingCondition.Builder toBuilder()
Returns
TypeDescription
MatchingCondition.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException