Class Account.Builder

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

public static final class Account.Builder extends com.google.protobuf.GeneratedMessage.Builder<Account.Builder> implements AccountOrBuilder
 A resource message representing a Google Analytics account.
 
Protobuf type google.analytics.admin.v1alpha.Account
  • 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<Account.Builder>
    • clear

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

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

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

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

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

      public Account.Builder mergeFrom(Account other)
    • isInitialized

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

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

      public String getName()
       Identifier. Resource name of this account.
       Format: accounts/{account}
       Example: "accounts/100"
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface AccountOrBuilder
      Returns:
      The name.
    • getNameBytes

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

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

      public Account.Builder clearName()
       Identifier. Resource name of this account.
       Format: accounts/{account}
       Example: "accounts/100"
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

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

      public boolean hasCreateTime()
       Output only. Time when this account was originally created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface AccountOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Time when this account was originally created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface AccountOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Account.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Time when this account was originally created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Account.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Time when this account was originally created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Account.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Time when this account was originally created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Account.Builder clearCreateTime()
       Output only. Time when this account was originally created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Time when this account was originally created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Time when this account was originally created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface AccountOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Time when account payload fields were last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface AccountOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Time when account payload fields were last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface AccountOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Account.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Time when account payload fields were last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Account.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Time when account payload fields were last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Account.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Time when account payload fields were last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Account.Builder clearUpdateTime()
       Output only. Time when account payload fields were last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Time when account payload fields were last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Time when account payload fields were last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface AccountOrBuilder
    • getDisplayName

      public String getDisplayName()
       Required. Human-readable display name for this account.
       
      string display_name = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayName in interface AccountOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Required. Human-readable display name for this account.
       
      string display_name = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayNameBytes in interface AccountOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Account.Builder setDisplayName(String value)
       Required. Human-readable display name for this account.
       
      string display_name = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Account.Builder clearDisplayName()
       Required. Human-readable display name for this account.
       
      string display_name = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Account.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Required. Human-readable display name for this account.
       
      string display_name = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getRegionCode

      public String getRegionCode()
       Country of business. Must be a Unicode CLDR region code.
       
      string region_code = 5;
      Specified by:
      getRegionCode in interface AccountOrBuilder
      Returns:
      The regionCode.
    • getRegionCodeBytes

      public com.google.protobuf.ByteString getRegionCodeBytes()
       Country of business. Must be a Unicode CLDR region code.
       
      string region_code = 5;
      Specified by:
      getRegionCodeBytes in interface AccountOrBuilder
      Returns:
      The bytes for regionCode.
    • setRegionCode

      public Account.Builder setRegionCode(String value)
       Country of business. Must be a Unicode CLDR region code.
       
      string region_code = 5;
      Parameters:
      value - The regionCode to set.
      Returns:
      This builder for chaining.
    • clearRegionCode

      public Account.Builder clearRegionCode()
       Country of business. Must be a Unicode CLDR region code.
       
      string region_code = 5;
      Returns:
      This builder for chaining.
    • setRegionCodeBytes

      public Account.Builder setRegionCodeBytes(com.google.protobuf.ByteString value)
       Country of business. Must be a Unicode CLDR region code.
       
      string region_code = 5;
      Parameters:
      value - The bytes for regionCode to set.
      Returns:
      This builder for chaining.
    • getDeleted

      public boolean getDeleted()
       Output only. Indicates whether this Account is soft-deleted or not. Deleted
       accounts are excluded from List results unless specifically requested.
       
      bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeleted in interface AccountOrBuilder
      Returns:
      The deleted.
    • setDeleted

      public Account.Builder setDeleted(boolean value)
       Output only. Indicates whether this Account is soft-deleted or not. Deleted
       accounts are excluded from List results unless specifically requested.
       
      bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The deleted to set.
      Returns:
      This builder for chaining.
    • clearDeleted

      public Account.Builder clearDeleted()
       Output only. Indicates whether this Account is soft-deleted or not. Deleted
       accounts are excluded from List results unless specifically requested.
       
      bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getGmpOrganization

      public String getGmpOrganization()
       Output only. The URI for a Google Marketing Platform organization resource.
       Only set when this account is connected to a GMP organization.
       Format: marketingplatformadmin.googleapis.com/organizations/{org_id}
       
      string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getGmpOrganization in interface AccountOrBuilder
      Returns:
      The gmpOrganization.
    • getGmpOrganizationBytes

      public com.google.protobuf.ByteString getGmpOrganizationBytes()
       Output only. The URI for a Google Marketing Platform organization resource.
       Only set when this account is connected to a GMP organization.
       Format: marketingplatformadmin.googleapis.com/organizations/{org_id}
       
      string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getGmpOrganizationBytes in interface AccountOrBuilder
      Returns:
      The bytes for gmpOrganization.
    • setGmpOrganization

      public Account.Builder setGmpOrganization(String value)
       Output only. The URI for a Google Marketing Platform organization resource.
       Only set when this account is connected to a GMP organization.
       Format: marketingplatformadmin.googleapis.com/organizations/{org_id}
       
      string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The gmpOrganization to set.
      Returns:
      This builder for chaining.
    • clearGmpOrganization

      public Account.Builder clearGmpOrganization()
       Output only. The URI for a Google Marketing Platform organization resource.
       Only set when this account is connected to a GMP organization.
       Format: marketingplatformadmin.googleapis.com/organizations/{org_id}
       
      string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setGmpOrganizationBytes

      public Account.Builder setGmpOrganizationBytes(com.google.protobuf.ByteString value)
       Output only. The URI for a Google Marketing Platform organization resource.
       Only set when this account is connected to a GMP organization.
       Format: marketingplatformadmin.googleapis.com/organizations/{org_id}
       
      string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for gmpOrganization to set.
      Returns:
      This builder for chaining.