
com.google.ads.googleads.v15.resources.CustomerLifecycleGoal Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v15 Show documentation
Show all versions of google-ads-stubs-v15 Show documentation
Stubs for GAAPI version google-ads-stubs-v15
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v15/resources/customer_lifecycle_goal.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v15.resources;
/**
*
* Account level customer lifecycle goal settings.
*
*
* Protobuf type {@code google.ads.googleads.v15.resources.CustomerLifecycleGoal}
*/
public final class CustomerLifecycleGoal extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v15.resources.CustomerLifecycleGoal)
CustomerLifecycleGoalOrBuilder {
private static final long serialVersionUID = 0L;
// Use CustomerLifecycleGoal.newBuilder() to construct.
private CustomerLifecycleGoal(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CustomerLifecycleGoal() {
resourceName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CustomerLifecycleGoal();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v15.resources.CustomerLifecycleGoalProto.internal_static_google_ads_googleads_v15_resources_CustomerLifecycleGoal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v15.resources.CustomerLifecycleGoalProto.internal_static_google_ads_googleads_v15_resources_CustomerLifecycleGoal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.class, com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.Builder.class);
}
public interface LifecycleGoalCustomerDefinitionSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. User lists which represent existing customers.
*
*
* repeated string existing_user_lists = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return A list containing the existingUserLists.
*/
java.util.List
getExistingUserListsList();
/**
*
* Output only. User lists which represent existing customers.
*
*
* repeated string existing_user_lists = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The count of existingUserLists.
*/
int getExistingUserListsCount();
/**
*
* Output only. User lists which represent existing customers.
*
*
* repeated string existing_user_lists = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param index The index of the element to return.
* @return The existingUserLists at the given index.
*/
java.lang.String getExistingUserLists(int index);
/**
*
* Output only. User lists which represent existing customers.
*
*
* repeated string existing_user_lists = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param index The index of the value to return.
* @return The bytes of the existingUserLists at the given index.
*/
com.google.protobuf.ByteString
getExistingUserListsBytes(int index);
/**
*
* Output only. User lists which represent customers of high lifetime value.
* In current stage, high lifetime value feature is in beta and this field
* is read-only.
*
*
* repeated string high_lifetime_value_user_lists = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return A list containing the highLifetimeValueUserLists.
*/
java.util.List
getHighLifetimeValueUserListsList();
/**
*
* Output only. User lists which represent customers of high lifetime value.
* In current stage, high lifetime value feature is in beta and this field
* is read-only.
*
*
* repeated string high_lifetime_value_user_lists = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The count of highLifetimeValueUserLists.
*/
int getHighLifetimeValueUserListsCount();
/**
*
* Output only. User lists which represent customers of high lifetime value.
* In current stage, high lifetime value feature is in beta and this field
* is read-only.
*
*
* repeated string high_lifetime_value_user_lists = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param index The index of the element to return.
* @return The highLifetimeValueUserLists at the given index.
*/
java.lang.String getHighLifetimeValueUserLists(int index);
/**
*
* Output only. User lists which represent customers of high lifetime value.
* In current stage, high lifetime value feature is in beta and this field
* is read-only.
*
*
* repeated string high_lifetime_value_user_lists = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param index The index of the value to return.
* @return The bytes of the highLifetimeValueUserLists at the given index.
*/
com.google.protobuf.ByteString
getHighLifetimeValueUserListsBytes(int index);
}
/**
*
* Lifecycle goal common settings, including existing user lists and existing
* high lifetime value user lists, shared among different types of lifecycle
* goals.
*
*
* Protobuf type {@code google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings}
*/
public static final class LifecycleGoalCustomerDefinitionSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings)
LifecycleGoalCustomerDefinitionSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use LifecycleGoalCustomerDefinitionSettings.newBuilder() to construct.
private LifecycleGoalCustomerDefinitionSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LifecycleGoalCustomerDefinitionSettings() {
existingUserLists_ =
com.google.protobuf.LazyStringArrayList.emptyList();
highLifetimeValueUserLists_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LifecycleGoalCustomerDefinitionSettings();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v15.resources.CustomerLifecycleGoalProto.internal_static_google_ads_googleads_v15_resources_CustomerLifecycleGoal_LifecycleGoalCustomerDefinitionSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v15.resources.CustomerLifecycleGoalProto.internal_static_google_ads_googleads_v15_resources_CustomerLifecycleGoal_LifecycleGoalCustomerDefinitionSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings.class, com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings.Builder.class);
}
public static final int EXISTING_USER_LISTS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList existingUserLists_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Output only. User lists which represent existing customers.
*
*
* repeated string existing_user_lists = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return A list containing the existingUserLists.
*/
public com.google.protobuf.ProtocolStringList
getExistingUserListsList() {
return existingUserLists_;
}
/**
*
* Output only. User lists which represent existing customers.
*
*
* repeated string existing_user_lists = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The count of existingUserLists.
*/
public int getExistingUserListsCount() {
return existingUserLists_.size();
}
/**
*
* Output only. User lists which represent existing customers.
*
*
* repeated string existing_user_lists = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param index The index of the element to return.
* @return The existingUserLists at the given index.
*/
public java.lang.String getExistingUserLists(int index) {
return existingUserLists_.get(index);
}
/**
*
* Output only. User lists which represent existing customers.
*
*
* repeated string existing_user_lists = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param index The index of the value to return.
* @return The bytes of the existingUserLists at the given index.
*/
public com.google.protobuf.ByteString
getExistingUserListsBytes(int index) {
return existingUserLists_.getByteString(index);
}
public static final int HIGH_LIFETIME_VALUE_USER_LISTS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList highLifetimeValueUserLists_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Output only. User lists which represent customers of high lifetime value.
* In current stage, high lifetime value feature is in beta and this field
* is read-only.
*
*
* repeated string high_lifetime_value_user_lists = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return A list containing the highLifetimeValueUserLists.
*/
public com.google.protobuf.ProtocolStringList
getHighLifetimeValueUserListsList() {
return highLifetimeValueUserLists_;
}
/**
*
* Output only. User lists which represent customers of high lifetime value.
* In current stage, high lifetime value feature is in beta and this field
* is read-only.
*
*
* repeated string high_lifetime_value_user_lists = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The count of highLifetimeValueUserLists.
*/
public int getHighLifetimeValueUserListsCount() {
return highLifetimeValueUserLists_.size();
}
/**
*
* Output only. User lists which represent customers of high lifetime value.
* In current stage, high lifetime value feature is in beta and this field
* is read-only.
*
*
* repeated string high_lifetime_value_user_lists = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param index The index of the element to return.
* @return The highLifetimeValueUserLists at the given index.
*/
public java.lang.String getHighLifetimeValueUserLists(int index) {
return highLifetimeValueUserLists_.get(index);
}
/**
*
* Output only. User lists which represent customers of high lifetime value.
* In current stage, high lifetime value feature is in beta and this field
* is read-only.
*
*
* repeated string high_lifetime_value_user_lists = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param index The index of the value to return.
* @return The bytes of the highLifetimeValueUserLists at the given index.
*/
public com.google.protobuf.ByteString
getHighLifetimeValueUserListsBytes(int index) {
return highLifetimeValueUserLists_.getByteString(index);
}
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 {
for (int i = 0; i < existingUserLists_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, existingUserLists_.getRaw(i));
}
for (int i = 0; i < highLifetimeValueUserLists_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, highLifetimeValueUserLists_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < existingUserLists_.size(); i++) {
dataSize += computeStringSizeNoTag(existingUserLists_.getRaw(i));
}
size += dataSize;
size += 1 * getExistingUserListsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < highLifetimeValueUserLists_.size(); i++) {
dataSize += computeStringSizeNoTag(highLifetimeValueUserLists_.getRaw(i));
}
size += dataSize;
size += 1 * getHighLifetimeValueUserListsList().size();
}
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.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings)) {
return super.equals(obj);
}
com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings other = (com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings) obj;
if (!getExistingUserListsList()
.equals(other.getExistingUserListsList())) return false;
if (!getHighLifetimeValueUserListsList()
.equals(other.getHighLifetimeValueUserListsList())) 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 (getExistingUserListsCount() > 0) {
hash = (37 * hash) + EXISTING_USER_LISTS_FIELD_NUMBER;
hash = (53 * hash) + getExistingUserListsList().hashCode();
}
if (getHighLifetimeValueUserListsCount() > 0) {
hash = (37 * hash) + HIGH_LIFETIME_VALUE_USER_LISTS_FIELD_NUMBER;
hash = (53 * hash) + getHighLifetimeValueUserListsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings 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.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings 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.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings 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.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings 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.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings 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.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings 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;
}
/**
*
* Lifecycle goal common settings, including existing user lists and existing
* high lifetime value user lists, shared among different types of lifecycle
* goals.
*
*
* Protobuf type {@code google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings)
com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v15.resources.CustomerLifecycleGoalProto.internal_static_google_ads_googleads_v15_resources_CustomerLifecycleGoal_LifecycleGoalCustomerDefinitionSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v15.resources.CustomerLifecycleGoalProto.internal_static_google_ads_googleads_v15_resources_CustomerLifecycleGoal_LifecycleGoalCustomerDefinitionSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings.class, com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings.Builder.class);
}
// Construct using com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
existingUserLists_ =
com.google.protobuf.LazyStringArrayList.emptyList();
highLifetimeValueUserLists_ =
com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v15.resources.CustomerLifecycleGoalProto.internal_static_google_ads_googleads_v15_resources_CustomerLifecycleGoal_LifecycleGoalCustomerDefinitionSettings_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings getDefaultInstanceForType() {
return com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings build() {
com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings buildPartial() {
com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings result = new com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
existingUserLists_.makeImmutable();
result.existingUserLists_ = existingUserLists_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
highLifetimeValueUserLists_.makeImmutable();
result.highLifetimeValueUserLists_ = highLifetimeValueUserLists_;
}
}
@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.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings) {
return mergeFrom((com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings other) {
if (other == com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings.getDefaultInstance()) return this;
if (!other.existingUserLists_.isEmpty()) {
if (existingUserLists_.isEmpty()) {
existingUserLists_ = other.existingUserLists_;
bitField0_ |= 0x00000001;
} else {
ensureExistingUserListsIsMutable();
existingUserLists_.addAll(other.existingUserLists_);
}
onChanged();
}
if (!other.highLifetimeValueUserLists_.isEmpty()) {
if (highLifetimeValueUserLists_.isEmpty()) {
highLifetimeValueUserLists_ = other.highLifetimeValueUserLists_;
bitField0_ |= 0x00000002;
} else {
ensureHighLifetimeValueUserListsIsMutable();
highLifetimeValueUserLists_.addAll(other.highLifetimeValueUserLists_);
}
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 10: {
java.lang.String s = input.readStringRequireUtf8();
ensureExistingUserListsIsMutable();
existingUserLists_.add(s);
break;
} // case 10
case 18: {
java.lang.String s = input.readStringRequireUtf8();
ensureHighLifetimeValueUserListsIsMutable();
highLifetimeValueUserLists_.add(s);
break;
} // case 18
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 com.google.protobuf.LazyStringArrayList existingUserLists_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureExistingUserListsIsMutable() {
if (!existingUserLists_.isModifiable()) {
existingUserLists_ = new com.google.protobuf.LazyStringArrayList(existingUserLists_);
}
bitField0_ |= 0x00000001;
}
/**
*
* Output only. User lists which represent existing customers.
*
*
* repeated string existing_user_lists = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return A list containing the existingUserLists.
*/
public com.google.protobuf.ProtocolStringList
getExistingUserListsList() {
existingUserLists_.makeImmutable();
return existingUserLists_;
}
/**
*
* Output only. User lists which represent existing customers.
*
*
* repeated string existing_user_lists = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The count of existingUserLists.
*/
public int getExistingUserListsCount() {
return existingUserLists_.size();
}
/**
*
* Output only. User lists which represent existing customers.
*
*
* repeated string existing_user_lists = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param index The index of the element to return.
* @return The existingUserLists at the given index.
*/
public java.lang.String getExistingUserLists(int index) {
return existingUserLists_.get(index);
}
/**
*
* Output only. User lists which represent existing customers.
*
*
* repeated string existing_user_lists = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param index The index of the value to return.
* @return The bytes of the existingUserLists at the given index.
*/
public com.google.protobuf.ByteString
getExistingUserListsBytes(int index) {
return existingUserLists_.getByteString(index);
}
/**
*
* Output only. User lists which represent existing customers.
*
*
* repeated string existing_user_lists = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param index The index to set the value at.
* @param value The existingUserLists to set.
* @return This builder for chaining.
*/
public Builder setExistingUserLists(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureExistingUserListsIsMutable();
existingUserLists_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. User lists which represent existing customers.
*
*
* repeated string existing_user_lists = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The existingUserLists to add.
* @return This builder for chaining.
*/
public Builder addExistingUserLists(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureExistingUserListsIsMutable();
existingUserLists_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. User lists which represent existing customers.
*
*
* repeated string existing_user_lists = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param values The existingUserLists to add.
* @return This builder for chaining.
*/
public Builder addAllExistingUserLists(
java.lang.Iterable values) {
ensureExistingUserListsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, existingUserLists_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. User lists which represent existing customers.
*
*
* repeated string existing_user_lists = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearExistingUserLists() {
existingUserLists_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
*
* Output only. User lists which represent existing customers.
*
*
* repeated string existing_user_lists = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The bytes of the existingUserLists to add.
* @return This builder for chaining.
*/
public Builder addExistingUserListsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureExistingUserListsIsMutable();
existingUserLists_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList highLifetimeValueUserLists_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureHighLifetimeValueUserListsIsMutable() {
if (!highLifetimeValueUserLists_.isModifiable()) {
highLifetimeValueUserLists_ = new com.google.protobuf.LazyStringArrayList(highLifetimeValueUserLists_);
}
bitField0_ |= 0x00000002;
}
/**
*
* Output only. User lists which represent customers of high lifetime value.
* In current stage, high lifetime value feature is in beta and this field
* is read-only.
*
*
* repeated string high_lifetime_value_user_lists = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return A list containing the highLifetimeValueUserLists.
*/
public com.google.protobuf.ProtocolStringList
getHighLifetimeValueUserListsList() {
highLifetimeValueUserLists_.makeImmutable();
return highLifetimeValueUserLists_;
}
/**
*
* Output only. User lists which represent customers of high lifetime value.
* In current stage, high lifetime value feature is in beta and this field
* is read-only.
*
*
* repeated string high_lifetime_value_user_lists = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The count of highLifetimeValueUserLists.
*/
public int getHighLifetimeValueUserListsCount() {
return highLifetimeValueUserLists_.size();
}
/**
*
* Output only. User lists which represent customers of high lifetime value.
* In current stage, high lifetime value feature is in beta and this field
* is read-only.
*
*
* repeated string high_lifetime_value_user_lists = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param index The index of the element to return.
* @return The highLifetimeValueUserLists at the given index.
*/
public java.lang.String getHighLifetimeValueUserLists(int index) {
return highLifetimeValueUserLists_.get(index);
}
/**
*
* Output only. User lists which represent customers of high lifetime value.
* In current stage, high lifetime value feature is in beta and this field
* is read-only.
*
*
* repeated string high_lifetime_value_user_lists = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param index The index of the value to return.
* @return The bytes of the highLifetimeValueUserLists at the given index.
*/
public com.google.protobuf.ByteString
getHighLifetimeValueUserListsBytes(int index) {
return highLifetimeValueUserLists_.getByteString(index);
}
/**
*
* Output only. User lists which represent customers of high lifetime value.
* In current stage, high lifetime value feature is in beta and this field
* is read-only.
*
*
* repeated string high_lifetime_value_user_lists = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param index The index to set the value at.
* @param value The highLifetimeValueUserLists to set.
* @return This builder for chaining.
*/
public Builder setHighLifetimeValueUserLists(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureHighLifetimeValueUserListsIsMutable();
highLifetimeValueUserLists_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. User lists which represent customers of high lifetime value.
* In current stage, high lifetime value feature is in beta and this field
* is read-only.
*
*
* repeated string high_lifetime_value_user_lists = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The highLifetimeValueUserLists to add.
* @return This builder for chaining.
*/
public Builder addHighLifetimeValueUserLists(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureHighLifetimeValueUserListsIsMutable();
highLifetimeValueUserLists_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. User lists which represent customers of high lifetime value.
* In current stage, high lifetime value feature is in beta and this field
* is read-only.
*
*
* repeated string high_lifetime_value_user_lists = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param values The highLifetimeValueUserLists to add.
* @return This builder for chaining.
*/
public Builder addAllHighLifetimeValueUserLists(
java.lang.Iterable values) {
ensureHighLifetimeValueUserListsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, highLifetimeValueUserLists_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. User lists which represent customers of high lifetime value.
* In current stage, high lifetime value feature is in beta and this field
* is read-only.
*
*
* repeated string high_lifetime_value_user_lists = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearHighLifetimeValueUserLists() {
highLifetimeValueUserLists_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);;
onChanged();
return this;
}
/**
*
* Output only. User lists which represent customers of high lifetime value.
* In current stage, high lifetime value feature is in beta and this field
* is read-only.
*
*
* repeated string high_lifetime_value_user_lists = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The bytes of the highLifetimeValueUserLists to add.
* @return This builder for chaining.
*/
public Builder addHighLifetimeValueUserListsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureHighLifetimeValueUserListsIsMutable();
highLifetimeValueUserLists_.add(value);
bitField0_ |= 0x00000002;
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.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings)
private static final com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings();
}
public static com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LifecycleGoalCustomerDefinitionSettings 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.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object resourceName_ = "";
/**
*
* Immutable. The resource name of the customer lifecycle goal.
* Customer lifecycle resource names have the form:
*
* `customers/{customer_id}/customerLifecycleGoal`
*
*
* 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 customer lifecycle goal.
* Customer lifecycle resource names have the form:
*
* `customers/{customer_id}/customerLifecycleGoal`
*
*
* 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 LIFECYCLE_GOAL_CUSTOMER_DEFINITION_SETTINGS_FIELD_NUMBER = 2;
private com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings lifecycleGoalCustomerDefinitionSettings_;
/**
*
* Output only. Common lifecycle goal settings shared among different types of
* lifecycle goals.
*
*
* .google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings lifecycle_goal_customer_definition_settings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the lifecycleGoalCustomerDefinitionSettings field is set.
*/
@java.lang.Override
public boolean hasLifecycleGoalCustomerDefinitionSettings() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. Common lifecycle goal settings shared among different types of
* lifecycle goals.
*
*
* .google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings lifecycle_goal_customer_definition_settings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The lifecycleGoalCustomerDefinitionSettings.
*/
@java.lang.Override
public com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings getLifecycleGoalCustomerDefinitionSettings() {
return lifecycleGoalCustomerDefinitionSettings_ == null ? com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings.getDefaultInstance() : lifecycleGoalCustomerDefinitionSettings_;
}
/**
*
* Output only. Common lifecycle goal settings shared among different types of
* lifecycle goals.
*
*
* .google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings lifecycle_goal_customer_definition_settings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettingsOrBuilder getLifecycleGoalCustomerDefinitionSettingsOrBuilder() {
return lifecycleGoalCustomerDefinitionSettings_ == null ? com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings.getDefaultInstance() : lifecycleGoalCustomerDefinitionSettings_;
}
public static final int CUSTOMER_ACQUISITION_GOAL_VALUE_SETTINGS_FIELD_NUMBER = 3;
private com.google.ads.googleads.v15.common.LifecycleGoalValueSettings customerAcquisitionGoalValueSettings_;
/**
*
* Output only. Customer acquisition goal customer level value settings.
*
*
* .google.ads.googleads.v15.common.LifecycleGoalValueSettings customer_acquisition_goal_value_settings = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the customerAcquisitionGoalValueSettings field is set.
*/
@java.lang.Override
public boolean hasCustomerAcquisitionGoalValueSettings() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. Customer acquisition goal customer level value settings.
*
*
* .google.ads.googleads.v15.common.LifecycleGoalValueSettings customer_acquisition_goal_value_settings = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The customerAcquisitionGoalValueSettings.
*/
@java.lang.Override
public com.google.ads.googleads.v15.common.LifecycleGoalValueSettings getCustomerAcquisitionGoalValueSettings() {
return customerAcquisitionGoalValueSettings_ == null ? com.google.ads.googleads.v15.common.LifecycleGoalValueSettings.getDefaultInstance() : customerAcquisitionGoalValueSettings_;
}
/**
*
* Output only. Customer acquisition goal customer level value settings.
*
*
* .google.ads.googleads.v15.common.LifecycleGoalValueSettings customer_acquisition_goal_value_settings = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v15.common.LifecycleGoalValueSettingsOrBuilder getCustomerAcquisitionGoalValueSettingsOrBuilder() {
return customerAcquisitionGoalValueSettings_ == null ? com.google.ads.googleads.v15.common.LifecycleGoalValueSettings.getDefaultInstance() : customerAcquisitionGoalValueSettings_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getLifecycleGoalCustomerDefinitionSettings());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getCustomerAcquisitionGoalValueSettings());
}
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 (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getLifecycleGoalCustomerDefinitionSettings());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getCustomerAcquisitionGoalValueSettings());
}
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.v15.resources.CustomerLifecycleGoal)) {
return super.equals(obj);
}
com.google.ads.googleads.v15.resources.CustomerLifecycleGoal other = (com.google.ads.googleads.v15.resources.CustomerLifecycleGoal) obj;
if (!getResourceName()
.equals(other.getResourceName())) return false;
if (hasLifecycleGoalCustomerDefinitionSettings() != other.hasLifecycleGoalCustomerDefinitionSettings()) return false;
if (hasLifecycleGoalCustomerDefinitionSettings()) {
if (!getLifecycleGoalCustomerDefinitionSettings()
.equals(other.getLifecycleGoalCustomerDefinitionSettings())) return false;
}
if (hasCustomerAcquisitionGoalValueSettings() != other.hasCustomerAcquisitionGoalValueSettings()) return false;
if (hasCustomerAcquisitionGoalValueSettings()) {
if (!getCustomerAcquisitionGoalValueSettings()
.equals(other.getCustomerAcquisitionGoalValueSettings())) 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();
hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getResourceName().hashCode();
if (hasLifecycleGoalCustomerDefinitionSettings()) {
hash = (37 * hash) + LIFECYCLE_GOAL_CUSTOMER_DEFINITION_SETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getLifecycleGoalCustomerDefinitionSettings().hashCode();
}
if (hasCustomerAcquisitionGoalValueSettings()) {
hash = (37 * hash) + CUSTOMER_ACQUISITION_GOAL_VALUE_SETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getCustomerAcquisitionGoalValueSettings().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v15.resources.CustomerLifecycleGoal parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v15.resources.CustomerLifecycleGoal 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.v15.resources.CustomerLifecycleGoal parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v15.resources.CustomerLifecycleGoal 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.v15.resources.CustomerLifecycleGoal parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v15.resources.CustomerLifecycleGoal parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v15.resources.CustomerLifecycleGoal parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v15.resources.CustomerLifecycleGoal 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.v15.resources.CustomerLifecycleGoal parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v15.resources.CustomerLifecycleGoal 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.v15.resources.CustomerLifecycleGoal parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v15.resources.CustomerLifecycleGoal 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.v15.resources.CustomerLifecycleGoal 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;
}
/**
*
* Account level customer lifecycle goal settings.
*
*
* Protobuf type {@code google.ads.googleads.v15.resources.CustomerLifecycleGoal}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v15.resources.CustomerLifecycleGoal)
com.google.ads.googleads.v15.resources.CustomerLifecycleGoalOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v15.resources.CustomerLifecycleGoalProto.internal_static_google_ads_googleads_v15_resources_CustomerLifecycleGoal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v15.resources.CustomerLifecycleGoalProto.internal_static_google_ads_googleads_v15_resources_CustomerLifecycleGoal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.class, com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.Builder.class);
}
// Construct using com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLifecycleGoalCustomerDefinitionSettingsFieldBuilder();
getCustomerAcquisitionGoalValueSettingsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
resourceName_ = "";
lifecycleGoalCustomerDefinitionSettings_ = null;
if (lifecycleGoalCustomerDefinitionSettingsBuilder_ != null) {
lifecycleGoalCustomerDefinitionSettingsBuilder_.dispose();
lifecycleGoalCustomerDefinitionSettingsBuilder_ = null;
}
customerAcquisitionGoalValueSettings_ = null;
if (customerAcquisitionGoalValueSettingsBuilder_ != null) {
customerAcquisitionGoalValueSettingsBuilder_.dispose();
customerAcquisitionGoalValueSettingsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v15.resources.CustomerLifecycleGoalProto.internal_static_google_ads_googleads_v15_resources_CustomerLifecycleGoal_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v15.resources.CustomerLifecycleGoal getDefaultInstanceForType() {
return com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v15.resources.CustomerLifecycleGoal build() {
com.google.ads.googleads.v15.resources.CustomerLifecycleGoal result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v15.resources.CustomerLifecycleGoal buildPartial() {
com.google.ads.googleads.v15.resources.CustomerLifecycleGoal result = new com.google.ads.googleads.v15.resources.CustomerLifecycleGoal(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v15.resources.CustomerLifecycleGoal result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.resourceName_ = resourceName_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.lifecycleGoalCustomerDefinitionSettings_ = lifecycleGoalCustomerDefinitionSettingsBuilder_ == null
? lifecycleGoalCustomerDefinitionSettings_
: lifecycleGoalCustomerDefinitionSettingsBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.customerAcquisitionGoalValueSettings_ = customerAcquisitionGoalValueSettingsBuilder_ == null
? customerAcquisitionGoalValueSettings_
: customerAcquisitionGoalValueSettingsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
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.v15.resources.CustomerLifecycleGoal) {
return mergeFrom((com.google.ads.googleads.v15.resources.CustomerLifecycleGoal)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v15.resources.CustomerLifecycleGoal other) {
if (other == com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.getDefaultInstance()) return this;
if (!other.getResourceName().isEmpty()) {
resourceName_ = other.resourceName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasLifecycleGoalCustomerDefinitionSettings()) {
mergeLifecycleGoalCustomerDefinitionSettings(other.getLifecycleGoalCustomerDefinitionSettings());
}
if (other.hasCustomerAcquisitionGoalValueSettings()) {
mergeCustomerAcquisitionGoalValueSettings(other.getCustomerAcquisitionGoalValueSettings());
}
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 18: {
input.readMessage(
getLifecycleGoalCustomerDefinitionSettingsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getCustomerAcquisitionGoalValueSettingsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
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 resourceName_ = "";
/**
*
* Immutable. The resource name of the customer lifecycle goal.
* Customer lifecycle resource names have the form:
*
* `customers/{customer_id}/customerLifecycleGoal`
*
*
* 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 customer lifecycle goal.
* Customer lifecycle resource names have the form:
*
* `customers/{customer_id}/customerLifecycleGoal`
*
*
* 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 customer lifecycle goal.
* Customer lifecycle resource names have the form:
*
* `customers/{customer_id}/customerLifecycleGoal`
*
*
* 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 customer lifecycle goal.
* Customer lifecycle resource names have the form:
*
* `customers/{customer_id}/customerLifecycleGoal`
*
*
* 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 customer lifecycle goal.
* Customer lifecycle resource names have the form:
*
* `customers/{customer_id}/customerLifecycleGoal`
*
*
* 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 com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings lifecycleGoalCustomerDefinitionSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings, com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings.Builder, com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettingsOrBuilder> lifecycleGoalCustomerDefinitionSettingsBuilder_;
/**
*
* Output only. Common lifecycle goal settings shared among different types of
* lifecycle goals.
*
*
* .google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings lifecycle_goal_customer_definition_settings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the lifecycleGoalCustomerDefinitionSettings field is set.
*/
public boolean hasLifecycleGoalCustomerDefinitionSettings() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. Common lifecycle goal settings shared among different types of
* lifecycle goals.
*
*
* .google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings lifecycle_goal_customer_definition_settings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The lifecycleGoalCustomerDefinitionSettings.
*/
public com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings getLifecycleGoalCustomerDefinitionSettings() {
if (lifecycleGoalCustomerDefinitionSettingsBuilder_ == null) {
return lifecycleGoalCustomerDefinitionSettings_ == null ? com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings.getDefaultInstance() : lifecycleGoalCustomerDefinitionSettings_;
} else {
return lifecycleGoalCustomerDefinitionSettingsBuilder_.getMessage();
}
}
/**
*
* Output only. Common lifecycle goal settings shared among different types of
* lifecycle goals.
*
*
* .google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings lifecycle_goal_customer_definition_settings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setLifecycleGoalCustomerDefinitionSettings(com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings value) {
if (lifecycleGoalCustomerDefinitionSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lifecycleGoalCustomerDefinitionSettings_ = value;
} else {
lifecycleGoalCustomerDefinitionSettingsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. Common lifecycle goal settings shared among different types of
* lifecycle goals.
*
*
* .google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings lifecycle_goal_customer_definition_settings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setLifecycleGoalCustomerDefinitionSettings(
com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings.Builder builderForValue) {
if (lifecycleGoalCustomerDefinitionSettingsBuilder_ == null) {
lifecycleGoalCustomerDefinitionSettings_ = builderForValue.build();
} else {
lifecycleGoalCustomerDefinitionSettingsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. Common lifecycle goal settings shared among different types of
* lifecycle goals.
*
*
* .google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings lifecycle_goal_customer_definition_settings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeLifecycleGoalCustomerDefinitionSettings(com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings value) {
if (lifecycleGoalCustomerDefinitionSettingsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
lifecycleGoalCustomerDefinitionSettings_ != null &&
lifecycleGoalCustomerDefinitionSettings_ != com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings.getDefaultInstance()) {
getLifecycleGoalCustomerDefinitionSettingsBuilder().mergeFrom(value);
} else {
lifecycleGoalCustomerDefinitionSettings_ = value;
}
} else {
lifecycleGoalCustomerDefinitionSettingsBuilder_.mergeFrom(value);
}
if (lifecycleGoalCustomerDefinitionSettings_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* Output only. Common lifecycle goal settings shared among different types of
* lifecycle goals.
*
*
* .google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings lifecycle_goal_customer_definition_settings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearLifecycleGoalCustomerDefinitionSettings() {
bitField0_ = (bitField0_ & ~0x00000002);
lifecycleGoalCustomerDefinitionSettings_ = null;
if (lifecycleGoalCustomerDefinitionSettingsBuilder_ != null) {
lifecycleGoalCustomerDefinitionSettingsBuilder_.dispose();
lifecycleGoalCustomerDefinitionSettingsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. Common lifecycle goal settings shared among different types of
* lifecycle goals.
*
*
* .google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings lifecycle_goal_customer_definition_settings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings.Builder getLifecycleGoalCustomerDefinitionSettingsBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getLifecycleGoalCustomerDefinitionSettingsFieldBuilder().getBuilder();
}
/**
*
* Output only. Common lifecycle goal settings shared among different types of
* lifecycle goals.
*
*
* .google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings lifecycle_goal_customer_definition_settings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettingsOrBuilder getLifecycleGoalCustomerDefinitionSettingsOrBuilder() {
if (lifecycleGoalCustomerDefinitionSettingsBuilder_ != null) {
return lifecycleGoalCustomerDefinitionSettingsBuilder_.getMessageOrBuilder();
} else {
return lifecycleGoalCustomerDefinitionSettings_ == null ?
com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings.getDefaultInstance() : lifecycleGoalCustomerDefinitionSettings_;
}
}
/**
*
* Output only. Common lifecycle goal settings shared among different types of
* lifecycle goals.
*
*
* .google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings lifecycle_goal_customer_definition_settings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings, com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings.Builder, com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettingsOrBuilder>
getLifecycleGoalCustomerDefinitionSettingsFieldBuilder() {
if (lifecycleGoalCustomerDefinitionSettingsBuilder_ == null) {
lifecycleGoalCustomerDefinitionSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings, com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings.Builder, com.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettingsOrBuilder>(
getLifecycleGoalCustomerDefinitionSettings(),
getParentForChildren(),
isClean());
lifecycleGoalCustomerDefinitionSettings_ = null;
}
return lifecycleGoalCustomerDefinitionSettingsBuilder_;
}
private com.google.ads.googleads.v15.common.LifecycleGoalValueSettings customerAcquisitionGoalValueSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v15.common.LifecycleGoalValueSettings, com.google.ads.googleads.v15.common.LifecycleGoalValueSettings.Builder, com.google.ads.googleads.v15.common.LifecycleGoalValueSettingsOrBuilder> customerAcquisitionGoalValueSettingsBuilder_;
/**
*
* Output only. Customer acquisition goal customer level value settings.
*
*
* .google.ads.googleads.v15.common.LifecycleGoalValueSettings customer_acquisition_goal_value_settings = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the customerAcquisitionGoalValueSettings field is set.
*/
public boolean hasCustomerAcquisitionGoalValueSettings() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Output only. Customer acquisition goal customer level value settings.
*
*
* .google.ads.googleads.v15.common.LifecycleGoalValueSettings customer_acquisition_goal_value_settings = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The customerAcquisitionGoalValueSettings.
*/
public com.google.ads.googleads.v15.common.LifecycleGoalValueSettings getCustomerAcquisitionGoalValueSettings() {
if (customerAcquisitionGoalValueSettingsBuilder_ == null) {
return customerAcquisitionGoalValueSettings_ == null ? com.google.ads.googleads.v15.common.LifecycleGoalValueSettings.getDefaultInstance() : customerAcquisitionGoalValueSettings_;
} else {
return customerAcquisitionGoalValueSettingsBuilder_.getMessage();
}
}
/**
*
* Output only. Customer acquisition goal customer level value settings.
*
*
* .google.ads.googleads.v15.common.LifecycleGoalValueSettings customer_acquisition_goal_value_settings = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setCustomerAcquisitionGoalValueSettings(com.google.ads.googleads.v15.common.LifecycleGoalValueSettings value) {
if (customerAcquisitionGoalValueSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
customerAcquisitionGoalValueSettings_ = value;
} else {
customerAcquisitionGoalValueSettingsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Output only. Customer acquisition goal customer level value settings.
*
*
* .google.ads.googleads.v15.common.LifecycleGoalValueSettings customer_acquisition_goal_value_settings = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setCustomerAcquisitionGoalValueSettings(
com.google.ads.googleads.v15.common.LifecycleGoalValueSettings.Builder builderForValue) {
if (customerAcquisitionGoalValueSettingsBuilder_ == null) {
customerAcquisitionGoalValueSettings_ = builderForValue.build();
} else {
customerAcquisitionGoalValueSettingsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Output only. Customer acquisition goal customer level value settings.
*
*
* .google.ads.googleads.v15.common.LifecycleGoalValueSettings customer_acquisition_goal_value_settings = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeCustomerAcquisitionGoalValueSettings(com.google.ads.googleads.v15.common.LifecycleGoalValueSettings value) {
if (customerAcquisitionGoalValueSettingsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
customerAcquisitionGoalValueSettings_ != null &&
customerAcquisitionGoalValueSettings_ != com.google.ads.googleads.v15.common.LifecycleGoalValueSettings.getDefaultInstance()) {
getCustomerAcquisitionGoalValueSettingsBuilder().mergeFrom(value);
} else {
customerAcquisitionGoalValueSettings_ = value;
}
} else {
customerAcquisitionGoalValueSettingsBuilder_.mergeFrom(value);
}
if (customerAcquisitionGoalValueSettings_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* Output only. Customer acquisition goal customer level value settings.
*
*
* .google.ads.googleads.v15.common.LifecycleGoalValueSettings customer_acquisition_goal_value_settings = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearCustomerAcquisitionGoalValueSettings() {
bitField0_ = (bitField0_ & ~0x00000004);
customerAcquisitionGoalValueSettings_ = null;
if (customerAcquisitionGoalValueSettingsBuilder_ != null) {
customerAcquisitionGoalValueSettingsBuilder_.dispose();
customerAcquisitionGoalValueSettingsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. Customer acquisition goal customer level value settings.
*
*
* .google.ads.googleads.v15.common.LifecycleGoalValueSettings customer_acquisition_goal_value_settings = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v15.common.LifecycleGoalValueSettings.Builder getCustomerAcquisitionGoalValueSettingsBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getCustomerAcquisitionGoalValueSettingsFieldBuilder().getBuilder();
}
/**
*
* Output only. Customer acquisition goal customer level value settings.
*
*
* .google.ads.googleads.v15.common.LifecycleGoalValueSettings customer_acquisition_goal_value_settings = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v15.common.LifecycleGoalValueSettingsOrBuilder getCustomerAcquisitionGoalValueSettingsOrBuilder() {
if (customerAcquisitionGoalValueSettingsBuilder_ != null) {
return customerAcquisitionGoalValueSettingsBuilder_.getMessageOrBuilder();
} else {
return customerAcquisitionGoalValueSettings_ == null ?
com.google.ads.googleads.v15.common.LifecycleGoalValueSettings.getDefaultInstance() : customerAcquisitionGoalValueSettings_;
}
}
/**
*
* Output only. Customer acquisition goal customer level value settings.
*
*
* .google.ads.googleads.v15.common.LifecycleGoalValueSettings customer_acquisition_goal_value_settings = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v15.common.LifecycleGoalValueSettings, com.google.ads.googleads.v15.common.LifecycleGoalValueSettings.Builder, com.google.ads.googleads.v15.common.LifecycleGoalValueSettingsOrBuilder>
getCustomerAcquisitionGoalValueSettingsFieldBuilder() {
if (customerAcquisitionGoalValueSettingsBuilder_ == null) {
customerAcquisitionGoalValueSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v15.common.LifecycleGoalValueSettings, com.google.ads.googleads.v15.common.LifecycleGoalValueSettings.Builder, com.google.ads.googleads.v15.common.LifecycleGoalValueSettingsOrBuilder>(
getCustomerAcquisitionGoalValueSettings(),
getParentForChildren(),
isClean());
customerAcquisitionGoalValueSettings_ = null;
}
return customerAcquisitionGoalValueSettingsBuilder_;
}
@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.v15.resources.CustomerLifecycleGoal)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v15.resources.CustomerLifecycleGoal)
private static final com.google.ads.googleads.v15.resources.CustomerLifecycleGoal DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v15.resources.CustomerLifecycleGoal();
}
public static com.google.ads.googleads.v15.resources.CustomerLifecycleGoal getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CustomerLifecycleGoal 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.v15.resources.CustomerLifecycleGoal getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy