Class GroupingRule.Builder (0.95.0)

public static final class GroupingRule.Builder extends GeneratedMessage.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

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

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 GeneratedMessage.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

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