Class ChannelGroup.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ChannelGroup.Builder>
com.google.analytics.admin.v1alpha.ChannelGroup.Builder
All Implemented Interfaces:
ChannelGroupOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ChannelGroup

public static final class ChannelGroup.Builder extends com.google.protobuf.GeneratedMessage.Builder<ChannelGroup.Builder> implements ChannelGroupOrBuilder
 A resource message representing a Channel Group.
 
Protobuf type google.analytics.admin.v1alpha.ChannelGroup
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ChannelGroup.Builder>
    • clear

      public ChannelGroup.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ChannelGroup.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ChannelGroup.Builder>
    • getDefaultInstanceForType

      public ChannelGroup getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ChannelGroup build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ChannelGroup buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ChannelGroup.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ChannelGroup.Builder>
    • mergeFrom

      public ChannelGroup.Builder mergeFrom(ChannelGroup other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ChannelGroup.Builder>
    • mergeFrom

      public ChannelGroup.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ChannelGroup.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getName in interface ChannelGroupOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.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];
      Specified by:
      getNameBytes in interface ChannelGroupOrBuilder
      Returns:
      The bytes for name.
    • setName

      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];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setNameBytes

      public ChannelGroup.Builder setNameBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getDisplayName in interface ChannelGroupOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Required. The display name of the Channel Group. Max length of 80
       characters.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayNameBytes in interface ChannelGroupOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      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];
      Parameters:
      value - The displayName to set.
      Returns:
      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:
      This builder for chaining.
    • setDisplayNameBytes

      public ChannelGroup.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Required. The display name of the Channel Group. Max length of 80
       characters.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       The description of the Channel Group. Max length of 256 characters.
       
      string description = 3;
      Specified by:
      getDescription in interface ChannelGroupOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       The description of the Channel Group. Max length of 256 characters.
       
      string description = 3;
      Specified by:
      getDescriptionBytes in interface ChannelGroupOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public ChannelGroup.Builder setDescription(String value)
       The description of the Channel Group. Max length of 256 characters.
       
      string description = 3;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public ChannelGroup.Builder clearDescription()
       The description of the Channel Group. Max length of 256 characters.
       
      string description = 3;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public ChannelGroup.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       The description of the Channel Group. Max length of 256 characters.
       
      string description = 3;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getGroupingRuleList

      public List<GroupingRule> getGroupingRuleList()
       Required. The grouping rules of channels. Maximum number of rules is 50.
       
      repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getGroupingRuleList in interface ChannelGroupOrBuilder
    • getGroupingRuleCount

      public int getGroupingRuleCount()
       Required. The grouping rules of channels. Maximum number of rules is 50.
       
      repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getGroupingRuleCount in interface ChannelGroupOrBuilder
    • getGroupingRule

      public GroupingRule getGroupingRule(int index)
       Required. The grouping rules of channels. Maximum number of rules is 50.
       
      repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getGroupingRule in interface ChannelGroupOrBuilder
    • setGroupingRule

      public ChannelGroup.Builder setGroupingRule(int index, GroupingRule value)
       Required. The grouping rules of channels. Maximum number of rules is 50.
       
      repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];
    • setGroupingRule

      public ChannelGroup.Builder setGroupingRule(int index, GroupingRule.Builder builderForValue)
       Required. The grouping rules of channels. Maximum number of rules is 50.
       
      repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];
    • addGroupingRule

      public ChannelGroup.Builder addGroupingRule(GroupingRule value)
       Required. The grouping rules of channels. Maximum number of rules is 50.
       
      repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];
    • addGroupingRule

      public ChannelGroup.Builder addGroupingRule(int index, GroupingRule value)
       Required. The grouping rules of channels. Maximum number of rules is 50.
       
      repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];
    • addGroupingRule

      public ChannelGroup.Builder addGroupingRule(GroupingRule.Builder builderForValue)
       Required. The grouping rules of channels. Maximum number of rules is 50.
       
      repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];
    • addGroupingRule

      public ChannelGroup.Builder addGroupingRule(int index, GroupingRule.Builder builderForValue)
       Required. The grouping rules of channels. Maximum number of rules is 50.
       
      repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];
    • addAllGroupingRule

      public ChannelGroup.Builder addAllGroupingRule(Iterable<? extends GroupingRule> values)
       Required. The grouping rules of channels. Maximum number of rules is 50.
       
      repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];
    • clearGroupingRule

      public ChannelGroup.Builder clearGroupingRule()
       Required. The grouping rules of channels. Maximum number of rules is 50.
       
      repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];
    • removeGroupingRule

      public ChannelGroup.Builder removeGroupingRule(int index)
       Required. The grouping rules of channels. Maximum number of rules is 50.
       
      repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];
    • getGroupingRuleBuilder

      public GroupingRule.Builder getGroupingRuleBuilder(int index)
       Required. The grouping rules of channels. Maximum number of rules is 50.
       
      repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];
    • getGroupingRuleOrBuilder

      public GroupingRuleOrBuilder getGroupingRuleOrBuilder(int index)
       Required. The grouping rules of channels. Maximum number of rules is 50.
       
      repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getGroupingRuleOrBuilder in interface ChannelGroupOrBuilder
    • getGroupingRuleOrBuilderList

      public List<? extends GroupingRuleOrBuilder> getGroupingRuleOrBuilderList()
       Required. The grouping rules of channels. Maximum number of rules is 50.
       
      repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getGroupingRuleOrBuilderList in interface ChannelGroupOrBuilder
    • addGroupingRuleBuilder

      public GroupingRule.Builder addGroupingRuleBuilder()
       Required. The grouping rules of channels. Maximum number of rules is 50.
       
      repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];
    • addGroupingRuleBuilder

      public GroupingRule.Builder addGroupingRuleBuilder(int index)
       Required. The grouping rules of channels. Maximum number of rules is 50.
       
      repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];
    • getGroupingRuleBuilderList

      public List<GroupingRule.Builder> getGroupingRuleBuilderList()
       Required. The grouping rules of channels. Maximum number of rules is 50.
       
      repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED];
    • getSystemDefined

      public boolean getSystemDefined()
       Output only. If true, then this channel group is the Default Channel Group
       predefined by Google Analytics. Display name and grouping rules cannot be
       updated for this channel group.
       
      bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSystemDefined in interface ChannelGroupOrBuilder
      Returns:
      The systemDefined.
    • setSystemDefined

      public ChannelGroup.Builder setSystemDefined(boolean value)
       Output only. If true, then this channel group is the Default Channel Group
       predefined by Google Analytics. Display name and grouping rules cannot be
       updated for this channel group.
       
      bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The systemDefined to set.
      Returns:
      This builder for chaining.
    • clearSystemDefined

      public ChannelGroup.Builder clearSystemDefined()
       Output only. If true, then this channel group is the Default Channel Group
       predefined by Google Analytics. Display name and grouping rules cannot be
       updated for this channel group.
       
      bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getPrimary

      public boolean getPrimary()
       Optional. If true, this channel group will be used as the default channel
       group for reports. Only one channel group can be set as `primary` at any
       time. If the `primary` field gets set on a channel group, it will get unset
       on the previous primary channel group.
      
       The Google Analytics predefined channel group is the primary by default.
       
      bool primary = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPrimary in interface ChannelGroupOrBuilder
      Returns:
      The primary.
    • setPrimary

      public ChannelGroup.Builder setPrimary(boolean value)
       Optional. If true, this channel group will be used as the default channel
       group for reports. Only one channel group can be set as `primary` at any
       time. If the `primary` field gets set on a channel group, it will get unset
       on the previous primary channel group.
      
       The Google Analytics predefined channel group is the primary by default.
       
      bool primary = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The primary to set.
      Returns:
      This builder for chaining.
    • clearPrimary

      public ChannelGroup.Builder clearPrimary()
       Optional. If true, this channel group will be used as the default channel
       group for reports. Only one channel group can be set as `primary` at any
       time. If the `primary` field gets set on a channel group, it will get unset
       on the previous primary channel group.
      
       The Google Analytics predefined channel group is the primary by default.
       
      bool primary = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.