Class AudienceDimensionOrMetricFilter.StringFilter.Builder (0.17.0)

public static final class AudienceDimensionOrMetricFilter.StringFilter.Builder extends GeneratedMessageV3.Builder<AudienceDimensionOrMetricFilter.StringFilter.Builder> implements AudienceDimensionOrMetricFilter.StringFilterOrBuilder

A filter for a string-type dimension that matches a particular pattern.

Protobuf type google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AudienceDimensionOrMetricFilter.StringFilter.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AudienceDimensionOrMetricFilter.StringFilter.Builder
Overrides

build()

public AudienceDimensionOrMetricFilter.StringFilter build()
Returns
TypeDescription
AudienceDimensionOrMetricFilter.StringFilter

buildPartial()

public AudienceDimensionOrMetricFilter.StringFilter buildPartial()
Returns
TypeDescription
AudienceDimensionOrMetricFilter.StringFilter

clear()

public AudienceDimensionOrMetricFilter.StringFilter.Builder clear()
Returns
TypeDescription
AudienceDimensionOrMetricFilter.StringFilter.Builder
Overrides

clearCaseSensitive()

public AudienceDimensionOrMetricFilter.StringFilter.Builder clearCaseSensitive()

Optional. If true, the match is case-sensitive. If false, the match is case-insensitive.

bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AudienceDimensionOrMetricFilter.StringFilter.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AudienceDimensionOrMetricFilter.StringFilter.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AudienceDimensionOrMetricFilter.StringFilter.Builder
Overrides

clearMatchType()

public AudienceDimensionOrMetricFilter.StringFilter.Builder clearMatchType()

Required. The match type for the string filter.

.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AudienceDimensionOrMetricFilter.StringFilter.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AudienceDimensionOrMetricFilter.StringFilter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AudienceDimensionOrMetricFilter.StringFilter.Builder
Overrides

clearValue()

public AudienceDimensionOrMetricFilter.StringFilter.Builder clearValue()

Required. The string value to be matched against.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AudienceDimensionOrMetricFilter.StringFilter.Builder

This builder for chaining.

clone()

public AudienceDimensionOrMetricFilter.StringFilter.Builder clone()
Returns
TypeDescription
AudienceDimensionOrMetricFilter.StringFilter.Builder
Overrides

getCaseSensitive()

public boolean getCaseSensitive()

Optional. If true, the match is case-sensitive. If false, the match is case-insensitive.

bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The caseSensitive.

getDefaultInstanceForType()

public AudienceDimensionOrMetricFilter.StringFilter getDefaultInstanceForType()
Returns
TypeDescription
AudienceDimensionOrMetricFilter.StringFilter

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMatchType()

public AudienceDimensionOrMetricFilter.StringFilter.MatchType getMatchType()

Required. The match type for the string filter.

.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AudienceDimensionOrMetricFilter.StringFilter.MatchType

The matchType.

getMatchTypeValue()

public int getMatchTypeValue()

Required. The match type for the string filter.

.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for matchType.

getValue()

public String getValue()

Required. The string value to be matched against.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The value.

getValueBytes()

public ByteString getValueBytes()

Required. The string value to be matched against.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for value.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AudienceDimensionOrMetricFilter.StringFilter other)

public AudienceDimensionOrMetricFilter.StringFilter.Builder mergeFrom(AudienceDimensionOrMetricFilter.StringFilter other)
Parameter
NameDescription
otherAudienceDimensionOrMetricFilter.StringFilter
Returns
TypeDescription
AudienceDimensionOrMetricFilter.StringFilter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AudienceDimensionOrMetricFilter.StringFilter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AudienceDimensionOrMetricFilter.StringFilter.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AudienceDimensionOrMetricFilter.StringFilter.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AudienceDimensionOrMetricFilter.StringFilter.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AudienceDimensionOrMetricFilter.StringFilter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AudienceDimensionOrMetricFilter.StringFilter.Builder
Overrides

setCaseSensitive(boolean value)

public AudienceDimensionOrMetricFilter.StringFilter.Builder setCaseSensitive(boolean value)

Optional. If true, the match is case-sensitive. If false, the match is case-insensitive.

bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The caseSensitive to set.

Returns
TypeDescription
AudienceDimensionOrMetricFilter.StringFilter.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AudienceDimensionOrMetricFilter.StringFilter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AudienceDimensionOrMetricFilter.StringFilter.Builder
Overrides

setMatchType(AudienceDimensionOrMetricFilter.StringFilter.MatchType value)

public AudienceDimensionOrMetricFilter.StringFilter.Builder setMatchType(AudienceDimensionOrMetricFilter.StringFilter.MatchType value)

Required. The match type for the string filter.

.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueAudienceDimensionOrMetricFilter.StringFilter.MatchType

The matchType to set.

Returns
TypeDescription
AudienceDimensionOrMetricFilter.StringFilter.Builder

This builder for chaining.

setMatchTypeValue(int value)

public AudienceDimensionOrMetricFilter.StringFilter.Builder setMatchTypeValue(int value)

Required. The match type for the string filter.

.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

The enum numeric value on the wire for matchType to set.

Returns
TypeDescription
AudienceDimensionOrMetricFilter.StringFilter.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AudienceDimensionOrMetricFilter.StringFilter.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AudienceDimensionOrMetricFilter.StringFilter.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AudienceDimensionOrMetricFilter.StringFilter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AudienceDimensionOrMetricFilter.StringFilter.Builder
Overrides

setValue(String value)

public AudienceDimensionOrMetricFilter.StringFilter.Builder setValue(String value)

Required. The string value to be matched against.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The value to set.

Returns
TypeDescription
AudienceDimensionOrMetricFilter.StringFilter.Builder

This builder for chaining.

setValueBytes(ByteString value)

public AudienceDimensionOrMetricFilter.StringFilter.Builder setValueBytes(ByteString value)

Required. The string value to be matched against.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for value to set.

Returns
TypeDescription
AudienceDimensionOrMetricFilter.StringFilter.Builder

This builder for chaining.