Class BillingSetup

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.resources.BillingSetup
All Implemented Interfaces:
BillingSetupOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class BillingSetup extends com.google.protobuf.GeneratedMessageV3 implements BillingSetupOrBuilder
 A billing setup, which associates a payments account and an advertiser. A
 billing setup is specific to one advertiser.
 
Protobuf type google.ads.googleads.v18.resources.BillingSetup
See Also:
  • Field Details

    • RESOURCE_NAME_FIELD_NUMBER

      public static final int RESOURCE_NAME_FIELD_NUMBER
      See Also:
    • ID_FIELD_NUMBER

      public static final int ID_FIELD_NUMBER
      See Also:
    • STATUS_FIELD_NUMBER

      public static final int STATUS_FIELD_NUMBER
      See Also:
    • PAYMENTS_ACCOUNT_FIELD_NUMBER

      public static final int PAYMENTS_ACCOUNT_FIELD_NUMBER
      See Also:
    • PAYMENTS_ACCOUNT_INFO_FIELD_NUMBER

      public static final int PAYMENTS_ACCOUNT_INFO_FIELD_NUMBER
      See Also:
    • START_DATE_TIME_FIELD_NUMBER

      public static final int START_DATE_TIME_FIELD_NUMBER
      See Also:
    • START_TIME_TYPE_FIELD_NUMBER

      public static final int START_TIME_TYPE_FIELD_NUMBER
      See Also:
    • END_DATE_TIME_FIELD_NUMBER

      public static final int END_DATE_TIME_FIELD_NUMBER
      See Also:
    • END_TIME_TYPE_FIELD_NUMBER

      public static final int END_TIME_TYPE_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getStartTimeCase

      public BillingSetup.StartTimeCase getStartTimeCase()
      Specified by:
      getStartTimeCase in interface BillingSetupOrBuilder
    • getEndTimeCase

      public BillingSetup.EndTimeCase getEndTimeCase()
      Specified by:
      getEndTimeCase in interface BillingSetupOrBuilder
    • getResourceName

      public String getResourceName()
       Immutable. The resource name of the billing setup.
       BillingSetup resource names have the form:
      
       `customers/{customer_id}/billingSetups/{billing_setup_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceName in interface BillingSetupOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public com.google.protobuf.ByteString getResourceNameBytes()
       Immutable. The resource name of the billing setup.
       BillingSetup resource names have the form:
      
       `customers/{customer_id}/billingSetups/{billing_setup_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceNameBytes in interface BillingSetupOrBuilder
      Returns:
      The bytes for resourceName.
    • hasId

      public boolean hasId()
       Output only. The ID of the billing setup.
       
      optional int64 id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasId in interface BillingSetupOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public long getId()
       Output only. The ID of the billing setup.
       
      optional int64 id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getId in interface BillingSetupOrBuilder
      Returns:
      The id.
    • getStatusValue

      public int getStatusValue()
       Output only. The status of the billing setup.
       
      .google.ads.googleads.v18.enums.BillingSetupStatusEnum.BillingSetupStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatusValue in interface BillingSetupOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • getStatus

       Output only. The status of the billing setup.
       
      .google.ads.googleads.v18.enums.BillingSetupStatusEnum.BillingSetupStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatus in interface BillingSetupOrBuilder
      Returns:
      The status.
    • hasPaymentsAccount

      public boolean hasPaymentsAccount()
       Immutable. The resource name of the payments account associated with this
       billing setup. Payments resource names have the form:
      
       `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
       When setting up billing, this is used to signup with an existing payments
       account (and then payments_account_info should not be set).
       When getting a billing setup, this and payments_account_info will be
       populated.
       
      optional string payments_account = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      hasPaymentsAccount in interface BillingSetupOrBuilder
      Returns:
      Whether the paymentsAccount field is set.
    • getPaymentsAccount

      public String getPaymentsAccount()
       Immutable. The resource name of the payments account associated with this
       billing setup. Payments resource names have the form:
      
       `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
       When setting up billing, this is used to signup with an existing payments
       account (and then payments_account_info should not be set).
       When getting a billing setup, this and payments_account_info will be
       populated.
       
      optional string payments_account = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getPaymentsAccount in interface BillingSetupOrBuilder
      Returns:
      The paymentsAccount.
    • getPaymentsAccountBytes

      public com.google.protobuf.ByteString getPaymentsAccountBytes()
       Immutable. The resource name of the payments account associated with this
       billing setup. Payments resource names have the form:
      
       `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
       When setting up billing, this is used to signup with an existing payments
       account (and then payments_account_info should not be set).
       When getting a billing setup, this and payments_account_info will be
       populated.
       
      optional string payments_account = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getPaymentsAccountBytes in interface BillingSetupOrBuilder
      Returns:
      The bytes for paymentsAccount.
    • hasPaymentsAccountInfo

      public boolean hasPaymentsAccountInfo()
       Immutable. The payments account information associated with this billing
       setup. When setting up billing, this is used to signup with a new payments
       account (and then payments_account should not be set). When getting a
       billing setup, this and payments_account will be populated.
       
      .google.ads.googleads.v18.resources.BillingSetup.PaymentsAccountInfo payments_account_info = 12 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasPaymentsAccountInfo in interface BillingSetupOrBuilder
      Returns:
      Whether the paymentsAccountInfo field is set.
    • getPaymentsAccountInfo

      public BillingSetup.PaymentsAccountInfo getPaymentsAccountInfo()
       Immutable. The payments account information associated with this billing
       setup. When setting up billing, this is used to signup with a new payments
       account (and then payments_account should not be set). When getting a
       billing setup, this and payments_account will be populated.
       
      .google.ads.googleads.v18.resources.BillingSetup.PaymentsAccountInfo payments_account_info = 12 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getPaymentsAccountInfo in interface BillingSetupOrBuilder
      Returns:
      The paymentsAccountInfo.
    • getPaymentsAccountInfoOrBuilder

      public BillingSetup.PaymentsAccountInfoOrBuilder getPaymentsAccountInfoOrBuilder()
       Immutable. The payments account information associated with this billing
       setup. When setting up billing, this is used to signup with a new payments
       account (and then payments_account should not be set). When getting a
       billing setup, this and payments_account will be populated.
       
      .google.ads.googleads.v18.resources.BillingSetup.PaymentsAccountInfo payments_account_info = 12 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getPaymentsAccountInfoOrBuilder in interface BillingSetupOrBuilder
    • hasStartDateTime

      public boolean hasStartDateTime()
       Immutable. The start date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss
       format. Only a future time is allowed.
       
      string start_date_time = 16 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasStartDateTime in interface BillingSetupOrBuilder
      Returns:
      Whether the startDateTime field is set.
    • getStartDateTime

      public String getStartDateTime()
       Immutable. The start date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss
       format. Only a future time is allowed.
       
      string start_date_time = 16 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getStartDateTime in interface BillingSetupOrBuilder
      Returns:
      The startDateTime.
    • getStartDateTimeBytes

      public com.google.protobuf.ByteString getStartDateTimeBytes()
       Immutable. The start date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss
       format. Only a future time is allowed.
       
      string start_date_time = 16 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getStartDateTimeBytes in interface BillingSetupOrBuilder
      Returns:
      The bytes for startDateTime.
    • hasStartTimeType

      public boolean hasStartTimeType()
       Immutable. The start time as a type. Only NOW is allowed.
       
      .google.ads.googleads.v18.enums.TimeTypeEnum.TimeType start_time_type = 10 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasStartTimeType in interface BillingSetupOrBuilder
      Returns:
      Whether the startTimeType field is set.
    • getStartTimeTypeValue

      public int getStartTimeTypeValue()
       Immutable. The start time as a type. Only NOW is allowed.
       
      .google.ads.googleads.v18.enums.TimeTypeEnum.TimeType start_time_type = 10 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getStartTimeTypeValue in interface BillingSetupOrBuilder
      Returns:
      The enum numeric value on the wire for startTimeType.
    • getStartTimeType

      public TimeTypeEnum.TimeType getStartTimeType()
       Immutable. The start time as a type. Only NOW is allowed.
       
      .google.ads.googleads.v18.enums.TimeTypeEnum.TimeType start_time_type = 10 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getStartTimeType in interface BillingSetupOrBuilder
      Returns:
      The startTimeType.
    • hasEndDateTime

      public boolean hasEndDateTime()
       Output only. The end date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss
       format.
       
      string end_date_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasEndDateTime in interface BillingSetupOrBuilder
      Returns:
      Whether the endDateTime field is set.
    • getEndDateTime

      public String getEndDateTime()
       Output only. The end date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss
       format.
       
      string end_date_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEndDateTime in interface BillingSetupOrBuilder
      Returns:
      The endDateTime.
    • getEndDateTimeBytes

      public com.google.protobuf.ByteString getEndDateTimeBytes()
       Output only. The end date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss
       format.
       
      string end_date_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEndDateTimeBytes in interface BillingSetupOrBuilder
      Returns:
      The bytes for endDateTime.
    • hasEndTimeType

      public boolean hasEndTimeType()
       Output only. The end time as a type.  The only possible value is FOREVER.
       
      .google.ads.googleads.v18.enums.TimeTypeEnum.TimeType end_time_type = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasEndTimeType in interface BillingSetupOrBuilder
      Returns:
      Whether the endTimeType field is set.
    • getEndTimeTypeValue

      public int getEndTimeTypeValue()
       Output only. The end time as a type.  The only possible value is FOREVER.
       
      .google.ads.googleads.v18.enums.TimeTypeEnum.TimeType end_time_type = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEndTimeTypeValue in interface BillingSetupOrBuilder
      Returns:
      The enum numeric value on the wire for endTimeType.
    • getEndTimeType

      public TimeTypeEnum.TimeType getEndTimeType()
       Output only. The end time as a type.  The only possible value is FOREVER.
       
      .google.ads.googleads.v18.enums.TimeTypeEnum.TimeType end_time_type = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEndTimeType in interface BillingSetupOrBuilder
      Returns:
      The endTimeType.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static BillingSetup parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BillingSetup parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BillingSetup parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BillingSetup parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BillingSetup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BillingSetup parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BillingSetup parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BillingSetup parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static BillingSetup parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static BillingSetup parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BillingSetup parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BillingSetup parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public BillingSetup.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static BillingSetup.Builder newBuilder()
    • newBuilder

      public static BillingSetup.Builder newBuilder(BillingSetup prototype)
    • toBuilder

      public BillingSetup.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected BillingSetup.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static BillingSetup getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<BillingSetup> parser()
    • getParserForType

      public com.google.protobuf.Parser<BillingSetup> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public BillingSetup getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder