Class AccountSummary.Builder

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

public static final class AccountSummary.Builder extends com.google.protobuf.GeneratedMessage.Builder<AccountSummary.Builder> implements AccountSummaryOrBuilder
 A virtual resource representing an overview of an account and
 all its child Google Analytics properties.
 
Protobuf type google.analytics.admin.v1alpha.AccountSummary
  • 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<AccountSummary.Builder>
    • clear

      public AccountSummary.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<AccountSummary.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<AccountSummary.Builder>
    • getDefaultInstanceForType

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

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

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

      public AccountSummary.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<AccountSummary.Builder>
    • mergeFrom

      public AccountSummary.Builder mergeFrom(AccountSummary other)
    • isInitialized

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

      public AccountSummary.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<AccountSummary.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. Resource name for this account summary.
       Format: accountSummaries/{account_id}
       Example: "accountSummaries/1000"
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface AccountSummaryOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Resource name for this account summary.
       Format: accountSummaries/{account_id}
       Example: "accountSummaries/1000"
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface AccountSummaryOrBuilder
      Returns:
      The bytes for name.
    • setName

      public AccountSummary.Builder setName(String value)
       Identifier. Resource name for this account summary.
       Format: accountSummaries/{account_id}
       Example: "accountSummaries/1000"
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public AccountSummary.Builder clearName()
       Identifier. Resource name for this account summary.
       Format: accountSummaries/{account_id}
       Example: "accountSummaries/1000"
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public AccountSummary.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. Resource name for this account summary.
       Format: accountSummaries/{account_id}
       Example: "accountSummaries/1000"
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getAccount

      public String getAccount()
       Resource name of account referred to by this account summary
       Format: accounts/{account_id}
       Example: "accounts/1000"
       
      string account = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getAccount in interface AccountSummaryOrBuilder
      Returns:
      The account.
    • getAccountBytes

      public com.google.protobuf.ByteString getAccountBytes()
       Resource name of account referred to by this account summary
       Format: accounts/{account_id}
       Example: "accounts/1000"
       
      string account = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getAccountBytes in interface AccountSummaryOrBuilder
      Returns:
      The bytes for account.
    • setAccount

      public AccountSummary.Builder setAccount(String value)
       Resource name of account referred to by this account summary
       Format: accounts/{account_id}
       Example: "accounts/1000"
       
      string account = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The account to set.
      Returns:
      This builder for chaining.
    • clearAccount

      public AccountSummary.Builder clearAccount()
       Resource name of account referred to by this account summary
       Format: accounts/{account_id}
       Example: "accounts/1000"
       
      string account = 2 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setAccountBytes

      public AccountSummary.Builder setAccountBytes(com.google.protobuf.ByteString value)
       Resource name of account referred to by this account summary
       Format: accounts/{account_id}
       Example: "accounts/1000"
       
      string account = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for account to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Display name for the account referred to in this account summary.
       
      string display_name = 3;
      Specified by:
      getDisplayName in interface AccountSummaryOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Display name for the account referred to in this account summary.
       
      string display_name = 3;
      Specified by:
      getDisplayNameBytes in interface AccountSummaryOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public AccountSummary.Builder setDisplayName(String value)
       Display name for the account referred to in this account summary.
       
      string display_name = 3;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public AccountSummary.Builder clearDisplayName()
       Display name for the account referred to in this account summary.
       
      string display_name = 3;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public AccountSummary.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Display name for the account referred to in this account summary.
       
      string display_name = 3;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getPropertySummariesList

      public List<PropertySummary> getPropertySummariesList()
       List of summaries for child accounts of this account.
       
      repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;
      Specified by:
      getPropertySummariesList in interface AccountSummaryOrBuilder
    • getPropertySummariesCount

      public int getPropertySummariesCount()
       List of summaries for child accounts of this account.
       
      repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;
      Specified by:
      getPropertySummariesCount in interface AccountSummaryOrBuilder
    • getPropertySummaries

      public PropertySummary getPropertySummaries(int index)
       List of summaries for child accounts of this account.
       
      repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;
      Specified by:
      getPropertySummaries in interface AccountSummaryOrBuilder
    • setPropertySummaries

      public AccountSummary.Builder setPropertySummaries(int index, PropertySummary value)
       List of summaries for child accounts of this account.
       
      repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;
    • setPropertySummaries

      public AccountSummary.Builder setPropertySummaries(int index, PropertySummary.Builder builderForValue)
       List of summaries for child accounts of this account.
       
      repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;
    • addPropertySummaries

      public AccountSummary.Builder addPropertySummaries(PropertySummary value)
       List of summaries for child accounts of this account.
       
      repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;
    • addPropertySummaries

      public AccountSummary.Builder addPropertySummaries(int index, PropertySummary value)
       List of summaries for child accounts of this account.
       
      repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;
    • addPropertySummaries

      public AccountSummary.Builder addPropertySummaries(PropertySummary.Builder builderForValue)
       List of summaries for child accounts of this account.
       
      repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;
    • addPropertySummaries

      public AccountSummary.Builder addPropertySummaries(int index, PropertySummary.Builder builderForValue)
       List of summaries for child accounts of this account.
       
      repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;
    • addAllPropertySummaries

      public AccountSummary.Builder addAllPropertySummaries(Iterable<? extends PropertySummary> values)
       List of summaries for child accounts of this account.
       
      repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;
    • clearPropertySummaries

      public AccountSummary.Builder clearPropertySummaries()
       List of summaries for child accounts of this account.
       
      repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;
    • removePropertySummaries

      public AccountSummary.Builder removePropertySummaries(int index)
       List of summaries for child accounts of this account.
       
      repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;
    • getPropertySummariesBuilder

      public PropertySummary.Builder getPropertySummariesBuilder(int index)
       List of summaries for child accounts of this account.
       
      repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;
    • getPropertySummariesOrBuilder

      public PropertySummaryOrBuilder getPropertySummariesOrBuilder(int index)
       List of summaries for child accounts of this account.
       
      repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;
      Specified by:
      getPropertySummariesOrBuilder in interface AccountSummaryOrBuilder
    • getPropertySummariesOrBuilderList

      public List<? extends PropertySummaryOrBuilder> getPropertySummariesOrBuilderList()
       List of summaries for child accounts of this account.
       
      repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;
      Specified by:
      getPropertySummariesOrBuilderList in interface AccountSummaryOrBuilder
    • addPropertySummariesBuilder

      public PropertySummary.Builder addPropertySummariesBuilder()
       List of summaries for child accounts of this account.
       
      repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;
    • addPropertySummariesBuilder

      public PropertySummary.Builder addPropertySummariesBuilder(int index)
       List of summaries for child accounts of this account.
       
      repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;
    • getPropertySummariesBuilderList

      public List<PropertySummary.Builder> getPropertySummariesBuilderList()
       List of summaries for child accounts of this account.
       
      repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4;