Class PaymentsAccount.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<PaymentsAccount.Builder>
com.google.ads.googleads.v18.resources.PaymentsAccount.Builder
- All Implemented Interfaces:
PaymentsAccountOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PaymentsAccount
public static final class PaymentsAccount.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<PaymentsAccount.Builder>
implements PaymentsAccountOrBuilder
A payments account, which can be used to set up billing for an Ads customer.Protobuf type
google.ads.googleads.v18.resources.PaymentsAccount-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Output only.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Output only.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Output only.Output only.Output only.Output only.Output only.clone()Output only.com.google.protobuf.ByteStringOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.booleanOutput only.booleanhasName()Output only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(PaymentsAccount other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final PaymentsAccount.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCurrencyCode(String value) Output only.setCurrencyCodeBytes(com.google.protobuf.ByteString value) Output only.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setPayingManagerCustomer(String value) Output only.setPayingManagerCustomerBytes(com.google.protobuf.ByteString value) Output only.setPaymentsAccountId(String value) Output only.setPaymentsAccountIdBytes(com.google.protobuf.ByteString value) Output only.setPaymentsProfileId(String value) Output only.setPaymentsProfileIdBytes(com.google.protobuf.ByteString value) Output only.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setResourceName(String value) Output only.setResourceNameBytes(com.google.protobuf.ByteString value) Output only.Output only.setSecondaryPaymentsProfileIdBytes(com.google.protobuf.ByteString value) Output only.final PaymentsAccount.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<PaymentsAccount.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<PaymentsAccount.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<PaymentsAccount.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<PaymentsAccount.Builder>
-
setField
public PaymentsAccount.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PaymentsAccount.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PaymentsAccount.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PaymentsAccount.Builder>
-
setRepeatedField
public PaymentsAccount.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PaymentsAccount.Builder>
-
addRepeatedField
public PaymentsAccount.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PaymentsAccount.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PaymentsAccount.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<PaymentsAccount.Builder>
-
mergeFrom
public PaymentsAccount.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PaymentsAccount.Builder>- Throws:
IOException
-
getResourceName
Output only. The resource name of the payments account. PaymentsAccount resource names have the form: `customers/{customer_id}/paymentsAccounts/{payments_account_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfacePaymentsAccountOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()Output only. The resource name of the payments account. PaymentsAccount resource names have the form: `customers/{customer_id}/paymentsAccounts/{payments_account_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfacePaymentsAccountOrBuilder- Returns:
- The bytes for resourceName.
-
setResourceName
Output only. The resource name of the payments account. PaymentsAccount resource names have the form: `customers/{customer_id}/paymentsAccounts/{payments_account_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The resourceName to set.- Returns:
- This builder for chaining.
-
clearResourceName
Output only. The resource name of the payments account. PaymentsAccount resource names have the form: `customers/{customer_id}/paymentsAccounts/{payments_account_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setResourceNameBytes
Output only. The resource name of the payments account. PaymentsAccount resource names have the form: `customers/{customer_id}/paymentsAccounts/{payments_account_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for resourceName to set.- Returns:
- This builder for chaining.
-
hasPaymentsAccountId
public boolean hasPaymentsAccountId()Output only. A 16 digit ID used to identify a payments account.
optional string payments_account_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasPaymentsAccountIdin interfacePaymentsAccountOrBuilder- Returns:
- Whether the paymentsAccountId field is set.
-
getPaymentsAccountId
Output only. A 16 digit ID used to identify a payments account.
optional string payments_account_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPaymentsAccountIdin interfacePaymentsAccountOrBuilder- Returns:
- The paymentsAccountId.
-
getPaymentsAccountIdBytes
public com.google.protobuf.ByteString getPaymentsAccountIdBytes()Output only. A 16 digit ID used to identify a payments account.
optional string payments_account_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPaymentsAccountIdBytesin interfacePaymentsAccountOrBuilder- Returns:
- The bytes for paymentsAccountId.
-
setPaymentsAccountId
Output only. A 16 digit ID used to identify a payments account.
optional string payments_account_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The paymentsAccountId to set.- Returns:
- This builder for chaining.
-
clearPaymentsAccountId
Output only. A 16 digit ID used to identify a payments account.
optional string payments_account_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setPaymentsAccountIdBytes
Output only. A 16 digit ID used to identify a payments account.
optional string payments_account_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for paymentsAccountId to set.- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()Output only. The name of the payments account.
optional string name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasNamein interfacePaymentsAccountOrBuilder- Returns:
- Whether the name field is set.
-
getName
Output only. The name of the payments account.
optional string name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfacePaymentsAccountOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. The name of the payments account.
optional string name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfacePaymentsAccountOrBuilder- Returns:
- The bytes for name.
-
setName
Output only. The name of the payments account.
optional string name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Output only. The name of the payments account.
optional string name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
Output only. The name of the payments account.
optional string name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasCurrencyCode
public boolean hasCurrencyCode()Output only. The currency code of the payments account. A subset of the currency codes derived from the ISO 4217 standard is supported.
optional string currency_code = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCurrencyCodein interfacePaymentsAccountOrBuilder- Returns:
- Whether the currencyCode field is set.
-
getCurrencyCode
Output only. The currency code of the payments account. A subset of the currency codes derived from the ISO 4217 standard is supported.
optional string currency_code = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCurrencyCodein interfacePaymentsAccountOrBuilder- Returns:
- The currencyCode.
-
getCurrencyCodeBytes
public com.google.protobuf.ByteString getCurrencyCodeBytes()Output only. The currency code of the payments account. A subset of the currency codes derived from the ISO 4217 standard is supported.
optional string currency_code = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCurrencyCodeBytesin interfacePaymentsAccountOrBuilder- Returns:
- The bytes for currencyCode.
-
setCurrencyCode
Output only. The currency code of the payments account. A subset of the currency codes derived from the ISO 4217 standard is supported.
optional string currency_code = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The currencyCode to set.- Returns:
- This builder for chaining.
-
clearCurrencyCode
Output only. The currency code of the payments account. A subset of the currency codes derived from the ISO 4217 standard is supported.
optional string currency_code = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setCurrencyCodeBytes
Output only. The currency code of the payments account. A subset of the currency codes derived from the ISO 4217 standard is supported.
optional string currency_code = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for currencyCode to set.- Returns:
- This builder for chaining.
-
hasPaymentsProfileId
public boolean hasPaymentsProfileId()Output only. A 12 digit ID used to identify the payments profile associated with the payments account.
optional string payments_profile_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasPaymentsProfileIdin interfacePaymentsAccountOrBuilder- Returns:
- Whether the paymentsProfileId field is set.
-
getPaymentsProfileId
Output only. A 12 digit ID used to identify the payments profile associated with the payments account.
optional string payments_profile_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPaymentsProfileIdin interfacePaymentsAccountOrBuilder- Returns:
- The paymentsProfileId.
-
getPaymentsProfileIdBytes
public com.google.protobuf.ByteString getPaymentsProfileIdBytes()Output only. A 12 digit ID used to identify the payments profile associated with the payments account.
optional string payments_profile_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPaymentsProfileIdBytesin interfacePaymentsAccountOrBuilder- Returns:
- The bytes for paymentsProfileId.
-
setPaymentsProfileId
Output only. A 12 digit ID used to identify the payments profile associated with the payments account.
optional string payments_profile_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The paymentsProfileId to set.- Returns:
- This builder for chaining.
-
clearPaymentsProfileId
Output only. A 12 digit ID used to identify the payments profile associated with the payments account.
optional string payments_profile_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setPaymentsProfileIdBytes
Output only. A 12 digit ID used to identify the payments profile associated with the payments account.
optional string payments_profile_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for paymentsProfileId to set.- Returns:
- This builder for chaining.
-
hasSecondaryPaymentsProfileId
public boolean hasSecondaryPaymentsProfileId()Output only. A secondary payments profile ID present in uncommon situations, for example, when a sequential liability agreement has been arranged.
optional string secondary_payments_profile_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasSecondaryPaymentsProfileIdin interfacePaymentsAccountOrBuilder- Returns:
- Whether the secondaryPaymentsProfileId field is set.
-
getSecondaryPaymentsProfileId
Output only. A secondary payments profile ID present in uncommon situations, for example, when a sequential liability agreement has been arranged.
optional string secondary_payments_profile_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSecondaryPaymentsProfileIdin interfacePaymentsAccountOrBuilder- Returns:
- The secondaryPaymentsProfileId.
-
getSecondaryPaymentsProfileIdBytes
public com.google.protobuf.ByteString getSecondaryPaymentsProfileIdBytes()Output only. A secondary payments profile ID present in uncommon situations, for example, when a sequential liability agreement has been arranged.
optional string secondary_payments_profile_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSecondaryPaymentsProfileIdBytesin interfacePaymentsAccountOrBuilder- Returns:
- The bytes for secondaryPaymentsProfileId.
-
setSecondaryPaymentsProfileId
Output only. A secondary payments profile ID present in uncommon situations, for example, when a sequential liability agreement has been arranged.
optional string secondary_payments_profile_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The secondaryPaymentsProfileId to set.- Returns:
- This builder for chaining.
-
clearSecondaryPaymentsProfileId
Output only. A secondary payments profile ID present in uncommon situations, for example, when a sequential liability agreement has been arranged.
optional string secondary_payments_profile_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setSecondaryPaymentsProfileIdBytes
public PaymentsAccount.Builder setSecondaryPaymentsProfileIdBytes(com.google.protobuf.ByteString value) Output only. A secondary payments profile ID present in uncommon situations, for example, when a sequential liability agreement has been arranged.
optional string secondary_payments_profile_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for secondaryPaymentsProfileId to set.- Returns:
- This builder for chaining.
-
hasPayingManagerCustomer
public boolean hasPayingManagerCustomer()Output only. Paying manager of this payment account.
optional string paying_manager_customer = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
hasPayingManagerCustomerin interfacePaymentsAccountOrBuilder- Returns:
- Whether the payingManagerCustomer field is set.
-
getPayingManagerCustomer
Output only. Paying manager of this payment account.
optional string paying_manager_customer = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getPayingManagerCustomerin interfacePaymentsAccountOrBuilder- Returns:
- The payingManagerCustomer.
-
getPayingManagerCustomerBytes
public com.google.protobuf.ByteString getPayingManagerCustomerBytes()Output only. Paying manager of this payment account.
optional string paying_manager_customer = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getPayingManagerCustomerBytesin interfacePaymentsAccountOrBuilder- Returns:
- The bytes for payingManagerCustomer.
-
setPayingManagerCustomer
Output only. Paying manager of this payment account.
optional string paying_manager_customer = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The payingManagerCustomer to set.- Returns:
- This builder for chaining.
-
clearPayingManagerCustomer
Output only. Paying manager of this payment account.
optional string paying_manager_customer = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setPayingManagerCustomerBytes
Output only. Paying manager of this payment account.
optional string paying_manager_customer = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for payingManagerCustomer to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final PaymentsAccount.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PaymentsAccount.Builder>
-
mergeUnknownFields
public final PaymentsAccount.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PaymentsAccount.Builder>
-