Class GroupingRule.Builder (0.40.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GroupingRule build()
Returns
TypeDescription
GroupingRule

buildPartial()

public GroupingRule buildPartial()
Returns
TypeDescription
GroupingRule

clear()

public GroupingRule.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
GroupingRule.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public GroupingRule.Builder clone()
Returns
TypeDescription
GroupingRule.Builder
Overrides

getDefaultInstanceForType()

public GroupingRule getDefaultInstanceForType()
Returns
TypeDescription
GroupingRule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Required. Customer defined display name for the channel.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the expression field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueChannelGroupFilterExpression
Returns
TypeDescription
GroupingRule.Builder

mergeFrom(GroupingRule other)

public GroupingRule.Builder mergeFrom(GroupingRule other)
Parameter
NameDescription
otherGroupingRule
Returns
TypeDescription
GroupingRule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GroupingRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
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
NameDescription
valueChannelGroupFilterExpression
Returns
TypeDescription
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
NameDescription
builderForValueChannelGroupFilterExpression.Builder
Returns
TypeDescription
GroupingRule.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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