com.google.ads.googleads.v10.services.UploadUserDataRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v10 Show documentation
Show all versions of google-ads-stubs-v10 Show documentation
Stubs for GAAPI version google-ads-stubs-v10
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v10/services/user_data_service.proto
package com.google.ads.googleads.v10.services;
/**
*
* Request message for [UserDataService.UploadUserData][google.ads.googleads.v10.services.UserDataService.UploadUserData]
*
*
* Protobuf type {@code google.ads.googleads.v10.services.UploadUserDataRequest}
*/
public final class UploadUserDataRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.services.UploadUserDataRequest)
UploadUserDataRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use UploadUserDataRequest.newBuilder() to construct.
private UploadUserDataRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UploadUserDataRequest() {
customerId_ = "";
operations_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UploadUserDataRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.UserDataServiceProto.internal_static_google_ads_googleads_v10_services_UploadUserDataRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.UserDataServiceProto.internal_static_google_ads_googleads_v10_services_UploadUserDataRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.UploadUserDataRequest.class, com.google.ads.googleads.v10.services.UploadUserDataRequest.Builder.class);
}
private int metadataCase_ = 0;
private java.lang.Object metadata_;
public enum MetadataCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
CUSTOMER_MATCH_USER_LIST_METADATA(2),
METADATA_NOT_SET(0);
private final int value;
private MetadataCase(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 MetadataCase valueOf(int value) {
return forNumber(value);
}
public static MetadataCase forNumber(int value) {
switch (value) {
case 2: return CUSTOMER_MATCH_USER_LIST_METADATA;
case 0: return METADATA_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public MetadataCase
getMetadataCase() {
return MetadataCase.forNumber(
metadataCase_);
}
public static final int CUSTOMER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object customerId_;
/**
*
* Required. The ID of the customer for which to update the user data.
*
*
* string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
* @return The customerId.
*/
@java.lang.Override
public java.lang.String getCustomerId() {
java.lang.Object ref = customerId_;
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();
customerId_ = s;
return s;
}
}
/**
*
* Required. The ID of the customer for which to update the user data.
*
*
* string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
* @return The bytes for customerId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCustomerIdBytes() {
java.lang.Object ref = customerId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
customerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPERATIONS_FIELD_NUMBER = 3;
private java.util.List operations_;
/**
*
* Required. The list of operations to be done.
*
*
* repeated .google.ads.googleads.v10.services.UserDataOperation operations = 3 [(.google.api.field_behavior) = REQUIRED];
*/
@java.lang.Override
public java.util.List getOperationsList() {
return operations_;
}
/**
*
* Required. The list of operations to be done.
*
*
* repeated .google.ads.googleads.v10.services.UserDataOperation operations = 3 [(.google.api.field_behavior) = REQUIRED];
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v10.services.UserDataOperationOrBuilder>
getOperationsOrBuilderList() {
return operations_;
}
/**
*
* Required. The list of operations to be done.
*
*
* repeated .google.ads.googleads.v10.services.UserDataOperation operations = 3 [(.google.api.field_behavior) = REQUIRED];
*/
@java.lang.Override
public int getOperationsCount() {
return operations_.size();
}
/**
*
* Required. The list of operations to be done.
*
*
* repeated .google.ads.googleads.v10.services.UserDataOperation operations = 3 [(.google.api.field_behavior) = REQUIRED];
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.UserDataOperation getOperations(int index) {
return operations_.get(index);
}
/**
*
* Required. The list of operations to be done.
*
*
* repeated .google.ads.googleads.v10.services.UserDataOperation operations = 3 [(.google.api.field_behavior) = REQUIRED];
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.UserDataOperationOrBuilder getOperationsOrBuilder(
int index) {
return operations_.get(index);
}
public static final int CUSTOMER_MATCH_USER_LIST_METADATA_FIELD_NUMBER = 2;
/**
*
* Metadata for data updates to a Customer Match user list.
*
*
* .google.ads.googleads.v10.common.CustomerMatchUserListMetadata customer_match_user_list_metadata = 2;
* @return Whether the customerMatchUserListMetadata field is set.
*/
@java.lang.Override
public boolean hasCustomerMatchUserListMetadata() {
return metadataCase_ == 2;
}
/**
*
* Metadata for data updates to a Customer Match user list.
*
*
* .google.ads.googleads.v10.common.CustomerMatchUserListMetadata customer_match_user_list_metadata = 2;
* @return The customerMatchUserListMetadata.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata getCustomerMatchUserListMetadata() {
if (metadataCase_ == 2) {
return (com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata) metadata_;
}
return com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata.getDefaultInstance();
}
/**
*
* Metadata for data updates to a Customer Match user list.
*
*
* .google.ads.googleads.v10.common.CustomerMatchUserListMetadata customer_match_user_list_metadata = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CustomerMatchUserListMetadataOrBuilder getCustomerMatchUserListMetadataOrBuilder() {
if (metadataCase_ == 2) {
return (com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata) metadata_;
}
return com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata.getDefaultInstance();
}
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(customerId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, customerId_);
}
if (metadataCase_ == 2) {
output.writeMessage(2, (com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata) metadata_);
}
for (int i = 0; i < operations_.size(); i++) {
output.writeMessage(3, operations_.get(i));
}
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(customerId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, customerId_);
}
if (metadataCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata) metadata_);
}
for (int i = 0; i < operations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, operations_.get(i));
}
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.v10.services.UploadUserDataRequest)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.services.UploadUserDataRequest other = (com.google.ads.googleads.v10.services.UploadUserDataRequest) obj;
if (!getCustomerId()
.equals(other.getCustomerId())) return false;
if (!getOperationsList()
.equals(other.getOperationsList())) return false;
if (!getMetadataCase().equals(other.getMetadataCase())) return false;
switch (metadataCase_) {
case 2:
if (!getCustomerMatchUserListMetadata()
.equals(other.getCustomerMatchUserListMetadata())) 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) + CUSTOMER_ID_FIELD_NUMBER;
hash = (53 * hash) + getCustomerId().hashCode();
if (getOperationsCount() > 0) {
hash = (37 * hash) + OPERATIONS_FIELD_NUMBER;
hash = (53 * hash) + getOperationsList().hashCode();
}
switch (metadataCase_) {
case 2:
hash = (37 * hash) + CUSTOMER_MATCH_USER_LIST_METADATA_FIELD_NUMBER;
hash = (53 * hash) + getCustomerMatchUserListMetadata().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.services.UploadUserDataRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.UploadUserDataRequest 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.v10.services.UploadUserDataRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.UploadUserDataRequest 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.v10.services.UploadUserDataRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.UploadUserDataRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.UploadUserDataRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.UploadUserDataRequest 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.v10.services.UploadUserDataRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.UploadUserDataRequest 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.v10.services.UploadUserDataRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.UploadUserDataRequest 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.v10.services.UploadUserDataRequest 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;
}
/**
*
* Request message for [UserDataService.UploadUserData][google.ads.googleads.v10.services.UserDataService.UploadUserData]
*
*
* Protobuf type {@code google.ads.googleads.v10.services.UploadUserDataRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.services.UploadUserDataRequest)
com.google.ads.googleads.v10.services.UploadUserDataRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.UserDataServiceProto.internal_static_google_ads_googleads_v10_services_UploadUserDataRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.UserDataServiceProto.internal_static_google_ads_googleads_v10_services_UploadUserDataRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.UploadUserDataRequest.class, com.google.ads.googleads.v10.services.UploadUserDataRequest.Builder.class);
}
// Construct using com.google.ads.googleads.v10.services.UploadUserDataRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
customerId_ = "";
if (operationsBuilder_ == null) {
operations_ = java.util.Collections.emptyList();
} else {
operations_ = null;
operationsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (customerMatchUserListMetadataBuilder_ != null) {
customerMatchUserListMetadataBuilder_.clear();
}
metadataCase_ = 0;
metadata_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.services.UserDataServiceProto.internal_static_google_ads_googleads_v10_services_UploadUserDataRequest_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.UploadUserDataRequest getDefaultInstanceForType() {
return com.google.ads.googleads.v10.services.UploadUserDataRequest.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.services.UploadUserDataRequest build() {
com.google.ads.googleads.v10.services.UploadUserDataRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.UploadUserDataRequest buildPartial() {
com.google.ads.googleads.v10.services.UploadUserDataRequest result = new com.google.ads.googleads.v10.services.UploadUserDataRequest(this);
int from_bitField0_ = bitField0_;
result.customerId_ = customerId_;
if (operationsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
operations_ = java.util.Collections.unmodifiableList(operations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.operations_ = operations_;
} else {
result.operations_ = operationsBuilder_.build();
}
if (metadataCase_ == 2) {
if (customerMatchUserListMetadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = customerMatchUserListMetadataBuilder_.build();
}
}
result.metadataCase_ = metadataCase_;
onBuilt();
return result;
}
@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.v10.services.UploadUserDataRequest) {
return mergeFrom((com.google.ads.googleads.v10.services.UploadUserDataRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.services.UploadUserDataRequest other) {
if (other == com.google.ads.googleads.v10.services.UploadUserDataRequest.getDefaultInstance()) return this;
if (!other.getCustomerId().isEmpty()) {
customerId_ = other.customerId_;
onChanged();
}
if (operationsBuilder_ == null) {
if (!other.operations_.isEmpty()) {
if (operations_.isEmpty()) {
operations_ = other.operations_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureOperationsIsMutable();
operations_.addAll(other.operations_);
}
onChanged();
}
} else {
if (!other.operations_.isEmpty()) {
if (operationsBuilder_.isEmpty()) {
operationsBuilder_.dispose();
operationsBuilder_ = null;
operations_ = other.operations_;
bitField0_ = (bitField0_ & ~0x00000001);
operationsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOperationsFieldBuilder() : null;
} else {
operationsBuilder_.addAllMessages(other.operations_);
}
}
}
switch (other.getMetadataCase()) {
case CUSTOMER_MATCH_USER_LIST_METADATA: {
mergeCustomerMatchUserListMetadata(other.getCustomerMatchUserListMetadata());
break;
}
case METADATA_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: {
customerId_ = input.readStringRequireUtf8();
break;
} // case 10
case 18: {
input.readMessage(
getCustomerMatchUserListMetadataFieldBuilder().getBuilder(),
extensionRegistry);
metadataCase_ = 2;
break;
} // case 18
case 26: {
com.google.ads.googleads.v10.services.UserDataOperation m =
input.readMessage(
com.google.ads.googleads.v10.services.UserDataOperation.parser(),
extensionRegistry);
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
operations_.add(m);
} else {
operationsBuilder_.addMessage(m);
}
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 metadataCase_ = 0;
private java.lang.Object metadata_;
public MetadataCase
getMetadataCase() {
return MetadataCase.forNumber(
metadataCase_);
}
public Builder clearMetadata() {
metadataCase_ = 0;
metadata_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object customerId_ = "";
/**
*
* Required. The ID of the customer for which to update the user data.
*
*
* string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
* @return The customerId.
*/
public java.lang.String getCustomerId() {
java.lang.Object ref = customerId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
customerId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Required. The ID of the customer for which to update the user data.
*
*
* string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
* @return The bytes for customerId.
*/
public com.google.protobuf.ByteString
getCustomerIdBytes() {
java.lang.Object ref = customerId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
customerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Required. The ID of the customer for which to update the user data.
*
*
* string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
* @param value The customerId to set.
* @return This builder for chaining.
*/
public Builder setCustomerId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
customerId_ = value;
onChanged();
return this;
}
/**
*
* Required. The ID of the customer for which to update the user data.
*
*
* string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
* @return This builder for chaining.
*/
public Builder clearCustomerId() {
customerId_ = getDefaultInstance().getCustomerId();
onChanged();
return this;
}
/**
*
* Required. The ID of the customer for which to update the user data.
*
*
* string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
* @param value The bytes for customerId to set.
* @return This builder for chaining.
*/
public Builder setCustomerIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
customerId_ = value;
onChanged();
return this;
}
private java.util.List operations_ =
java.util.Collections.emptyList();
private void ensureOperationsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
operations_ = new java.util.ArrayList(operations_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.services.UserDataOperation, com.google.ads.googleads.v10.services.UserDataOperation.Builder, com.google.ads.googleads.v10.services.UserDataOperationOrBuilder> operationsBuilder_;
/**
*
* Required. The list of operations to be done.
*
*
* repeated .google.ads.googleads.v10.services.UserDataOperation operations = 3 [(.google.api.field_behavior) = REQUIRED];
*/
public java.util.List getOperationsList() {
if (operationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(operations_);
} else {
return operationsBuilder_.getMessageList();
}
}
/**
*
* Required. The list of operations to be done.
*
*
* repeated .google.ads.googleads.v10.services.UserDataOperation operations = 3 [(.google.api.field_behavior) = REQUIRED];
*/
public int getOperationsCount() {
if (operationsBuilder_ == null) {
return operations_.size();
} else {
return operationsBuilder_.getCount();
}
}
/**
*
* Required. The list of operations to be done.
*
*
* repeated .google.ads.googleads.v10.services.UserDataOperation operations = 3 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v10.services.UserDataOperation getOperations(int index) {
if (operationsBuilder_ == null) {
return operations_.get(index);
} else {
return operationsBuilder_.getMessage(index);
}
}
/**
*
* Required. The list of operations to be done.
*
*
* repeated .google.ads.googleads.v10.services.UserDataOperation operations = 3 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setOperations(
int index, com.google.ads.googleads.v10.services.UserDataOperation value) {
if (operationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOperationsIsMutable();
operations_.set(index, value);
onChanged();
} else {
operationsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Required. The list of operations to be done.
*
*
* repeated .google.ads.googleads.v10.services.UserDataOperation operations = 3 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setOperations(
int index, com.google.ads.googleads.v10.services.UserDataOperation.Builder builderForValue) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
operations_.set(index, builderForValue.build());
onChanged();
} else {
operationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Required. The list of operations to be done.
*
*
* repeated .google.ads.googleads.v10.services.UserDataOperation operations = 3 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder addOperations(com.google.ads.googleads.v10.services.UserDataOperation value) {
if (operationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOperationsIsMutable();
operations_.add(value);
onChanged();
} else {
operationsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Required. The list of operations to be done.
*
*
* repeated .google.ads.googleads.v10.services.UserDataOperation operations = 3 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder addOperations(
int index, com.google.ads.googleads.v10.services.UserDataOperation value) {
if (operationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOperationsIsMutable();
operations_.add(index, value);
onChanged();
} else {
operationsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Required. The list of operations to be done.
*
*
* repeated .google.ads.googleads.v10.services.UserDataOperation operations = 3 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder addOperations(
com.google.ads.googleads.v10.services.UserDataOperation.Builder builderForValue) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
operations_.add(builderForValue.build());
onChanged();
} else {
operationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Required. The list of operations to be done.
*
*
* repeated .google.ads.googleads.v10.services.UserDataOperation operations = 3 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder addOperations(
int index, com.google.ads.googleads.v10.services.UserDataOperation.Builder builderForValue) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
operations_.add(index, builderForValue.build());
onChanged();
} else {
operationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Required. The list of operations to be done.
*
*
* repeated .google.ads.googleads.v10.services.UserDataOperation operations = 3 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder addAllOperations(
java.lang.Iterable extends com.google.ads.googleads.v10.services.UserDataOperation> values) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, operations_);
onChanged();
} else {
operationsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Required. The list of operations to be done.
*
*
* repeated .google.ads.googleads.v10.services.UserDataOperation operations = 3 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder clearOperations() {
if (operationsBuilder_ == null) {
operations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
operationsBuilder_.clear();
}
return this;
}
/**
*
* Required. The list of operations to be done.
*
*
* repeated .google.ads.googleads.v10.services.UserDataOperation operations = 3 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder removeOperations(int index) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
operations_.remove(index);
onChanged();
} else {
operationsBuilder_.remove(index);
}
return this;
}
/**
*
* Required. The list of operations to be done.
*
*
* repeated .google.ads.googleads.v10.services.UserDataOperation operations = 3 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v10.services.UserDataOperation.Builder getOperationsBuilder(
int index) {
return getOperationsFieldBuilder().getBuilder(index);
}
/**
*
* Required. The list of operations to be done.
*
*
* repeated .google.ads.googleads.v10.services.UserDataOperation operations = 3 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v10.services.UserDataOperationOrBuilder getOperationsOrBuilder(
int index) {
if (operationsBuilder_ == null) {
return operations_.get(index); } else {
return operationsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Required. The list of operations to be done.
*
*
* repeated .google.ads.googleads.v10.services.UserDataOperation operations = 3 [(.google.api.field_behavior) = REQUIRED];
*/
public java.util.List extends com.google.ads.googleads.v10.services.UserDataOperationOrBuilder>
getOperationsOrBuilderList() {
if (operationsBuilder_ != null) {
return operationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(operations_);
}
}
/**
*
* Required. The list of operations to be done.
*
*
* repeated .google.ads.googleads.v10.services.UserDataOperation operations = 3 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v10.services.UserDataOperation.Builder addOperationsBuilder() {
return getOperationsFieldBuilder().addBuilder(
com.google.ads.googleads.v10.services.UserDataOperation.getDefaultInstance());
}
/**
*
* Required. The list of operations to be done.
*
*
* repeated .google.ads.googleads.v10.services.UserDataOperation operations = 3 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v10.services.UserDataOperation.Builder addOperationsBuilder(
int index) {
return getOperationsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v10.services.UserDataOperation.getDefaultInstance());
}
/**
*
* Required. The list of operations to be done.
*
*
* repeated .google.ads.googleads.v10.services.UserDataOperation operations = 3 [(.google.api.field_behavior) = REQUIRED];
*/
public java.util.List
getOperationsBuilderList() {
return getOperationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.services.UserDataOperation, com.google.ads.googleads.v10.services.UserDataOperation.Builder, com.google.ads.googleads.v10.services.UserDataOperationOrBuilder>
getOperationsFieldBuilder() {
if (operationsBuilder_ == null) {
operationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.services.UserDataOperation, com.google.ads.googleads.v10.services.UserDataOperation.Builder, com.google.ads.googleads.v10.services.UserDataOperationOrBuilder>(
operations_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
operations_ = null;
}
return operationsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata, com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata.Builder, com.google.ads.googleads.v10.common.CustomerMatchUserListMetadataOrBuilder> customerMatchUserListMetadataBuilder_;
/**
*
* Metadata for data updates to a Customer Match user list.
*
*
* .google.ads.googleads.v10.common.CustomerMatchUserListMetadata customer_match_user_list_metadata = 2;
* @return Whether the customerMatchUserListMetadata field is set.
*/
@java.lang.Override
public boolean hasCustomerMatchUserListMetadata() {
return metadataCase_ == 2;
}
/**
*
* Metadata for data updates to a Customer Match user list.
*
*
* .google.ads.googleads.v10.common.CustomerMatchUserListMetadata customer_match_user_list_metadata = 2;
* @return The customerMatchUserListMetadata.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata getCustomerMatchUserListMetadata() {
if (customerMatchUserListMetadataBuilder_ == null) {
if (metadataCase_ == 2) {
return (com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata) metadata_;
}
return com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata.getDefaultInstance();
} else {
if (metadataCase_ == 2) {
return customerMatchUserListMetadataBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata.getDefaultInstance();
}
}
/**
*
* Metadata for data updates to a Customer Match user list.
*
*
* .google.ads.googleads.v10.common.CustomerMatchUserListMetadata customer_match_user_list_metadata = 2;
*/
public Builder setCustomerMatchUserListMetadata(com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata value) {
if (customerMatchUserListMetadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
customerMatchUserListMetadataBuilder_.setMessage(value);
}
metadataCase_ = 2;
return this;
}
/**
*
* Metadata for data updates to a Customer Match user list.
*
*
* .google.ads.googleads.v10.common.CustomerMatchUserListMetadata customer_match_user_list_metadata = 2;
*/
public Builder setCustomerMatchUserListMetadata(
com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata.Builder builderForValue) {
if (customerMatchUserListMetadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
customerMatchUserListMetadataBuilder_.setMessage(builderForValue.build());
}
metadataCase_ = 2;
return this;
}
/**
*
* Metadata for data updates to a Customer Match user list.
*
*
* .google.ads.googleads.v10.common.CustomerMatchUserListMetadata customer_match_user_list_metadata = 2;
*/
public Builder mergeCustomerMatchUserListMetadata(com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata value) {
if (customerMatchUserListMetadataBuilder_ == null) {
if (metadataCase_ == 2 &&
metadata_ != com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata.getDefaultInstance()) {
metadata_ = com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata.newBuilder((com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata) metadata_)
.mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
if (metadataCase_ == 2) {
customerMatchUserListMetadataBuilder_.mergeFrom(value);
} else {
customerMatchUserListMetadataBuilder_.setMessage(value);
}
}
metadataCase_ = 2;
return this;
}
/**
*
* Metadata for data updates to a Customer Match user list.
*
*
* .google.ads.googleads.v10.common.CustomerMatchUserListMetadata customer_match_user_list_metadata = 2;
*/
public Builder clearCustomerMatchUserListMetadata() {
if (customerMatchUserListMetadataBuilder_ == null) {
if (metadataCase_ == 2) {
metadataCase_ = 0;
metadata_ = null;
onChanged();
}
} else {
if (metadataCase_ == 2) {
metadataCase_ = 0;
metadata_ = null;
}
customerMatchUserListMetadataBuilder_.clear();
}
return this;
}
/**
*
* Metadata for data updates to a Customer Match user list.
*
*
* .google.ads.googleads.v10.common.CustomerMatchUserListMetadata customer_match_user_list_metadata = 2;
*/
public com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata.Builder getCustomerMatchUserListMetadataBuilder() {
return getCustomerMatchUserListMetadataFieldBuilder().getBuilder();
}
/**
*
* Metadata for data updates to a Customer Match user list.
*
*
* .google.ads.googleads.v10.common.CustomerMatchUserListMetadata customer_match_user_list_metadata = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CustomerMatchUserListMetadataOrBuilder getCustomerMatchUserListMetadataOrBuilder() {
if ((metadataCase_ == 2) && (customerMatchUserListMetadataBuilder_ != null)) {
return customerMatchUserListMetadataBuilder_.getMessageOrBuilder();
} else {
if (metadataCase_ == 2) {
return (com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata) metadata_;
}
return com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata.getDefaultInstance();
}
}
/**
*
* Metadata for data updates to a Customer Match user list.
*
*
* .google.ads.googleads.v10.common.CustomerMatchUserListMetadata customer_match_user_list_metadata = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata, com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata.Builder, com.google.ads.googleads.v10.common.CustomerMatchUserListMetadataOrBuilder>
getCustomerMatchUserListMetadataFieldBuilder() {
if (customerMatchUserListMetadataBuilder_ == null) {
if (!(metadataCase_ == 2)) {
metadata_ = com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata.getDefaultInstance();
}
customerMatchUserListMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata, com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata.Builder, com.google.ads.googleads.v10.common.CustomerMatchUserListMetadataOrBuilder>(
(com.google.ads.googleads.v10.common.CustomerMatchUserListMetadata) metadata_,
getParentForChildren(),
isClean());
metadata_ = null;
}
metadataCase_ = 2;
onChanged();;
return customerMatchUserListMetadataBuilder_;
}
@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.v10.services.UploadUserDataRequest)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.services.UploadUserDataRequest)
private static final com.google.ads.googleads.v10.services.UploadUserDataRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.services.UploadUserDataRequest();
}
public static com.google.ads.googleads.v10.services.UploadUserDataRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UploadUserDataRequest 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.v10.services.UploadUserDataRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy