Class ChannelGroup.Builder (0.30.0)

public static final class ChannelGroup.Builder extends GeneratedMessageV3.Builder<ChannelGroup.Builder> implements ChannelGroupOrBuilder

A resource message representing a Channel Group.

Protobuf type google.analytics.admin.v1alpha.ChannelGroup

Static Methods

getDescriptor()

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

Methods

addAllGroupingRule(Iterable<? extends GroupingRule> values)

public ChannelGroup.Builder addAllGroupingRule(Iterable<? extends GroupingRule> values)

Required. The grouping rules of channels. Maximum number of rules is 25.

repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<? extends com.google.analytics.admin.v1alpha.GroupingRule>
Returns
TypeDescription
ChannelGroup.Builder

addGroupingRule(GroupingRule value)

public ChannelGroup.Builder addGroupingRule(GroupingRule value)

Required. The grouping rules of channels. Maximum number of rules is 25.

repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueGroupingRule
Returns
TypeDescription
ChannelGroup.Builder

addGroupingRule(GroupingRule.Builder builderForValue)

public ChannelGroup.Builder addGroupingRule(GroupingRule.Builder builderForValue)

Required. The grouping rules of channels. Maximum number of rules is 25.

repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueGroupingRule.Builder
Returns
TypeDescription
ChannelGroup.Builder

addGroupingRule(int index, GroupingRule value)

public ChannelGroup.Builder addGroupingRule(int index, GroupingRule value)

Required. The grouping rules of channels. Maximum number of rules is 25.

repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueGroupingRule
Returns
TypeDescription
ChannelGroup.Builder

addGroupingRule(int index, GroupingRule.Builder builderForValue)

public ChannelGroup.Builder addGroupingRule(int index, GroupingRule.Builder builderForValue)

Required. The grouping rules of channels. Maximum number of rules is 25.

repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueGroupingRule.Builder
Returns
TypeDescription
ChannelGroup.Builder

addGroupingRuleBuilder()

public GroupingRule.Builder addGroupingRuleBuilder()

Required. The grouping rules of channels. Maximum number of rules is 25.

repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
GroupingRule.Builder

addGroupingRuleBuilder(int index)

public GroupingRule.Builder addGroupingRuleBuilder(int index)

Required. The grouping rules of channels. Maximum number of rules is 25.

repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
GroupingRule.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ChannelGroup build()
Returns
TypeDescription
ChannelGroup

buildPartial()

public ChannelGroup buildPartial()
Returns
TypeDescription
ChannelGroup

clear()

public ChannelGroup.Builder clear()
Returns
TypeDescription
ChannelGroup.Builder
Overrides

clearDescription()

public ChannelGroup.Builder clearDescription()

The description of the Channel Group. Max length of 256 characters.

string description = 3;

Returns
TypeDescription
ChannelGroup.Builder

This builder for chaining.

clearDisplayName()

public ChannelGroup.Builder clearDisplayName()

Required. The display name of the Channel Group. Max length of 80 characters.

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

Returns
TypeDescription
ChannelGroup.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGroupingRule()

public ChannelGroup.Builder clearGroupingRule()

Required. The grouping rules of channels. Maximum number of rules is 25.

repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ChannelGroup.Builder

clearName()

public ChannelGroup.Builder clearName()

Output only. The resource name for this Channel Group resource. Format: properties/{property}/channelGroups/{channel_group}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ChannelGroup.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSystemDefined()

public ChannelGroup.Builder clearSystemDefined()

Output only. Default Channel Group defined by Google, which cannot be updated.

bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ChannelGroup.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ChannelGroup getDefaultInstanceForType()
Returns
TypeDescription
ChannelGroup

getDescription()

public String getDescription()

The description of the Channel Group. Max length of 256 characters.

string description = 3;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The description of the Channel Group. Max length of 256 characters.

string description = 3;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Required. The display name of the Channel Group. Max length of 80 characters.

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

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The display name of the Channel Group. Max length of 80 characters.

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

Returns
TypeDescription
ByteString

The bytes for displayName.

getGroupingRule(int index)

public GroupingRule getGroupingRule(int index)

Required. The grouping rules of channels. Maximum number of rules is 25.

repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
GroupingRule

getGroupingRuleBuilder(int index)

public GroupingRule.Builder getGroupingRuleBuilder(int index)

Required. The grouping rules of channels. Maximum number of rules is 25.

repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
GroupingRule.Builder

getGroupingRuleBuilderList()

public List<GroupingRule.Builder> getGroupingRuleBuilderList()

Required. The grouping rules of channels. Maximum number of rules is 25.

repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<Builder>

getGroupingRuleCount()

public int getGroupingRuleCount()

Required. The grouping rules of channels. Maximum number of rules is 25.

repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

getGroupingRuleList()

public List<GroupingRule> getGroupingRuleList()

Required. The grouping rules of channels. Maximum number of rules is 25.

repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<GroupingRule>

getGroupingRuleOrBuilder(int index)

public GroupingRuleOrBuilder getGroupingRuleOrBuilder(int index)

Required. The grouping rules of channels. Maximum number of rules is 25.

repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
GroupingRuleOrBuilder

getGroupingRuleOrBuilderList()

public List<? extends GroupingRuleOrBuilder> getGroupingRuleOrBuilderList()

Required. The grouping rules of channels. Maximum number of rules is 25.

repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<? extends com.google.analytics.admin.v1alpha.GroupingRuleOrBuilder>

getName()

public String getName()

Output only. The resource name for this Channel Group resource. Format: properties/{property}/channelGroups/{channel_group}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name for this Channel Group resource. Format: properties/{property}/channelGroups/{channel_group}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getSystemDefined()

public boolean getSystemDefined()

Output only. Default Channel Group defined by Google, which cannot be updated.

bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The systemDefined.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ChannelGroup other)

public ChannelGroup.Builder mergeFrom(ChannelGroup other)
Parameter
NameDescription
otherChannelGroup
Returns
TypeDescription
ChannelGroup.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeGroupingRule(int index)

public ChannelGroup.Builder removeGroupingRule(int index)

Required. The grouping rules of channels. Maximum number of rules is 25.

repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
ChannelGroup.Builder

setDescription(String value)

public ChannelGroup.Builder setDescription(String value)

The description of the Channel Group. Max length of 256 characters.

string description = 3;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
ChannelGroup.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ChannelGroup.Builder setDescriptionBytes(ByteString value)

The description of the Channel Group. Max length of 256 characters.

string description = 3;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
ChannelGroup.Builder

This builder for chaining.

setDisplayName(String value)

public ChannelGroup.Builder setDisplayName(String value)

Required. The display name of the Channel Group. Max length of 80 characters.

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

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
ChannelGroup.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public ChannelGroup.Builder setDisplayNameBytes(ByteString value)

Required. The display name of the Channel Group. Max length of 80 characters.

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

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
ChannelGroup.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGroupingRule(int index, GroupingRule value)

public ChannelGroup.Builder setGroupingRule(int index, GroupingRule value)

Required. The grouping rules of channels. Maximum number of rules is 25.

repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueGroupingRule
Returns
TypeDescription
ChannelGroup.Builder

setGroupingRule(int index, GroupingRule.Builder builderForValue)

public ChannelGroup.Builder setGroupingRule(int index, GroupingRule.Builder builderForValue)

Required. The grouping rules of channels. Maximum number of rules is 25.

repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueGroupingRule.Builder
Returns
TypeDescription
ChannelGroup.Builder

setName(String value)

public ChannelGroup.Builder setName(String value)

Output only. The resource name for this Channel Group resource. Format: properties/{property}/channelGroups/{channel_group}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ChannelGroup.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ChannelGroup.Builder setNameBytes(ByteString value)

Output only. The resource name for this Channel Group resource. Format: properties/{property}/channelGroups/{channel_group}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ChannelGroup.Builder

This builder for chaining.

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

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

setSystemDefined(boolean value)

public ChannelGroup.Builder setSystemDefined(boolean value)

Output only. Default Channel Group defined by Google, which cannot be updated.

bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueboolean

The systemDefined to set.

Returns
TypeDescription
ChannelGroup.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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