com.google.ads.googleads.v17.resources.BillingSetup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v17/resources/billing_setup.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.resources;
/**
*
* A billing setup, which associates a payments account and an advertiser. A
* billing setup is specific to one advertiser.
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.BillingSetup}
*/
public final class BillingSetup extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.resources.BillingSetup)
BillingSetupOrBuilder {
private static final long serialVersionUID = 0L;
// Use BillingSetup.newBuilder() to construct.
private BillingSetup(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BillingSetup() {
resourceName_ = "";
status_ = 0;
paymentsAccount_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BillingSetup();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.BillingSetupProto.internal_static_google_ads_googleads_v17_resources_BillingSetup_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.BillingSetupProto.internal_static_google_ads_googleads_v17_resources_BillingSetup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.BillingSetup.class, com.google.ads.googleads.v17.resources.BillingSetup.Builder.class);
}
public interface PaymentsAccountInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. A 16 digit id used to identify the payments account
* associated with the billing setup.
*
* This must be passed as a string with dashes, for example,
* "1234-5678-9012-3456".
*
*
* optional string payments_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the paymentsAccountId field is set.
*/
boolean hasPaymentsAccountId();
/**
*
* Output only. A 16 digit id used to identify the payments account
* associated with the billing setup.
*
* This must be passed as a string with dashes, for example,
* "1234-5678-9012-3456".
*
*
* optional string payments_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The paymentsAccountId.
*/
java.lang.String getPaymentsAccountId();
/**
*
* Output only. A 16 digit id used to identify the payments account
* associated with the billing setup.
*
* This must be passed as a string with dashes, for example,
* "1234-5678-9012-3456".
*
*
* optional string payments_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for paymentsAccountId.
*/
com.google.protobuf.ByteString
getPaymentsAccountIdBytes();
/**
*
* Immutable. The name of the payments account associated with the billing
* setup.
*
* This enables the user to specify a meaningful name for a payments account
* to aid in reconciling monthly invoices.
*
* This name will be printed in the monthly invoices.
*
*
* optional string payments_account_name = 7 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the paymentsAccountName field is set.
*/
boolean hasPaymentsAccountName();
/**
*
* Immutable. The name of the payments account associated with the billing
* setup.
*
* This enables the user to specify a meaningful name for a payments account
* to aid in reconciling monthly invoices.
*
* This name will be printed in the monthly invoices.
*
*
* optional string payments_account_name = 7 [(.google.api.field_behavior) = IMMUTABLE];
* @return The paymentsAccountName.
*/
java.lang.String getPaymentsAccountName();
/**
*
* Immutable. The name of the payments account associated with the billing
* setup.
*
* This enables the user to specify a meaningful name for a payments account
* to aid in reconciling monthly invoices.
*
* This name will be printed in the monthly invoices.
*
*
* optional string payments_account_name = 7 [(.google.api.field_behavior) = IMMUTABLE];
* @return The bytes for paymentsAccountName.
*/
com.google.protobuf.ByteString
getPaymentsAccountNameBytes();
/**
*
* Immutable. A 12 digit id used to identify the payments profile associated
* with the billing setup.
*
* This must be passed in as a string with dashes, for example,
* "1234-5678-9012".
*
*
* optional string payments_profile_id = 8 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the paymentsProfileId field is set.
*/
boolean hasPaymentsProfileId();
/**
*
* Immutable. A 12 digit id used to identify the payments profile associated
* with the billing setup.
*
* This must be passed in as a string with dashes, for example,
* "1234-5678-9012".
*
*
* optional string payments_profile_id = 8 [(.google.api.field_behavior) = IMMUTABLE];
* @return The paymentsProfileId.
*/
java.lang.String getPaymentsProfileId();
/**
*
* Immutable. A 12 digit id used to identify the payments profile associated
* with the billing setup.
*
* This must be passed in as a string with dashes, for example,
* "1234-5678-9012".
*
*
* optional string payments_profile_id = 8 [(.google.api.field_behavior) = IMMUTABLE];
* @return The bytes for paymentsProfileId.
*/
com.google.protobuf.ByteString
getPaymentsProfileIdBytes();
/**
*
* Output only. The name of the payments profile associated with the billing
* setup.
*
*
* optional string payments_profile_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the paymentsProfileName field is set.
*/
boolean hasPaymentsProfileName();
/**
*
* Output only. The name of the payments profile associated with the billing
* setup.
*
*
* optional string payments_profile_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The paymentsProfileName.
*/
java.lang.String getPaymentsProfileName();
/**
*
* Output only. The name of the payments profile associated with the billing
* setup.
*
*
* optional string payments_profile_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for paymentsProfileName.
*/
com.google.protobuf.ByteString
getPaymentsProfileNameBytes();
/**
*
* 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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the secondaryPaymentsProfileId field is set.
*/
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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The secondaryPaymentsProfileId.
*/
java.lang.String 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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for secondaryPaymentsProfileId.
*/
com.google.protobuf.ByteString
getSecondaryPaymentsProfileIdBytes();
}
/**
*
* Container of payments account information for this billing.
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo}
*/
public static final class PaymentsAccountInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo)
PaymentsAccountInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use PaymentsAccountInfo.newBuilder() to construct.
private PaymentsAccountInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PaymentsAccountInfo() {
paymentsAccountId_ = "";
paymentsAccountName_ = "";
paymentsProfileId_ = "";
paymentsProfileName_ = "";
secondaryPaymentsProfileId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PaymentsAccountInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.BillingSetupProto.internal_static_google_ads_googleads_v17_resources_BillingSetup_PaymentsAccountInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.BillingSetupProto.internal_static_google_ads_googleads_v17_resources_BillingSetup_PaymentsAccountInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo.class, com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo.Builder.class);
}
private int bitField0_;
public static final int PAYMENTS_ACCOUNT_ID_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object paymentsAccountId_ = "";
/**
*
* Output only. A 16 digit id used to identify the payments account
* associated with the billing setup.
*
* This must be passed as a string with dashes, for example,
* "1234-5678-9012-3456".
*
*
* optional string payments_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the paymentsAccountId field is set.
*/
@java.lang.Override
public boolean hasPaymentsAccountId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. A 16 digit id used to identify the payments account
* associated with the billing setup.
*
* This must be passed as a string with dashes, for example,
* "1234-5678-9012-3456".
*
*
* optional string payments_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The paymentsAccountId.
*/
@java.lang.Override
public java.lang.String getPaymentsAccountId() {
java.lang.Object ref = paymentsAccountId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
paymentsAccountId_ = s;
return s;
}
}
/**
*
* Output only. A 16 digit id used to identify the payments account
* associated with the billing setup.
*
* This must be passed as a string with dashes, for example,
* "1234-5678-9012-3456".
*
*
* optional string payments_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for paymentsAccountId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPaymentsAccountIdBytes() {
java.lang.Object ref = paymentsAccountId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
paymentsAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAYMENTS_ACCOUNT_NAME_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object paymentsAccountName_ = "";
/**
*
* Immutable. The name of the payments account associated with the billing
* setup.
*
* This enables the user to specify a meaningful name for a payments account
* to aid in reconciling monthly invoices.
*
* This name will be printed in the monthly invoices.
*
*
* optional string payments_account_name = 7 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the paymentsAccountName field is set.
*/
@java.lang.Override
public boolean hasPaymentsAccountName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Immutable. The name of the payments account associated with the billing
* setup.
*
* This enables the user to specify a meaningful name for a payments account
* to aid in reconciling monthly invoices.
*
* This name will be printed in the monthly invoices.
*
*
* optional string payments_account_name = 7 [(.google.api.field_behavior) = IMMUTABLE];
* @return The paymentsAccountName.
*/
@java.lang.Override
public java.lang.String getPaymentsAccountName() {
java.lang.Object ref = paymentsAccountName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
paymentsAccountName_ = s;
return s;
}
}
/**
*
* Immutable. The name of the payments account associated with the billing
* setup.
*
* This enables the user to specify a meaningful name for a payments account
* to aid in reconciling monthly invoices.
*
* This name will be printed in the monthly invoices.
*
*
* optional string payments_account_name = 7 [(.google.api.field_behavior) = IMMUTABLE];
* @return The bytes for paymentsAccountName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPaymentsAccountNameBytes() {
java.lang.Object ref = paymentsAccountName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
paymentsAccountName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAYMENTS_PROFILE_ID_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object paymentsProfileId_ = "";
/**
*
* Immutable. A 12 digit id used to identify the payments profile associated
* with the billing setup.
*
* This must be passed in as a string with dashes, for example,
* "1234-5678-9012".
*
*
* optional string payments_profile_id = 8 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the paymentsProfileId field is set.
*/
@java.lang.Override
public boolean hasPaymentsProfileId() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Immutable. A 12 digit id used to identify the payments profile associated
* with the billing setup.
*
* This must be passed in as a string with dashes, for example,
* "1234-5678-9012".
*
*
* optional string payments_profile_id = 8 [(.google.api.field_behavior) = IMMUTABLE];
* @return The paymentsProfileId.
*/
@java.lang.Override
public java.lang.String getPaymentsProfileId() {
java.lang.Object ref = paymentsProfileId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
paymentsProfileId_ = s;
return s;
}
}
/**
*
* Immutable. A 12 digit id used to identify the payments profile associated
* with the billing setup.
*
* This must be passed in as a string with dashes, for example,
* "1234-5678-9012".
*
*
* optional string payments_profile_id = 8 [(.google.api.field_behavior) = IMMUTABLE];
* @return The bytes for paymentsProfileId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPaymentsProfileIdBytes() {
java.lang.Object ref = paymentsProfileId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
paymentsProfileId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAYMENTS_PROFILE_NAME_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object paymentsProfileName_ = "";
/**
*
* Output only. The name of the payments profile associated with the billing
* setup.
*
*
* optional string payments_profile_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the paymentsProfileName field is set.
*/
@java.lang.Override
public boolean hasPaymentsProfileName() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Output only. The name of the payments profile associated with the billing
* setup.
*
*
* optional string payments_profile_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The paymentsProfileName.
*/
@java.lang.Override
public java.lang.String getPaymentsProfileName() {
java.lang.Object ref = paymentsProfileName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
paymentsProfileName_ = s;
return s;
}
}
/**
*
* Output only. The name of the payments profile associated with the billing
* setup.
*
*
* optional string payments_profile_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for paymentsProfileName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPaymentsProfileNameBytes() {
java.lang.Object ref = paymentsProfileName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
paymentsProfileName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SECONDARY_PAYMENTS_PROFILE_ID_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object secondaryPaymentsProfileId_ = "";
/**
*
* 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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the secondaryPaymentsProfileId field is set.
*/
@java.lang.Override
public boolean hasSecondaryPaymentsProfileId() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* 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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The secondaryPaymentsProfileId.
*/
@java.lang.Override
public java.lang.String getSecondaryPaymentsProfileId() {
java.lang.Object ref = secondaryPaymentsProfileId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
secondaryPaymentsProfileId_ = s;
return s;
}
}
/**
*
* 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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for secondaryPaymentsProfileId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSecondaryPaymentsProfileIdBytes() {
java.lang.Object ref = secondaryPaymentsProfileId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
secondaryPaymentsProfileId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, paymentsAccountId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, paymentsAccountName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, paymentsProfileId_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, paymentsProfileName_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, secondaryPaymentsProfileId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, paymentsAccountId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, paymentsAccountName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, paymentsProfileId_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, paymentsProfileName_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, secondaryPaymentsProfileId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo other = (com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo) obj;
if (hasPaymentsAccountId() != other.hasPaymentsAccountId()) return false;
if (hasPaymentsAccountId()) {
if (!getPaymentsAccountId()
.equals(other.getPaymentsAccountId())) return false;
}
if (hasPaymentsAccountName() != other.hasPaymentsAccountName()) return false;
if (hasPaymentsAccountName()) {
if (!getPaymentsAccountName()
.equals(other.getPaymentsAccountName())) return false;
}
if (hasPaymentsProfileId() != other.hasPaymentsProfileId()) return false;
if (hasPaymentsProfileId()) {
if (!getPaymentsProfileId()
.equals(other.getPaymentsProfileId())) return false;
}
if (hasPaymentsProfileName() != other.hasPaymentsProfileName()) return false;
if (hasPaymentsProfileName()) {
if (!getPaymentsProfileName()
.equals(other.getPaymentsProfileName())) return false;
}
if (hasSecondaryPaymentsProfileId() != other.hasSecondaryPaymentsProfileId()) return false;
if (hasSecondaryPaymentsProfileId()) {
if (!getSecondaryPaymentsProfileId()
.equals(other.getSecondaryPaymentsProfileId())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasPaymentsAccountId()) {
hash = (37 * hash) + PAYMENTS_ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getPaymentsAccountId().hashCode();
}
if (hasPaymentsAccountName()) {
hash = (37 * hash) + PAYMENTS_ACCOUNT_NAME_FIELD_NUMBER;
hash = (53 * hash) + getPaymentsAccountName().hashCode();
}
if (hasPaymentsProfileId()) {
hash = (37 * hash) + PAYMENTS_PROFILE_ID_FIELD_NUMBER;
hash = (53 * hash) + getPaymentsProfileId().hashCode();
}
if (hasPaymentsProfileName()) {
hash = (37 * hash) + PAYMENTS_PROFILE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getPaymentsProfileName().hashCode();
}
if (hasSecondaryPaymentsProfileId()) {
hash = (37 * hash) + SECONDARY_PAYMENTS_PROFILE_ID_FIELD_NUMBER;
hash = (53 * hash) + getSecondaryPaymentsProfileId().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Container of payments account information for this billing.
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo)
com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.BillingSetupProto.internal_static_google_ads_googleads_v17_resources_BillingSetup_PaymentsAccountInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.BillingSetupProto.internal_static_google_ads_googleads_v17_resources_BillingSetup_PaymentsAccountInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo.class, com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo.Builder.class);
}
// Construct using com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
paymentsAccountId_ = "";
paymentsAccountName_ = "";
paymentsProfileId_ = "";
paymentsProfileName_ = "";
secondaryPaymentsProfileId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.resources.BillingSetupProto.internal_static_google_ads_googleads_v17_resources_BillingSetup_PaymentsAccountInfo_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo getDefaultInstanceForType() {
return com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo build() {
com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo buildPartial() {
com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo result = new com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.paymentsAccountId_ = paymentsAccountId_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.paymentsAccountName_ = paymentsAccountName_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.paymentsProfileId_ = paymentsProfileId_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.paymentsProfileName_ = paymentsProfileName_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.secondaryPaymentsProfileId_ = secondaryPaymentsProfileId_;
to_bitField0_ |= 0x00000010;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo) {
return mergeFrom((com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo other) {
if (other == com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo.getDefaultInstance()) return this;
if (other.hasPaymentsAccountId()) {
paymentsAccountId_ = other.paymentsAccountId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasPaymentsAccountName()) {
paymentsAccountName_ = other.paymentsAccountName_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasPaymentsProfileId()) {
paymentsProfileId_ = other.paymentsProfileId_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasPaymentsProfileName()) {
paymentsProfileName_ = other.paymentsProfileName_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasSecondaryPaymentsProfileId()) {
secondaryPaymentsProfileId_ = other.secondaryPaymentsProfileId_;
bitField0_ |= 0x00000010;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 50: {
paymentsAccountId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 50
case 58: {
paymentsAccountName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 58
case 66: {
paymentsProfileId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 66
case 74: {
paymentsProfileName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 74
case 82: {
secondaryPaymentsProfileId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 82
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object paymentsAccountId_ = "";
/**
*
* Output only. A 16 digit id used to identify the payments account
* associated with the billing setup.
*
* This must be passed as a string with dashes, for example,
* "1234-5678-9012-3456".
*
*
* optional string payments_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the paymentsAccountId field is set.
*/
public boolean hasPaymentsAccountId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. A 16 digit id used to identify the payments account
* associated with the billing setup.
*
* This must be passed as a string with dashes, for example,
* "1234-5678-9012-3456".
*
*
* optional string payments_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The paymentsAccountId.
*/
public java.lang.String getPaymentsAccountId() {
java.lang.Object ref = paymentsAccountId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
paymentsAccountId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. A 16 digit id used to identify the payments account
* associated with the billing setup.
*
* This must be passed as a string with dashes, for example,
* "1234-5678-9012-3456".
*
*
* optional string payments_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for paymentsAccountId.
*/
public com.google.protobuf.ByteString
getPaymentsAccountIdBytes() {
java.lang.Object ref = paymentsAccountId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
paymentsAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. A 16 digit id used to identify the payments account
* associated with the billing setup.
*
* This must be passed as a string with dashes, for example,
* "1234-5678-9012-3456".
*
*
* optional string payments_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The paymentsAccountId to set.
* @return This builder for chaining.
*/
public Builder setPaymentsAccountId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
paymentsAccountId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. A 16 digit id used to identify the payments account
* associated with the billing setup.
*
* This must be passed as a string with dashes, for example,
* "1234-5678-9012-3456".
*
*
* optional string payments_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearPaymentsAccountId() {
paymentsAccountId_ = getDefaultInstance().getPaymentsAccountId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Output only. A 16 digit id used to identify the payments account
* associated with the billing setup.
*
* This must be passed as a string with dashes, for example,
* "1234-5678-9012-3456".
*
*
* optional string payments_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for paymentsAccountId to set.
* @return This builder for chaining.
*/
public Builder setPaymentsAccountIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
paymentsAccountId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object paymentsAccountName_ = "";
/**
*
* Immutable. The name of the payments account associated with the billing
* setup.
*
* This enables the user to specify a meaningful name for a payments account
* to aid in reconciling monthly invoices.
*
* This name will be printed in the monthly invoices.
*
*
* optional string payments_account_name = 7 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the paymentsAccountName field is set.
*/
public boolean hasPaymentsAccountName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Immutable. The name of the payments account associated with the billing
* setup.
*
* This enables the user to specify a meaningful name for a payments account
* to aid in reconciling monthly invoices.
*
* This name will be printed in the monthly invoices.
*
*
* optional string payments_account_name = 7 [(.google.api.field_behavior) = IMMUTABLE];
* @return The paymentsAccountName.
*/
public java.lang.String getPaymentsAccountName() {
java.lang.Object ref = paymentsAccountName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
paymentsAccountName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Immutable. The name of the payments account associated with the billing
* setup.
*
* This enables the user to specify a meaningful name for a payments account
* to aid in reconciling monthly invoices.
*
* This name will be printed in the monthly invoices.
*
*
* optional string payments_account_name = 7 [(.google.api.field_behavior) = IMMUTABLE];
* @return The bytes for paymentsAccountName.
*/
public com.google.protobuf.ByteString
getPaymentsAccountNameBytes() {
java.lang.Object ref = paymentsAccountName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
paymentsAccountName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Immutable. The name of the payments account associated with the billing
* setup.
*
* This enables the user to specify a meaningful name for a payments account
* to aid in reconciling monthly invoices.
*
* This name will be printed in the monthly invoices.
*
*
* optional string payments_account_name = 7 [(.google.api.field_behavior) = IMMUTABLE];
* @param value The paymentsAccountName to set.
* @return This builder for chaining.
*/
public Builder setPaymentsAccountName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
paymentsAccountName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Immutable. The name of the payments account associated with the billing
* setup.
*
* This enables the user to specify a meaningful name for a payments account
* to aid in reconciling monthly invoices.
*
* This name will be printed in the monthly invoices.
*
*
* optional string payments_account_name = 7 [(.google.api.field_behavior) = IMMUTABLE];
* @return This builder for chaining.
*/
public Builder clearPaymentsAccountName() {
paymentsAccountName_ = getDefaultInstance().getPaymentsAccountName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Immutable. The name of the payments account associated with the billing
* setup.
*
* This enables the user to specify a meaningful name for a payments account
* to aid in reconciling monthly invoices.
*
* This name will be printed in the monthly invoices.
*
*
* optional string payments_account_name = 7 [(.google.api.field_behavior) = IMMUTABLE];
* @param value The bytes for paymentsAccountName to set.
* @return This builder for chaining.
*/
public Builder setPaymentsAccountNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
paymentsAccountName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object paymentsProfileId_ = "";
/**
*
* Immutable. A 12 digit id used to identify the payments profile associated
* with the billing setup.
*
* This must be passed in as a string with dashes, for example,
* "1234-5678-9012".
*
*
* optional string payments_profile_id = 8 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the paymentsProfileId field is set.
*/
public boolean hasPaymentsProfileId() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Immutable. A 12 digit id used to identify the payments profile associated
* with the billing setup.
*
* This must be passed in as a string with dashes, for example,
* "1234-5678-9012".
*
*
* optional string payments_profile_id = 8 [(.google.api.field_behavior) = IMMUTABLE];
* @return The paymentsProfileId.
*/
public java.lang.String getPaymentsProfileId() {
java.lang.Object ref = paymentsProfileId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
paymentsProfileId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Immutable. A 12 digit id used to identify the payments profile associated
* with the billing setup.
*
* This must be passed in as a string with dashes, for example,
* "1234-5678-9012".
*
*
* optional string payments_profile_id = 8 [(.google.api.field_behavior) = IMMUTABLE];
* @return The bytes for paymentsProfileId.
*/
public com.google.protobuf.ByteString
getPaymentsProfileIdBytes() {
java.lang.Object ref = paymentsProfileId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
paymentsProfileId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Immutable. A 12 digit id used to identify the payments profile associated
* with the billing setup.
*
* This must be passed in as a string with dashes, for example,
* "1234-5678-9012".
*
*
* optional string payments_profile_id = 8 [(.google.api.field_behavior) = IMMUTABLE];
* @param value The paymentsProfileId to set.
* @return This builder for chaining.
*/
public Builder setPaymentsProfileId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
paymentsProfileId_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Immutable. A 12 digit id used to identify the payments profile associated
* with the billing setup.
*
* This must be passed in as a string with dashes, for example,
* "1234-5678-9012".
*
*
* optional string payments_profile_id = 8 [(.google.api.field_behavior) = IMMUTABLE];
* @return This builder for chaining.
*/
public Builder clearPaymentsProfileId() {
paymentsProfileId_ = getDefaultInstance().getPaymentsProfileId();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Immutable. A 12 digit id used to identify the payments profile associated
* with the billing setup.
*
* This must be passed in as a string with dashes, for example,
* "1234-5678-9012".
*
*
* optional string payments_profile_id = 8 [(.google.api.field_behavior) = IMMUTABLE];
* @param value The bytes for paymentsProfileId to set.
* @return This builder for chaining.
*/
public Builder setPaymentsProfileIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
paymentsProfileId_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object paymentsProfileName_ = "";
/**
*
* Output only. The name of the payments profile associated with the billing
* setup.
*
*
* optional string payments_profile_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the paymentsProfileName field is set.
*/
public boolean hasPaymentsProfileName() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Output only. The name of the payments profile associated with the billing
* setup.
*
*
* optional string payments_profile_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The paymentsProfileName.
*/
public java.lang.String getPaymentsProfileName() {
java.lang.Object ref = paymentsProfileName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
paymentsProfileName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The name of the payments profile associated with the billing
* setup.
*
*
* optional string payments_profile_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for paymentsProfileName.
*/
public com.google.protobuf.ByteString
getPaymentsProfileNameBytes() {
java.lang.Object ref = paymentsProfileName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
paymentsProfileName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The name of the payments profile associated with the billing
* setup.
*
*
* optional string payments_profile_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The paymentsProfileName to set.
* @return This builder for chaining.
*/
public Builder setPaymentsProfileName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
paymentsProfileName_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Output only. The name of the payments profile associated with the billing
* setup.
*
*
* optional string payments_profile_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearPaymentsProfileName() {
paymentsProfileName_ = getDefaultInstance().getPaymentsProfileName();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* Output only. The name of the payments profile associated with the billing
* setup.
*
*
* optional string payments_profile_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for paymentsProfileName to set.
* @return This builder for chaining.
*/
public Builder setPaymentsProfileNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
paymentsProfileName_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object secondaryPaymentsProfileId_ = "";
/**
*
* 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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the secondaryPaymentsProfileId field is set.
*/
public boolean hasSecondaryPaymentsProfileId() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* 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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The secondaryPaymentsProfileId.
*/
public java.lang.String getSecondaryPaymentsProfileId() {
java.lang.Object ref = secondaryPaymentsProfileId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
secondaryPaymentsProfileId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for secondaryPaymentsProfileId.
*/
public com.google.protobuf.ByteString
getSecondaryPaymentsProfileIdBytes() {
java.lang.Object ref = secondaryPaymentsProfileId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
secondaryPaymentsProfileId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The secondaryPaymentsProfileId to set.
* @return This builder for chaining.
*/
public Builder setSecondaryPaymentsProfileId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
secondaryPaymentsProfileId_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* 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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearSecondaryPaymentsProfileId() {
secondaryPaymentsProfileId_ = getDefaultInstance().getSecondaryPaymentsProfileId();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* 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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for secondaryPaymentsProfileId to set.
* @return This builder for chaining.
*/
public Builder setSecondaryPaymentsProfileIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
secondaryPaymentsProfileId_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo)
private static final com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo();
}
public static com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PaymentsAccountInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
private int startTimeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object startTime_;
public enum StartTimeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
START_DATE_TIME(16),
START_TIME_TYPE(10),
STARTTIME_NOT_SET(0);
private final int value;
private StartTimeCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static StartTimeCase valueOf(int value) {
return forNumber(value);
}
public static StartTimeCase forNumber(int value) {
switch (value) {
case 16: return START_DATE_TIME;
case 10: return START_TIME_TYPE;
case 0: return STARTTIME_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public StartTimeCase
getStartTimeCase() {
return StartTimeCase.forNumber(
startTimeCase_);
}
private int endTimeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object endTime_;
public enum EndTimeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
END_DATE_TIME(17),
END_TIME_TYPE(14),
ENDTIME_NOT_SET(0);
private final int value;
private EndTimeCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EndTimeCase valueOf(int value) {
return forNumber(value);
}
public static EndTimeCase forNumber(int value) {
switch (value) {
case 17: return END_DATE_TIME;
case 14: return END_TIME_TYPE;
case 0: return ENDTIME_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public EndTimeCase
getEndTimeCase() {
return EndTimeCase.forNumber(
endTimeCase_);
}
public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object resourceName_ = "";
/**
*
* 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) = { ... }
* @return The resourceName.
*/
@java.lang.Override
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceName_ = s;
return s;
}
}
/**
*
* 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) = { ... }
* @return The bytes for resourceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ID_FIELD_NUMBER = 15;
private long id_ = 0L;
/**
*
* Output only. The ID of the billing setup.
*
*
* optional int64 id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The ID of the billing setup.
*
*
* optional int64 id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
public static final int STATUS_FIELD_NUMBER = 3;
private int status_ = 0;
/**
*
* Output only. The status of the billing setup.
*
*
* .google.ads.googleads.v17.enums.BillingSetupStatusEnum.BillingSetupStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Output only. The status of the billing setup.
*
*
* .google.ads.googleads.v17.enums.BillingSetupStatusEnum.BillingSetupStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The status.
*/
@java.lang.Override public com.google.ads.googleads.v17.enums.BillingSetupStatusEnum.BillingSetupStatus getStatus() {
com.google.ads.googleads.v17.enums.BillingSetupStatusEnum.BillingSetupStatus result = com.google.ads.googleads.v17.enums.BillingSetupStatusEnum.BillingSetupStatus.forNumber(status_);
return result == null ? com.google.ads.googleads.v17.enums.BillingSetupStatusEnum.BillingSetupStatus.UNRECOGNIZED : result;
}
public static final int PAYMENTS_ACCOUNT_FIELD_NUMBER = 18;
@SuppressWarnings("serial")
private volatile java.lang.Object paymentsAccount_ = "";
/**
*
* 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) = { ... }
* @return Whether the paymentsAccount field is set.
*/
@java.lang.Override
public boolean hasPaymentsAccount() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* 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) = { ... }
* @return The paymentsAccount.
*/
@java.lang.Override
public java.lang.String getPaymentsAccount() {
java.lang.Object ref = paymentsAccount_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
paymentsAccount_ = s;
return s;
}
}
/**
*
* 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) = { ... }
* @return The bytes for paymentsAccount.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPaymentsAccountBytes() {
java.lang.Object ref = paymentsAccount_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
paymentsAccount_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAYMENTS_ACCOUNT_INFO_FIELD_NUMBER = 12;
private com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo paymentsAccountInfo_;
/**
*
* 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.v17.resources.BillingSetup.PaymentsAccountInfo payments_account_info = 12 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the paymentsAccountInfo field is set.
*/
@java.lang.Override
public boolean hasPaymentsAccountInfo() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* 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.v17.resources.BillingSetup.PaymentsAccountInfo payments_account_info = 12 [(.google.api.field_behavior) = IMMUTABLE];
* @return The paymentsAccountInfo.
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo getPaymentsAccountInfo() {
return paymentsAccountInfo_ == null ? com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo.getDefaultInstance() : paymentsAccountInfo_;
}
/**
*
* 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.v17.resources.BillingSetup.PaymentsAccountInfo payments_account_info = 12 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfoOrBuilder getPaymentsAccountInfoOrBuilder() {
return paymentsAccountInfo_ == null ? com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo.getDefaultInstance() : paymentsAccountInfo_;
}
public static final int START_DATE_TIME_FIELD_NUMBER = 16;
/**
*
* 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];
* @return Whether the startDateTime field is set.
*/
public boolean hasStartDateTime() {
return startTimeCase_ == 16;
}
/**
*
* 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];
* @return The startDateTime.
*/
public java.lang.String getStartDateTime() {
java.lang.Object ref = "";
if (startTimeCase_ == 16) {
ref = startTime_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (startTimeCase_ == 16) {
startTime_ = s;
}
return s;
}
}
/**
*
* 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];
* @return The bytes for startDateTime.
*/
public com.google.protobuf.ByteString
getStartDateTimeBytes() {
java.lang.Object ref = "";
if (startTimeCase_ == 16) {
ref = startTime_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (startTimeCase_ == 16) {
startTime_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int START_TIME_TYPE_FIELD_NUMBER = 10;
/**
*
* Immutable. The start time as a type. Only NOW is allowed.
*
*
* .google.ads.googleads.v17.enums.TimeTypeEnum.TimeType start_time_type = 10 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the startTimeType field is set.
*/
public boolean hasStartTimeType() {
return startTimeCase_ == 10;
}
/**
*
* Immutable. The start time as a type. Only NOW is allowed.
*
*
* .google.ads.googleads.v17.enums.TimeTypeEnum.TimeType start_time_type = 10 [(.google.api.field_behavior) = IMMUTABLE];
* @return The enum numeric value on the wire for startTimeType.
*/
public int getStartTimeTypeValue() {
if (startTimeCase_ == 10) {
return (java.lang.Integer) startTime_;
}
return 0;
}
/**
*
* Immutable. The start time as a type. Only NOW is allowed.
*
*
* .google.ads.googleads.v17.enums.TimeTypeEnum.TimeType start_time_type = 10 [(.google.api.field_behavior) = IMMUTABLE];
* @return The startTimeType.
*/
public com.google.ads.googleads.v17.enums.TimeTypeEnum.TimeType getStartTimeType() {
if (startTimeCase_ == 10) {
com.google.ads.googleads.v17.enums.TimeTypeEnum.TimeType result = com.google.ads.googleads.v17.enums.TimeTypeEnum.TimeType.forNumber(
(java.lang.Integer) startTime_);
return result == null ? com.google.ads.googleads.v17.enums.TimeTypeEnum.TimeType.UNRECOGNIZED : result;
}
return com.google.ads.googleads.v17.enums.TimeTypeEnum.TimeType.UNSPECIFIED;
}
public static final int END_DATE_TIME_FIELD_NUMBER = 17;
/**
*
* 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];
* @return Whether the endDateTime field is set.
*/
public boolean hasEndDateTime() {
return endTimeCase_ == 17;
}
/**
*
* 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];
* @return The endDateTime.
*/
public java.lang.String getEndDateTime() {
java.lang.Object ref = "";
if (endTimeCase_ == 17) {
ref = endTime_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (endTimeCase_ == 17) {
endTime_ = s;
}
return s;
}
}
/**
*
* 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];
* @return The bytes for endDateTime.
*/
public com.google.protobuf.ByteString
getEndDateTimeBytes() {
java.lang.Object ref = "";
if (endTimeCase_ == 17) {
ref = endTime_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (endTimeCase_ == 17) {
endTime_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int END_TIME_TYPE_FIELD_NUMBER = 14;
/**
*
* Output only. The end time as a type. The only possible value is FOREVER.
*
*
* .google.ads.googleads.v17.enums.TimeTypeEnum.TimeType end_time_type = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the endTimeType field is set.
*/
public boolean hasEndTimeType() {
return endTimeCase_ == 14;
}
/**
*
* Output only. The end time as a type. The only possible value is FOREVER.
*
*
* .google.ads.googleads.v17.enums.TimeTypeEnum.TimeType end_time_type = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for endTimeType.
*/
public int getEndTimeTypeValue() {
if (endTimeCase_ == 14) {
return (java.lang.Integer) endTime_;
}
return 0;
}
/**
*
* Output only. The end time as a type. The only possible value is FOREVER.
*
*
* .google.ads.googleads.v17.enums.TimeTypeEnum.TimeType end_time_type = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The endTimeType.
*/
public com.google.ads.googleads.v17.enums.TimeTypeEnum.TimeType getEndTimeType() {
if (endTimeCase_ == 14) {
com.google.ads.googleads.v17.enums.TimeTypeEnum.TimeType result = com.google.ads.googleads.v17.enums.TimeTypeEnum.TimeType.forNumber(
(java.lang.Integer) endTime_);
return result == null ? com.google.ads.googleads.v17.enums.TimeTypeEnum.TimeType.UNRECOGNIZED : result;
}
return com.google.ads.googleads.v17.enums.TimeTypeEnum.TimeType.UNSPECIFIED;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_);
}
if (status_ != com.google.ads.googleads.v17.enums.BillingSetupStatusEnum.BillingSetupStatus.UNSPECIFIED.getNumber()) {
output.writeEnum(3, status_);
}
if (startTimeCase_ == 10) {
output.writeEnum(10, ((java.lang.Integer) startTime_));
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(12, getPaymentsAccountInfo());
}
if (endTimeCase_ == 14) {
output.writeEnum(14, ((java.lang.Integer) endTime_));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(15, id_);
}
if (startTimeCase_ == 16) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 16, startTime_);
}
if (endTimeCase_ == 17) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 17, endTime_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 18, paymentsAccount_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_);
}
if (status_ != com.google.ads.googleads.v17.enums.BillingSetupStatusEnum.BillingSetupStatus.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, status_);
}
if (startTimeCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(10, ((java.lang.Integer) startTime_));
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getPaymentsAccountInfo());
}
if (endTimeCase_ == 14) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(14, ((java.lang.Integer) endTime_));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(15, id_);
}
if (startTimeCase_ == 16) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, startTime_);
}
if (endTimeCase_ == 17) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, endTime_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, paymentsAccount_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v17.resources.BillingSetup)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.resources.BillingSetup other = (com.google.ads.googleads.v17.resources.BillingSetup) obj;
if (!getResourceName()
.equals(other.getResourceName())) return false;
if (hasId() != other.hasId()) return false;
if (hasId()) {
if (getId()
!= other.getId()) return false;
}
if (status_ != other.status_) return false;
if (hasPaymentsAccount() != other.hasPaymentsAccount()) return false;
if (hasPaymentsAccount()) {
if (!getPaymentsAccount()
.equals(other.getPaymentsAccount())) return false;
}
if (hasPaymentsAccountInfo() != other.hasPaymentsAccountInfo()) return false;
if (hasPaymentsAccountInfo()) {
if (!getPaymentsAccountInfo()
.equals(other.getPaymentsAccountInfo())) return false;
}
if (!getStartTimeCase().equals(other.getStartTimeCase())) return false;
switch (startTimeCase_) {
case 16:
if (!getStartDateTime()
.equals(other.getStartDateTime())) return false;
break;
case 10:
if (getStartTimeTypeValue()
!= other.getStartTimeTypeValue()) return false;
break;
case 0:
default:
}
if (!getEndTimeCase().equals(other.getEndTimeCase())) return false;
switch (endTimeCase_) {
case 17:
if (!getEndDateTime()
.equals(other.getEndDateTime())) return false;
break;
case 14:
if (getEndTimeTypeValue()
!= other.getEndTimeTypeValue()) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getResourceName().hashCode();
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getId());
}
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
if (hasPaymentsAccount()) {
hash = (37 * hash) + PAYMENTS_ACCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getPaymentsAccount().hashCode();
}
if (hasPaymentsAccountInfo()) {
hash = (37 * hash) + PAYMENTS_ACCOUNT_INFO_FIELD_NUMBER;
hash = (53 * hash) + getPaymentsAccountInfo().hashCode();
}
switch (startTimeCase_) {
case 16:
hash = (37 * hash) + START_DATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getStartDateTime().hashCode();
break;
case 10:
hash = (37 * hash) + START_TIME_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getStartTimeTypeValue();
break;
case 0:
default:
}
switch (endTimeCase_) {
case 17:
hash = (37 * hash) + END_DATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getEndDateTime().hashCode();
break;
case 14:
hash = (37 * hash) + END_TIME_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getEndTimeTypeValue();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.resources.BillingSetup parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.BillingSetup parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.BillingSetup parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.BillingSetup parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.BillingSetup parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.BillingSetup parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.BillingSetup parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.BillingSetup parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.BillingSetup parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.BillingSetup parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.BillingSetup parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.BillingSetup parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v17.resources.BillingSetup prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A billing setup, which associates a payments account and an advertiser. A
* billing setup is specific to one advertiser.
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.BillingSetup}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.resources.BillingSetup)
com.google.ads.googleads.v17.resources.BillingSetupOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.BillingSetupProto.internal_static_google_ads_googleads_v17_resources_BillingSetup_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.BillingSetupProto.internal_static_google_ads_googleads_v17_resources_BillingSetup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.BillingSetup.class, com.google.ads.googleads.v17.resources.BillingSetup.Builder.class);
}
// Construct using com.google.ads.googleads.v17.resources.BillingSetup.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPaymentsAccountInfoFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
resourceName_ = "";
id_ = 0L;
status_ = 0;
paymentsAccount_ = "";
paymentsAccountInfo_ = null;
if (paymentsAccountInfoBuilder_ != null) {
paymentsAccountInfoBuilder_.dispose();
paymentsAccountInfoBuilder_ = null;
}
startTimeCase_ = 0;
startTime_ = null;
endTimeCase_ = 0;
endTime_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.resources.BillingSetupProto.internal_static_google_ads_googleads_v17_resources_BillingSetup_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.BillingSetup getDefaultInstanceForType() {
return com.google.ads.googleads.v17.resources.BillingSetup.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.BillingSetup build() {
com.google.ads.googleads.v17.resources.BillingSetup result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.BillingSetup buildPartial() {
com.google.ads.googleads.v17.resources.BillingSetup result = new com.google.ads.googleads.v17.resources.BillingSetup(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.resources.BillingSetup result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.resourceName_ = resourceName_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.id_ = id_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.status_ = status_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.paymentsAccount_ = paymentsAccount_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.paymentsAccountInfo_ = paymentsAccountInfoBuilder_ == null
? paymentsAccountInfo_
: paymentsAccountInfoBuilder_.build();
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.google.ads.googleads.v17.resources.BillingSetup result) {
result.startTimeCase_ = startTimeCase_;
result.startTime_ = this.startTime_;
result.endTimeCase_ = endTimeCase_;
result.endTime_ = this.endTime_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v17.resources.BillingSetup) {
return mergeFrom((com.google.ads.googleads.v17.resources.BillingSetup)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.resources.BillingSetup other) {
if (other == com.google.ads.googleads.v17.resources.BillingSetup.getDefaultInstance()) return this;
if (!other.getResourceName().isEmpty()) {
resourceName_ = other.resourceName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasId()) {
setId(other.getId());
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (other.hasPaymentsAccount()) {
paymentsAccount_ = other.paymentsAccount_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasPaymentsAccountInfo()) {
mergePaymentsAccountInfo(other.getPaymentsAccountInfo());
}
switch (other.getStartTimeCase()) {
case START_DATE_TIME: {
startTimeCase_ = 16;
startTime_ = other.startTime_;
onChanged();
break;
}
case START_TIME_TYPE: {
setStartTimeTypeValue(other.getStartTimeTypeValue());
break;
}
case STARTTIME_NOT_SET: {
break;
}
}
switch (other.getEndTimeCase()) {
case END_DATE_TIME: {
endTimeCase_ = 17;
endTime_ = other.endTime_;
onChanged();
break;
}
case END_TIME_TYPE: {
setEndTimeTypeValue(other.getEndTimeTypeValue());
break;
}
case ENDTIME_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
resourceName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 24: {
status_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 24
case 80: {
int rawValue = input.readEnum();
startTimeCase_ = 10;
startTime_ = rawValue;
break;
} // case 80
case 98: {
input.readMessage(
getPaymentsAccountInfoFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 98
case 112: {
int rawValue = input.readEnum();
endTimeCase_ = 14;
endTime_ = rawValue;
break;
} // case 112
case 120: {
id_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 120
case 130: {
java.lang.String s = input.readStringRequireUtf8();
startTimeCase_ = 16;
startTime_ = s;
break;
} // case 130
case 138: {
java.lang.String s = input.readStringRequireUtf8();
endTimeCase_ = 17;
endTime_ = s;
break;
} // case 138
case 146: {
paymentsAccount_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 146
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int startTimeCase_ = 0;
private java.lang.Object startTime_;
public StartTimeCase
getStartTimeCase() {
return StartTimeCase.forNumber(
startTimeCase_);
}
public Builder clearStartTime() {
startTimeCase_ = 0;
startTime_ = null;
onChanged();
return this;
}
private int endTimeCase_ = 0;
private java.lang.Object endTime_;
public EndTimeCase
getEndTimeCase() {
return EndTimeCase.forNumber(
endTimeCase_);
}
public Builder clearEndTime() {
endTimeCase_ = 0;
endTime_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object resourceName_ = "";
/**
*
* 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) = { ... }
* @return The resourceName.
*/
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 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) = { ... }
* @return The bytes for resourceName.
*/
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 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) = { ... }
* @param value The resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
resourceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* 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) = { ... }
* @return This builder for chaining.
*/
public Builder clearResourceName() {
resourceName_ = getDefaultInstance().getResourceName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* 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) = { ... }
* @param value The bytes for resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
resourceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long id_ ;
/**
*
* Output only. The ID of the billing setup.
*
*
* optional int64 id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The ID of the billing setup.
*
*
* optional int64 id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
/**
*
* Output only. The ID of the billing setup.
*
*
* optional int64 id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
id_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The ID of the billing setup.
*
*
* optional int64 id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000002);
id_ = 0L;
onChanged();
return this;
}
private int status_ = 0;
/**
*
* Output only. The status of the billing setup.
*
*
* .google.ads.googleads.v17.enums.BillingSetupStatusEnum.BillingSetupStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Output only. The status of the billing setup.
*
*
* .google.ads.googleads.v17.enums.BillingSetupStatusEnum.BillingSetupStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Output only. The status of the billing setup.
*
*
* .google.ads.googleads.v17.enums.BillingSetupStatusEnum.BillingSetupStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The status.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.BillingSetupStatusEnum.BillingSetupStatus getStatus() {
com.google.ads.googleads.v17.enums.BillingSetupStatusEnum.BillingSetupStatus result = com.google.ads.googleads.v17.enums.BillingSetupStatusEnum.BillingSetupStatus.forNumber(status_);
return result == null ? com.google.ads.googleads.v17.enums.BillingSetupStatusEnum.BillingSetupStatus.UNRECOGNIZED : result;
}
/**
*
* Output only. The status of the billing setup.
*
*
* .google.ads.googleads.v17.enums.BillingSetupStatusEnum.BillingSetupStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(com.google.ads.googleads.v17.enums.BillingSetupStatusEnum.BillingSetupStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. The status of the billing setup.
*
*
* .google.ads.googleads.v17.enums.BillingSetupStatusEnum.BillingSetupStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000004);
status_ = 0;
onChanged();
return this;
}
private java.lang.Object paymentsAccount_ = "";
/**
*
* 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) = { ... }
* @return Whether the paymentsAccount field is set.
*/
public boolean hasPaymentsAccount() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* 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) = { ... }
* @return The paymentsAccount.
*/
public java.lang.String getPaymentsAccount() {
java.lang.Object ref = paymentsAccount_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
paymentsAccount_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 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) = { ... }
* @return The bytes for paymentsAccount.
*/
public com.google.protobuf.ByteString
getPaymentsAccountBytes() {
java.lang.Object ref = paymentsAccount_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
paymentsAccount_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 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) = { ... }
* @param value The paymentsAccount to set.
* @return This builder for chaining.
*/
public Builder setPaymentsAccount(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
paymentsAccount_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* 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) = { ... }
* @return This builder for chaining.
*/
public Builder clearPaymentsAccount() {
paymentsAccount_ = getDefaultInstance().getPaymentsAccount();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* 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) = { ... }
* @param value The bytes for paymentsAccount to set.
* @return This builder for chaining.
*/
public Builder setPaymentsAccountBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
paymentsAccount_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo paymentsAccountInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo, com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo.Builder, com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfoOrBuilder> paymentsAccountInfoBuilder_;
/**
*
* 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.v17.resources.BillingSetup.PaymentsAccountInfo payments_account_info = 12 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the paymentsAccountInfo field is set.
*/
public boolean hasPaymentsAccountInfo() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* 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.v17.resources.BillingSetup.PaymentsAccountInfo payments_account_info = 12 [(.google.api.field_behavior) = IMMUTABLE];
* @return The paymentsAccountInfo.
*/
public com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo getPaymentsAccountInfo() {
if (paymentsAccountInfoBuilder_ == null) {
return paymentsAccountInfo_ == null ? com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo.getDefaultInstance() : paymentsAccountInfo_;
} else {
return paymentsAccountInfoBuilder_.getMessage();
}
}
/**
*
* 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.v17.resources.BillingSetup.PaymentsAccountInfo payments_account_info = 12 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setPaymentsAccountInfo(com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo value) {
if (paymentsAccountInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
paymentsAccountInfo_ = value;
} else {
paymentsAccountInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* 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.v17.resources.BillingSetup.PaymentsAccountInfo payments_account_info = 12 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setPaymentsAccountInfo(
com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo.Builder builderForValue) {
if (paymentsAccountInfoBuilder_ == null) {
paymentsAccountInfo_ = builderForValue.build();
} else {
paymentsAccountInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* 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.v17.resources.BillingSetup.PaymentsAccountInfo payments_account_info = 12 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergePaymentsAccountInfo(com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo value) {
if (paymentsAccountInfoBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
paymentsAccountInfo_ != null &&
paymentsAccountInfo_ != com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo.getDefaultInstance()) {
getPaymentsAccountInfoBuilder().mergeFrom(value);
} else {
paymentsAccountInfo_ = value;
}
} else {
paymentsAccountInfoBuilder_.mergeFrom(value);
}
if (paymentsAccountInfo_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
* 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.v17.resources.BillingSetup.PaymentsAccountInfo payments_account_info = 12 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearPaymentsAccountInfo() {
bitField0_ = (bitField0_ & ~0x00000010);
paymentsAccountInfo_ = null;
if (paymentsAccountInfoBuilder_ != null) {
paymentsAccountInfoBuilder_.dispose();
paymentsAccountInfoBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* 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.v17.resources.BillingSetup.PaymentsAccountInfo payments_account_info = 12 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo.Builder getPaymentsAccountInfoBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getPaymentsAccountInfoFieldBuilder().getBuilder();
}
/**
*
* 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.v17.resources.BillingSetup.PaymentsAccountInfo payments_account_info = 12 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfoOrBuilder getPaymentsAccountInfoOrBuilder() {
if (paymentsAccountInfoBuilder_ != null) {
return paymentsAccountInfoBuilder_.getMessageOrBuilder();
} else {
return paymentsAccountInfo_ == null ?
com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo.getDefaultInstance() : paymentsAccountInfo_;
}
}
/**
*
* 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.v17.resources.BillingSetup.PaymentsAccountInfo payments_account_info = 12 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo, com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo.Builder, com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfoOrBuilder>
getPaymentsAccountInfoFieldBuilder() {
if (paymentsAccountInfoBuilder_ == null) {
paymentsAccountInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo, com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfo.Builder, com.google.ads.googleads.v17.resources.BillingSetup.PaymentsAccountInfoOrBuilder>(
getPaymentsAccountInfo(),
getParentForChildren(),
isClean());
paymentsAccountInfo_ = null;
}
return paymentsAccountInfoBuilder_;
}
/**
*
* 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];
* @return Whether the startDateTime field is set.
*/
@java.lang.Override
public boolean hasStartDateTime() {
return startTimeCase_ == 16;
}
/**
*
* 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];
* @return The startDateTime.
*/
@java.lang.Override
public java.lang.String getStartDateTime() {
java.lang.Object ref = "";
if (startTimeCase_ == 16) {
ref = startTime_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (startTimeCase_ == 16) {
startTime_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 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];
* @return The bytes for startDateTime.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStartDateTimeBytes() {
java.lang.Object ref = "";
if (startTimeCase_ == 16) {
ref = startTime_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (startTimeCase_ == 16) {
startTime_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 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];
* @param value The startDateTime to set.
* @return This builder for chaining.
*/
public Builder setStartDateTime(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
startTimeCase_ = 16;
startTime_ = value;
onChanged();
return this;
}
/**
*
* 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];
* @return This builder for chaining.
*/
public Builder clearStartDateTime() {
if (startTimeCase_ == 16) {
startTimeCase_ = 0;
startTime_ = null;
onChanged();
}
return this;
}
/**
*
* 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];
* @param value The bytes for startDateTime to set.
* @return This builder for chaining.
*/
public Builder setStartDateTimeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
startTimeCase_ = 16;
startTime_ = value;
onChanged();
return this;
}
/**
*
* Immutable. The start time as a type. Only NOW is allowed.
*
*
* .google.ads.googleads.v17.enums.TimeTypeEnum.TimeType start_time_type = 10 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the startTimeType field is set.
*/
@java.lang.Override
public boolean hasStartTimeType() {
return startTimeCase_ == 10;
}
/**
*
* Immutable. The start time as a type. Only NOW is allowed.
*
*
* .google.ads.googleads.v17.enums.TimeTypeEnum.TimeType start_time_type = 10 [(.google.api.field_behavior) = IMMUTABLE];
* @return The enum numeric value on the wire for startTimeType.
*/
@java.lang.Override
public int getStartTimeTypeValue() {
if (startTimeCase_ == 10) {
return ((java.lang.Integer) startTime_).intValue();
}
return 0;
}
/**
*
* Immutable. The start time as a type. Only NOW is allowed.
*
*
* .google.ads.googleads.v17.enums.TimeTypeEnum.TimeType start_time_type = 10 [(.google.api.field_behavior) = IMMUTABLE];
* @param value The enum numeric value on the wire for startTimeType to set.
* @return This builder for chaining.
*/
public Builder setStartTimeTypeValue(int value) {
startTimeCase_ = 10;
startTime_ = value;
onChanged();
return this;
}
/**
*
* Immutable. The start time as a type. Only NOW is allowed.
*
*
* .google.ads.googleads.v17.enums.TimeTypeEnum.TimeType start_time_type = 10 [(.google.api.field_behavior) = IMMUTABLE];
* @return The startTimeType.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.TimeTypeEnum.TimeType getStartTimeType() {
if (startTimeCase_ == 10) {
com.google.ads.googleads.v17.enums.TimeTypeEnum.TimeType result = com.google.ads.googleads.v17.enums.TimeTypeEnum.TimeType.forNumber(
(java.lang.Integer) startTime_);
return result == null ? com.google.ads.googleads.v17.enums.TimeTypeEnum.TimeType.UNRECOGNIZED : result;
}
return com.google.ads.googleads.v17.enums.TimeTypeEnum.TimeType.UNSPECIFIED;
}
/**
*
* Immutable. The start time as a type. Only NOW is allowed.
*
*
* .google.ads.googleads.v17.enums.TimeTypeEnum.TimeType start_time_type = 10 [(.google.api.field_behavior) = IMMUTABLE];
* @param value The startTimeType to set.
* @return This builder for chaining.
*/
public Builder setStartTimeType(com.google.ads.googleads.v17.enums.TimeTypeEnum.TimeType value) {
if (value == null) {
throw new NullPointerException();
}
startTimeCase_ = 10;
startTime_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Immutable. The start time as a type. Only NOW is allowed.
*
*
* .google.ads.googleads.v17.enums.TimeTypeEnum.TimeType start_time_type = 10 [(.google.api.field_behavior) = IMMUTABLE];
* @return This builder for chaining.
*/
public Builder clearStartTimeType() {
if (startTimeCase_ == 10) {
startTimeCase_ = 0;
startTime_ = null;
onChanged();
}
return this;
}
/**
*
* 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];
* @return Whether the endDateTime field is set.
*/
@java.lang.Override
public boolean hasEndDateTime() {
return endTimeCase_ == 17;
}
/**
*
* 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];
* @return The endDateTime.
*/
@java.lang.Override
public java.lang.String getEndDateTime() {
java.lang.Object ref = "";
if (endTimeCase_ == 17) {
ref = endTime_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (endTimeCase_ == 17) {
endTime_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 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];
* @return The bytes for endDateTime.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEndDateTimeBytes() {
java.lang.Object ref = "";
if (endTimeCase_ == 17) {
ref = endTime_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (endTimeCase_ == 17) {
endTime_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 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];
* @param value The endDateTime to set.
* @return This builder for chaining.
*/
public Builder setEndDateTime(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
endTimeCase_ = 17;
endTime_ = value;
onChanged();
return this;
}
/**
*
* 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];
* @return This builder for chaining.
*/
public Builder clearEndDateTime() {
if (endTimeCase_ == 17) {
endTimeCase_ = 0;
endTime_ = null;
onChanged();
}
return this;
}
/**
*
* 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];
* @param value The bytes for endDateTime to set.
* @return This builder for chaining.
*/
public Builder setEndDateTimeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
endTimeCase_ = 17;
endTime_ = value;
onChanged();
return this;
}
/**
*
* Output only. The end time as a type. The only possible value is FOREVER.
*
*
* .google.ads.googleads.v17.enums.TimeTypeEnum.TimeType end_time_type = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the endTimeType field is set.
*/
@java.lang.Override
public boolean hasEndTimeType() {
return endTimeCase_ == 14;
}
/**
*
* Output only. The end time as a type. The only possible value is FOREVER.
*
*
* .google.ads.googleads.v17.enums.TimeTypeEnum.TimeType end_time_type = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for endTimeType.
*/
@java.lang.Override
public int getEndTimeTypeValue() {
if (endTimeCase_ == 14) {
return ((java.lang.Integer) endTime_).intValue();
}
return 0;
}
/**
*
* Output only. The end time as a type. The only possible value is FOREVER.
*
*
* .google.ads.googleads.v17.enums.TimeTypeEnum.TimeType end_time_type = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for endTimeType to set.
* @return This builder for chaining.
*/
public Builder setEndTimeTypeValue(int value) {
endTimeCase_ = 14;
endTime_ = value;
onChanged();
return this;
}
/**
*
* Output only. The end time as a type. The only possible value is FOREVER.
*
*
* .google.ads.googleads.v17.enums.TimeTypeEnum.TimeType end_time_type = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The endTimeType.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.TimeTypeEnum.TimeType getEndTimeType() {
if (endTimeCase_ == 14) {
com.google.ads.googleads.v17.enums.TimeTypeEnum.TimeType result = com.google.ads.googleads.v17.enums.TimeTypeEnum.TimeType.forNumber(
(java.lang.Integer) endTime_);
return result == null ? com.google.ads.googleads.v17.enums.TimeTypeEnum.TimeType.UNRECOGNIZED : result;
}
return com.google.ads.googleads.v17.enums.TimeTypeEnum.TimeType.UNSPECIFIED;
}
/**
*
* Output only. The end time as a type. The only possible value is FOREVER.
*
*
* .google.ads.googleads.v17.enums.TimeTypeEnum.TimeType end_time_type = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The endTimeType to set.
* @return This builder for chaining.
*/
public Builder setEndTimeType(com.google.ads.googleads.v17.enums.TimeTypeEnum.TimeType value) {
if (value == null) {
throw new NullPointerException();
}
endTimeCase_ = 14;
endTime_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. The end time as a type. The only possible value is FOREVER.
*
*
* .google.ads.googleads.v17.enums.TimeTypeEnum.TimeType end_time_type = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearEndTimeType() {
if (endTimeCase_ == 14) {
endTimeCase_ = 0;
endTime_ = null;
onChanged();
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.resources.BillingSetup)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.resources.BillingSetup)
private static final com.google.ads.googleads.v17.resources.BillingSetup DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.resources.BillingSetup();
}
public static com.google.ads.googleads.v17.resources.BillingSetup getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BillingSetup parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.BillingSetup getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy