Class GroupingRule.Builder (0.55.0)

public static final class GroupingRule.Builder extends GeneratedMessageV3.Builder<GroupingRule.Builder> implements GroupingRuleOrBuilder

The rules that govern how traffic is grouped into one channel.

Protobuf type google.analytics.admin.v1alpha.GroupingRule

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GroupingRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GroupingRule.Builder
Overrides

build()

public GroupingRule build()
Returns
Type Description
GroupingRule

buildPartial()

public GroupingRule buildPartial()
Returns
Type Description
GroupingRule

clear()

public GroupingRule.Builder clear()
Returns
Type Description
GroupingRule.Builder
Overrides

clearDisplayName()

public GroupingRule.Builder clearDisplayName()

Required. Customer defined display name for the channel.

string display_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GroupingRule.Builder

This builder for chaining.

clearExpression()

public GroupingRule.Builder clearExpression()

Required. The Filter Expression that defines the Grouping Rule.

.google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GroupingRule.Builder

clearField(Descriptors.FieldDescriptor field)

public GroupingRule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GroupingRule.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public GroupingRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GroupingRule.Builder
Overrides

clone()

public GroupingRule.Builder clone()
Returns
Type Description
GroupingRule.Builder
Overrides

getDefaultInstanceForType()

public GroupingRule getDefaultInstanceForType()
Returns
Type Description
GroupingRule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Required. Customer defined display name for the channel.

string display_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. Customer defined display name for the channel.

string display_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for displayName.

getExpression()

public ChannelGroupFilterExpression getExpression()

Required. The Filter Expression that defines the Grouping Rule.

.google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ChannelGroupFilterExpression

The expression.

getExpressionBuilder()

public ChannelGroupFilterExpression.Builder getExpressionBuilder()

Required. The Filter Expression that defines the Grouping Rule.

.google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ChannelGroupFilterExpression.Builder

getExpressionOrBuilder()

public ChannelGroupFilterExpressionOrBuilder getExpressionOrBuilder()

Required. The Filter Expression that defines the Grouping Rule.

.google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ChannelGroupFilterExpressionOrBuilder

hasExpression()

public boolean hasExpression()

Required. The Filter Expression that defines the Grouping Rule.

.google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the expression field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExpression(ChannelGroupFilterExpression value)

public GroupingRule.Builder mergeExpression(ChannelGroupFilterExpression value)

Required. The Filter Expression that defines the Grouping Rule.

.google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ChannelGroupFilterExpression
Returns
Type Description
GroupingRule.Builder

mergeFrom(GroupingRule other)

public GroupingRule.Builder mergeFrom(GroupingRule other)
Parameter
Name Description
other GroupingRule
Returns
Type Description
GroupingRule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GroupingRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GroupingRule.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GroupingRule.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GroupingRule.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GroupingRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GroupingRule.Builder
Overrides

setDisplayName(String value)

public GroupingRule.Builder setDisplayName(String value)

Required. Customer defined display name for the channel.

string display_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
GroupingRule.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public GroupingRule.Builder setDisplayNameBytes(ByteString value)

Required. Customer defined display name for the channel.

string display_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
GroupingRule.Builder

This builder for chaining.

setExpression(ChannelGroupFilterExpression value)

public GroupingRule.Builder setExpression(ChannelGroupFilterExpression value)

Required. The Filter Expression that defines the Grouping Rule.

.google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ChannelGroupFilterExpression
Returns
Type Description
GroupingRule.Builder

setExpression(ChannelGroupFilterExpression.Builder builderForValue)

public GroupingRule.Builder setExpression(ChannelGroupFilterExpression.Builder builderForValue)

Required. The Filter Expression that defines the Grouping Rule.

.google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ChannelGroupFilterExpression.Builder
Returns
Type Description
GroupingRule.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public GroupingRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GroupingRule.Builder
Overrides

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

public GroupingRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GroupingRule.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GroupingRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GroupingRule.Builder
Overrides