Class MerchantCenterIdentifier.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MerchantCenterIdentifier.Builder>
com.google.ads.googleads.v22.resources.MerchantCenterIdentifier.Builder
All Implemented Interfaces:
MerchantCenterIdentifierOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
MerchantCenterIdentifier

public static final class MerchantCenterIdentifier.Builder extends com.google.protobuf.GeneratedMessage.Builder<MerchantCenterIdentifier.Builder> implements MerchantCenterIdentifierOrBuilder
 The identifier for Google Merchant Center account
 
Protobuf type google.ads.googleads.v22.resources.MerchantCenterIdentifier
  • 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<MerchantCenterIdentifier.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<MerchantCenterIdentifier.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<MerchantCenterIdentifier.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public MerchantCenterIdentifier.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<MerchantCenterIdentifier.Builder>
      Throws:
      IOException
    • hasMerchantCenterId

      public boolean hasMerchantCenterId()
       Immutable. The customer ID of the Google Merchant Center account.
       This field is required and should not be empty when creating a new
       Merchant Center link. It is unable to be modified after the creation of
       the link.
       
      optional int64 merchant_center_id = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasMerchantCenterId in interface MerchantCenterIdentifierOrBuilder
      Returns:
      Whether the merchantCenterId field is set.
    • getMerchantCenterId

      public long getMerchantCenterId()
       Immutable. The customer ID of the Google Merchant Center account.
       This field is required and should not be empty when creating a new
       Merchant Center link. It is unable to be modified after the creation of
       the link.
       
      optional int64 merchant_center_id = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getMerchantCenterId in interface MerchantCenterIdentifierOrBuilder
      Returns:
      The merchantCenterId.
    • setMerchantCenterId

      public MerchantCenterIdentifier.Builder setMerchantCenterId(long value)
       Immutable. The customer ID of the Google Merchant Center account.
       This field is required and should not be empty when creating a new
       Merchant Center link. It is unable to be modified after the creation of
       the link.
       
      optional int64 merchant_center_id = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The merchantCenterId to set.
      Returns:
      This builder for chaining.
    • clearMerchantCenterId

      public MerchantCenterIdentifier.Builder clearMerchantCenterId()
       Immutable. The customer ID of the Google Merchant Center account.
       This field is required and should not be empty when creating a new
       Merchant Center link. It is unable to be modified after the creation of
       the link.
       
      optional int64 merchant_center_id = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.