diff --git a/gapic-libraries-bom/pom.xml b/gapic-libraries-bom/pom.xml
index d804633cb9a4..ebd665a26f35 100644
--- a/gapic-libraries-bom/pom.xml
+++ b/gapic-libraries-bom/pom.xml
@@ -15,7 +15,7 @@
IngestAdEvents
Uploads a list of [AdEvent][google.ads.datamanager.v1.AdEvent] resources to Google Analytics. + *
This feature is only available to accounts on an allowlist.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *ingestAdEvents(IngestAdEventsRequest request) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *ingestAdEventsCallable() + *
RetrieveRequestStatus
Gets the status of a request given request id.
This feature is only available to accounts on an allowlist. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (IngestionServiceClient ingestionServiceClient = IngestionServiceClient.create()) {
+ * IngestAdEventsRequest request =
+ * IngestAdEventsRequest.newBuilder()
+ * .addAllAdEvents(new ArrayList())
+ * .setEncryptionInfo(EncryptionInfo.newBuilder().build())
+ * .setValidateOnly(true)
+ * .build();
+ * IngestAdEventsResponse response = ingestionServiceClient.ingestAdEvents(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final IngestAdEventsResponse ingestAdEvents(IngestAdEventsRequest request) {
+ return ingestAdEventsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Uploads a list of [AdEvent][google.ads.datamanager.v1.AdEvent] resources to Google Analytics.
+ *
+ * This feature is only available to accounts on an allowlist. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (IngestionServiceClient ingestionServiceClient = IngestionServiceClient.create()) {
+ * IngestAdEventsRequest request =
+ * IngestAdEventsRequest.newBuilder()
+ * .addAllAdEvents(new ArrayList())
+ * .setEncryptionInfo(EncryptionInfo.newBuilder().build())
+ * .setValidateOnly(true)
+ * .build();
+ * ApiFuture future =
+ * ingestionServiceClient.ingestAdEventsCallable().futureCall(request);
+ * // Do something.
+ * IngestAdEventsResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable+ * Uploads a list of + * [AdEvent][google.ads.datamanager.v1.AdEvent] resources to Google + * Analytics. + * This feature is only available to accounts on an allowlist. + *+ */ + default void ingestAdEvents( + com.google.ads.datamanager.v1.IngestAdEventsRequest request, + io.grpc.stub.StreamObserver
+ * Uploads a list of + * [AdEvent][google.ads.datamanager.v1.AdEvent] resources to Google + * Analytics. + * This feature is only available to accounts on an allowlist. + *+ */ + public void ingestAdEvents( + com.google.ads.datamanager.v1.IngestAdEventsRequest request, + io.grpc.stub.StreamObserver
+ * Uploads a list of + * [AdEvent][google.ads.datamanager.v1.AdEvent] resources to Google + * Analytics. + * This feature is only available to accounts on an allowlist. + *+ */ + public com.google.ads.datamanager.v1.IngestAdEventsResponse ingestAdEvents( + com.google.ads.datamanager.v1.IngestAdEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getIngestAdEventsMethod(), getCallOptions(), request); + } + /** * * @@ -614,6 +716,22 @@ public com.google.ads.datamanager.v1.IngestEventsResponse ingestEvents( getChannel(), getIngestEventsMethod(), getCallOptions(), request); } + /** + * + * + *
+ * Uploads a list of + * [AdEvent][google.ads.datamanager.v1.AdEvent] resources to Google + * Analytics. + * This feature is only available to accounts on an allowlist. + *+ */ + public com.google.ads.datamanager.v1.IngestAdEventsResponse ingestAdEvents( + com.google.ads.datamanager.v1.IngestAdEventsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getIngestAdEventsMethod(), getCallOptions(), request); + } + /** * * @@ -695,6 +813,23 @@ protected IngestionServiceFutureStub build( getChannel().newCall(getIngestEventsMethod(), getCallOptions()), request); } + /** + * + * + *
+ * Uploads a list of + * [AdEvent][google.ads.datamanager.v1.AdEvent] resources to Google + * Analytics. + * This feature is only available to accounts on an allowlist. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.ads.datamanager.v1.IngestAdEventsResponse> + ingestAdEvents(com.google.ads.datamanager.v1.IngestAdEventsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getIngestAdEventsMethod(), getCallOptions()), request); + } + /** * * @@ -713,7 +848,8 @@ protected IngestionServiceFutureStub build( private static final int METHODID_INGEST_AUDIENCE_MEMBERS = 0; private static final int METHODID_REMOVE_AUDIENCE_MEMBERS = 1; private static final int METHODID_INGEST_EVENTS = 2; - private static final int METHODID_RETRIEVE_REQUEST_STATUS = 3; + private static final int METHODID_INGEST_AD_EVENTS = 3; + private static final int METHODID_RETRIEVE_REQUEST_STATUS = 4; private static final class MethodHandlers
+ * An ad event. + *+ * + * Protobuf type {@code google.ads.datamanager.v1.AdEvent} + */ +@com.google.protobuf.Generated +public final class AdEvent extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.AdEvent) + AdEventOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AdEvent"); + } + + // Use AdEvent.newBuilder() to construct. + private AdEvent(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private AdEvent() { + advertiserId_ = ""; + eventType_ = 0; + eventId_ = ""; + mobileDeviceId_ = ""; + campaignId_ = ""; + campaignName_ = ""; + adGroupId_ = ""; + adId_ = ""; + regionCode_ = ""; + source_ = ""; + medium_ = ""; + attributionHint_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.AdEventProto + .internal_static_google_ads_datamanager_v1_AdEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.AdEventProto + .internal_static_google_ads_datamanager_v1_AdEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.AdEvent.class, + com.google.ads.datamanager.v1.AdEvent.Builder.class); + } + + /** + * + * + *
+ * The type of the event. + *+ * + * Protobuf enum {@code google.ads.datamanager.v1.AdEvent.EventType} + */ + public enum EventType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified event type. + *+ * + *
EVENT_TYPE_UNSPECIFIED = 0;
+ */
+ EVENT_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * View event. + *+ * + *
EVENT_TYPE_VIEW = 1;
+ */
+ EVENT_TYPE_VIEW(1),
+ /**
+ *
+ *
+ * + * Click event. + *+ * + *
EVENT_TYPE_CLICK = 2;
+ */
+ EVENT_TYPE_CLICK(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "EventType");
+ }
+
+ /**
+ *
+ *
+ * + * Unspecified event type. + *+ * + *
EVENT_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int EVENT_TYPE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * View event. + *+ * + *
EVENT_TYPE_VIEW = 1;
+ */
+ public static final int EVENT_TYPE_VIEW_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * Click event. + *+ * + *
EVENT_TYPE_CLICK = 2;
+ */
+ public static final int EVENT_TYPE_CLICK_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static EventType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static EventType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return EVENT_TYPE_UNSPECIFIED;
+ case 1:
+ return EVENT_TYPE_VIEW;
+ case 2:
+ return EVENT_TYPE_CLICK;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Additional classification about the type of ad event. + *+ * + * Protobuf enum {@code google.ads.datamanager.v1.AdEvent.EventSubtype} + */ + public enum EventSubtype implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified event subtype. + *+ * + *
EVENT_SUBTYPE_UNSPECIFIED = 0;
+ */
+ EVENT_SUBTYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Impression event. + *+ * + *
EVENT_SUBTYPE_IMPRESSION = 1;
+ */
+ EVENT_SUBTYPE_IMPRESSION(1),
+ /**
+ *
+ *
+ * + * Engaged view event. + *+ * + *
EVENT_SUBTYPE_ENGAGED_VIEW = 2;
+ */
+ EVENT_SUBTYPE_ENGAGED_VIEW(2),
+ /**
+ *
+ *
+ * + * Onsite click event. + *+ * + *
EVENT_SUBTYPE_ONSITE_CLICK = 3;
+ */
+ EVENT_SUBTYPE_ONSITE_CLICK(3),
+ /**
+ *
+ *
+ * + * Outbound click event. + *+ * + *
EVENT_SUBTYPE_OUTBOUND_CLICK = 4;
+ */
+ EVENT_SUBTYPE_OUTBOUND_CLICK(4),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "EventSubtype");
+ }
+
+ /**
+ *
+ *
+ * + * Unspecified event subtype. + *+ * + *
EVENT_SUBTYPE_UNSPECIFIED = 0;
+ */
+ public static final int EVENT_SUBTYPE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * Impression event. + *+ * + *
EVENT_SUBTYPE_IMPRESSION = 1;
+ */
+ public static final int EVENT_SUBTYPE_IMPRESSION_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * Engaged view event. + *+ * + *
EVENT_SUBTYPE_ENGAGED_VIEW = 2;
+ */
+ public static final int EVENT_SUBTYPE_ENGAGED_VIEW_VALUE = 2;
+
+ /**
+ *
+ *
+ * + * Onsite click event. + *+ * + *
EVENT_SUBTYPE_ONSITE_CLICK = 3;
+ */
+ public static final int EVENT_SUBTYPE_ONSITE_CLICK_VALUE = 3;
+
+ /**
+ *
+ *
+ * + * Outbound click event. + *+ * + *
EVENT_SUBTYPE_OUTBOUND_CLICK = 4;
+ */
+ public static final int EVENT_SUBTYPE_OUTBOUND_CLICK_VALUE = 4;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static EventSubtype valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static EventSubtype forNumber(int value) {
+ switch (value) {
+ case 0:
+ return EVENT_SUBTYPE_UNSPECIFIED;
+ case 1:
+ return EVENT_SUBTYPE_IMPRESSION;
+ case 2:
+ return EVENT_SUBTYPE_ENGAGED_VIEW;
+ case 3:
+ return EVENT_SUBTYPE_ONSITE_CLICK;
+ case 4:
+ return EVENT_SUBTYPE_OUTBOUND_CLICK;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Required. The ID of the advertiser for the ad event. + * + * This must match the ID sent in the linking flow. + *+ * + *
string advertiser_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The advertiserId.
+ */
+ @java.lang.Override
+ public java.lang.String getAdvertiserId() {
+ java.lang.Object ref = advertiserId_;
+ 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();
+ advertiserId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The ID of the advertiser for the ad event. + * + * This must match the ID sent in the linking flow. + *+ * + *
string advertiser_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for advertiserId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAdvertiserIdBytes() {
+ java.lang.Object ref = advertiserId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ advertiserId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int EVENT_TYPE_FIELD_NUMBER = 2;
+ private int eventType_ = 0;
+
+ /**
+ *
+ *
+ * + * Required. The type of the event. + *+ * + *
+ * .google.ads.datamanager.v1.AdEvent.EventType event_type = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The enum numeric value on the wire for eventType.
+ */
+ @java.lang.Override
+ public int getEventTypeValue() {
+ return eventType_;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The type of the event. + *+ * + *
+ * .google.ads.datamanager.v1.AdEvent.EventType event_type = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The eventType.
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.AdEvent.EventType getEventType() {
+ com.google.ads.datamanager.v1.AdEvent.EventType result =
+ com.google.ads.datamanager.v1.AdEvent.EventType.forNumber(eventType_);
+ return result == null ? com.google.ads.datamanager.v1.AdEvent.EventType.UNRECOGNIZED : result;
+ }
+
+ public static final int EVENT_SUBTYPE_FIELD_NUMBER = 3;
+
+ /**
+ *
+ *
+ * + * Enum value for event subtype. + *+ * + *
.google.ads.datamanager.v1.AdEvent.EventSubtype event_subtype = 3;
+ *
+ * @return Whether the eventSubtype field is set.
+ */
+ public boolean hasEventSubtype() {
+ return eventSubtypeOneofCase_ == 3;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for event subtype. + *+ * + *
.google.ads.datamanager.v1.AdEvent.EventSubtype event_subtype = 3;
+ *
+ * @return The enum numeric value on the wire for eventSubtype.
+ */
+ public int getEventSubtypeValue() {
+ if (eventSubtypeOneofCase_ == 3) {
+ return (java.lang.Integer) eventSubtypeOneof_;
+ }
+ return 0;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for event subtype. + *+ * + *
.google.ads.datamanager.v1.AdEvent.EventSubtype event_subtype = 3;
+ *
+ * @return The eventSubtype.
+ */
+ public com.google.ads.datamanager.v1.AdEvent.EventSubtype getEventSubtype() {
+ if (eventSubtypeOneofCase_ == 3) {
+ com.google.ads.datamanager.v1.AdEvent.EventSubtype result =
+ com.google.ads.datamanager.v1.AdEvent.EventSubtype.forNumber(
+ (java.lang.Integer) eventSubtypeOneof_);
+ return result == null
+ ? com.google.ads.datamanager.v1.AdEvent.EventSubtype.UNRECOGNIZED
+ : result;
+ }
+ return com.google.ads.datamanager.v1.AdEvent.EventSubtype.EVENT_SUBTYPE_UNSPECIFIED;
+ }
+
+ public static final int EVENT_SUBTYPE_STRING_FIELD_NUMBER = 4;
+
+ /**
+ *
+ *
+ * + * String value for event subtype. + *+ * + *
string event_subtype_string = 4;
+ *
+ * @return Whether the eventSubtypeString field is set.
+ */
+ public boolean hasEventSubtypeString() {
+ return eventSubtypeOneofCase_ == 4;
+ }
+
+ /**
+ *
+ *
+ * + * String value for event subtype. + *+ * + *
string event_subtype_string = 4;
+ *
+ * @return The eventSubtypeString.
+ */
+ public java.lang.String getEventSubtypeString() {
+ java.lang.Object ref = "";
+ if (eventSubtypeOneofCase_ == 4) {
+ ref = eventSubtypeOneof_;
+ }
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (eventSubtypeOneofCase_ == 4) {
+ eventSubtypeOneof_ = s;
+ }
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * String value for event subtype. + *+ * + *
string event_subtype_string = 4;
+ *
+ * @return The bytes for eventSubtypeString.
+ */
+ public com.google.protobuf.ByteString getEventSubtypeStringBytes() {
+ java.lang.Object ref = "";
+ if (eventSubtypeOneofCase_ == 4) {
+ ref = eventSubtypeOneof_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (eventSubtypeOneofCase_ == 4) {
+ eventSubtypeOneof_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TIMESTAMP_FIELD_NUMBER = 5;
+ private com.google.protobuf.Timestamp timestamp_;
+
+ /**
+ *
+ *
+ * + * Required. The time the event occurred. + *+ * + *
.google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the timestamp field is set.
+ */
+ @java.lang.Override
+ public boolean hasTimestamp() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Required. The time the event occurred. + *+ * + *
.google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The timestamp.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getTimestamp() {
+ return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The time the event occurred. + *+ * + *
.google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
+ return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
+ }
+
+ public static final int EVENT_ID_FIELD_NUMBER = 6;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object eventId_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. An ID created and managed by the caller that uniquely identifies + * this event. + * + * Required if you want to deduplicate ad events that are included + * in multiple requests. Otherwise, this field is optional. + *+ * + *
string event_id = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The eventId.
+ */
+ @java.lang.Override
+ public java.lang.String getEventId() {
+ java.lang.Object ref = eventId_;
+ 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();
+ eventId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An ID created and managed by the caller that uniquely identifies + * this event. + * + * Required if you want to deduplicate ad events that are included + * in multiple requests. Otherwise, this field is optional. + *+ * + *
string event_id = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for eventId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getEventIdBytes() {
+ java.lang.Object ref = eventId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ eventId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int USER_DATA_FIELD_NUMBER = 7;
+ private com.google.ads.datamanager.v1.UserData userData_;
+
+ /**
+ *
+ *
+ * + * Optional. Multiple pieces of user-provided data, representing the user the + * event is associated with. + * + * It is possible to provide multiple instances of the same type of data (e.g. + * email address). The more data provided, the more likely a match will be + * found. + *+ * + *
+ * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the userData field is set.
+ */
+ @java.lang.Override
+ public boolean hasUserData() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Multiple pieces of user-provided data, representing the user the + * event is associated with. + * + * It is possible to provide multiple instances of the same type of data (e.g. + * email address). The more data provided, the more likely a match will be + * found. + *+ * + *
+ * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The userData.
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.UserData getUserData() {
+ return userData_ == null
+ ? com.google.ads.datamanager.v1.UserData.getDefaultInstance()
+ : userData_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Multiple pieces of user-provided data, representing the user the + * event is associated with. + * + * It is possible to provide multiple instances of the same type of data (e.g. + * email address). The more data provided, the more likely a match will be + * found. + *+ * + *
+ * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.UserDataOrBuilder getUserDataOrBuilder() {
+ return userData_ == null
+ ? com.google.ads.datamanager.v1.UserData.getDefaultInstance()
+ : userData_;
+ }
+
+ public static final int DEVICE_INFO_FIELD_NUMBER = 8;
+ private com.google.ads.datamanager.v1.DeviceInfo deviceInfo_;
+
+ /**
+ *
+ *
+ * + * Optional. Information gathered about the device being used when the ad + * event happened. + *+ * + *
+ * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the deviceInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasDeviceInfo() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Information gathered about the device being used when the ad + * event happened. + *+ * + *
+ * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The deviceInfo.
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.DeviceInfo getDeviceInfo() {
+ return deviceInfo_ == null
+ ? com.google.ads.datamanager.v1.DeviceInfo.getDefaultInstance()
+ : deviceInfo_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Information gathered about the device being used when the ad + * event happened. + *+ * + *
+ * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.DeviceInfoOrBuilder getDeviceInfoOrBuilder() {
+ return deviceInfo_ == null
+ ? com.google.ads.datamanager.v1.DeviceInfo.getDefaultInstance()
+ : deviceInfo_;
+ }
+
+ public static final int MOBILE_DEVICE_ID_FIELD_NUMBER = 9;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object mobileDeviceId_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. The device ID of the device that the ad was served to. + *+ * + *
string mobile_device_id = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The mobileDeviceId.
+ */
+ @java.lang.Override
+ public java.lang.String getMobileDeviceId() {
+ java.lang.Object ref = mobileDeviceId_;
+ 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();
+ mobileDeviceId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The device ID of the device that the ad was served to. + *+ * + *
string mobile_device_id = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for mobileDeviceId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getMobileDeviceIdBytes() {
+ java.lang.Object ref = mobileDeviceId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ mobileDeviceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CAMPAIGN_ID_FIELD_NUMBER = 10;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object campaignId_ = "";
+
+ /**
+ *
+ *
+ * + * Required. The ID of the associated campaign. + *+ * + *
string campaign_id = 10 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The campaignId.
+ */
+ @java.lang.Override
+ public java.lang.String getCampaignId() {
+ java.lang.Object ref = campaignId_;
+ 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();
+ campaignId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The ID of the associated campaign. + *+ * + *
string campaign_id = 10 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for campaignId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCampaignIdBytes() {
+ java.lang.Object ref = campaignId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ campaignId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CAMPAIGN_NAME_FIELD_NUMBER = 11;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object campaignName_ = "";
+
+ /**
+ *
+ *
+ * + * Required. The name of the associated campaign. + *+ * + *
string campaign_name = 11 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The campaignName.
+ */
+ @java.lang.Override
+ public java.lang.String getCampaignName() {
+ java.lang.Object ref = campaignName_;
+ 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();
+ campaignName_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The name of the associated campaign. + *+ * + *
string campaign_name = 11 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for campaignName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCampaignNameBytes() {
+ java.lang.Object ref = campaignName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ campaignName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int AD_GROUP_ID_FIELD_NUMBER = 12;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object adGroupId_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. The ID of the associated ad group. + *+ * + *
string ad_group_id = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The adGroupId.
+ */
+ @java.lang.Override
+ public java.lang.String getAdGroupId() {
+ java.lang.Object ref = adGroupId_;
+ 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();
+ adGroupId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The ID of the associated ad group. + *+ * + *
string ad_group_id = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for adGroupId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAdGroupIdBytes() {
+ java.lang.Object ref = adGroupId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ adGroupId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int AD_ID_FIELD_NUMBER = 13;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object adId_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. The ID of the associated ad within the group. + *+ * + *
string ad_id = 13 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The adId.
+ */
+ @java.lang.Override
+ public java.lang.String getAdId() {
+ java.lang.Object ref = adId_;
+ 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();
+ adId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The ID of the associated ad within the group. + *+ * + *
string ad_id = 13 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for adId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAdIdBytes() {
+ java.lang.Object ref = adId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ adId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int AD_TYPE_FIELD_NUMBER = 14;
+
+ /**
+ *
+ *
+ * + * Enum value for ad type. + *+ * + *
.google.ads.datamanager.v1.AdType ad_type = 14;
+ *
+ * @return Whether the adType field is set.
+ */
+ public boolean hasAdType() {
+ return adTypeOneofCase_ == 14;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for ad type. + *+ * + *
.google.ads.datamanager.v1.AdType ad_type = 14;
+ *
+ * @return The enum numeric value on the wire for adType.
+ */
+ public int getAdTypeValue() {
+ if (adTypeOneofCase_ == 14) {
+ return (java.lang.Integer) adTypeOneof_;
+ }
+ return 0;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for ad type. + *+ * + *
.google.ads.datamanager.v1.AdType ad_type = 14;
+ *
+ * @return The adType.
+ */
+ public com.google.ads.datamanager.v1.AdType getAdType() {
+ if (adTypeOneofCase_ == 14) {
+ com.google.ads.datamanager.v1.AdType result =
+ com.google.ads.datamanager.v1.AdType.forNumber((java.lang.Integer) adTypeOneof_);
+ return result == null ? com.google.ads.datamanager.v1.AdType.UNRECOGNIZED : result;
+ }
+ return com.google.ads.datamanager.v1.AdType.AD_TYPE_UNSPECIFIED;
+ }
+
+ public static final int AD_TYPE_STRING_FIELD_NUMBER = 15;
+
+ /**
+ *
+ *
+ * + * String value for ad type. + *+ * + *
string ad_type_string = 15;
+ *
+ * @return Whether the adTypeString field is set.
+ */
+ public boolean hasAdTypeString() {
+ return adTypeOneofCase_ == 15;
+ }
+
+ /**
+ *
+ *
+ * + * String value for ad type. + *+ * + *
string ad_type_string = 15;
+ *
+ * @return The adTypeString.
+ */
+ public java.lang.String getAdTypeString() {
+ java.lang.Object ref = "";
+ if (adTypeOneofCase_ == 15) {
+ ref = adTypeOneof_;
+ }
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (adTypeOneofCase_ == 15) {
+ adTypeOneof_ = s;
+ }
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * String value for ad type. + *+ * + *
string ad_type_string = 15;
+ *
+ * @return The bytes for adTypeString.
+ */
+ public com.google.protobuf.ByteString getAdTypeStringBytes() {
+ java.lang.Object ref = "";
+ if (adTypeOneofCase_ == 15) {
+ ref = adTypeOneof_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (adTypeOneofCase_ == 15) {
+ adTypeOneof_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int AD_FORMAT_FIELD_NUMBER = 16;
+
+ /**
+ *
+ *
+ * + * Enum value for ad format. + *+ * + *
.google.ads.datamanager.v1.AdFormat ad_format = 16;
+ *
+ * @return Whether the adFormat field is set.
+ */
+ public boolean hasAdFormat() {
+ return adFormatOneofCase_ == 16;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for ad format. + *+ * + *
.google.ads.datamanager.v1.AdFormat ad_format = 16;
+ *
+ * @return The enum numeric value on the wire for adFormat.
+ */
+ public int getAdFormatValue() {
+ if (adFormatOneofCase_ == 16) {
+ return (java.lang.Integer) adFormatOneof_;
+ }
+ return 0;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for ad format. + *+ * + *
.google.ads.datamanager.v1.AdFormat ad_format = 16;
+ *
+ * @return The adFormat.
+ */
+ public com.google.ads.datamanager.v1.AdFormat getAdFormat() {
+ if (adFormatOneofCase_ == 16) {
+ com.google.ads.datamanager.v1.AdFormat result =
+ com.google.ads.datamanager.v1.AdFormat.forNumber((java.lang.Integer) adFormatOneof_);
+ return result == null ? com.google.ads.datamanager.v1.AdFormat.UNRECOGNIZED : result;
+ }
+ return com.google.ads.datamanager.v1.AdFormat.AD_FORMAT_UNSPECIFIED;
+ }
+
+ public static final int AD_FORMAT_STRING_FIELD_NUMBER = 17;
+
+ /**
+ *
+ *
+ * + * String value for ad format. + *+ * + *
string ad_format_string = 17;
+ *
+ * @return Whether the adFormatString field is set.
+ */
+ public boolean hasAdFormatString() {
+ return adFormatOneofCase_ == 17;
+ }
+
+ /**
+ *
+ *
+ * + * String value for ad format. + *+ * + *
string ad_format_string = 17;
+ *
+ * @return The adFormatString.
+ */
+ public java.lang.String getAdFormatString() {
+ java.lang.Object ref = "";
+ if (adFormatOneofCase_ == 17) {
+ ref = adFormatOneof_;
+ }
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (adFormatOneofCase_ == 17) {
+ adFormatOneof_ = s;
+ }
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * String value for ad format. + *+ * + *
string ad_format_string = 17;
+ *
+ * @return The bytes for adFormatString.
+ */
+ public com.google.protobuf.ByteString getAdFormatStringBytes() {
+ java.lang.Object ref = "";
+ if (adFormatOneofCase_ == 17) {
+ ref = adFormatOneof_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (adFormatOneofCase_ == 17) {
+ adFormatOneof_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int AD_PLACEMENT_FIELD_NUMBER = 18;
+
+ /**
+ *
+ *
+ * + * Enum value for ad placement. + *+ * + *
.google.ads.datamanager.v1.AdPlacement ad_placement = 18;
+ *
+ * @return Whether the adPlacement field is set.
+ */
+ public boolean hasAdPlacement() {
+ return adPlacementOneofCase_ == 18;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for ad placement. + *+ * + *
.google.ads.datamanager.v1.AdPlacement ad_placement = 18;
+ *
+ * @return The enum numeric value on the wire for adPlacement.
+ */
+ public int getAdPlacementValue() {
+ if (adPlacementOneofCase_ == 18) {
+ return (java.lang.Integer) adPlacementOneof_;
+ }
+ return 0;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for ad placement. + *+ * + *
.google.ads.datamanager.v1.AdPlacement ad_placement = 18;
+ *
+ * @return The adPlacement.
+ */
+ public com.google.ads.datamanager.v1.AdPlacement getAdPlacement() {
+ if (adPlacementOneofCase_ == 18) {
+ com.google.ads.datamanager.v1.AdPlacement result =
+ com.google.ads.datamanager.v1.AdPlacement.forNumber(
+ (java.lang.Integer) adPlacementOneof_);
+ return result == null ? com.google.ads.datamanager.v1.AdPlacement.UNRECOGNIZED : result;
+ }
+ return com.google.ads.datamanager.v1.AdPlacement.AD_PLACEMENT_UNSPECIFIED;
+ }
+
+ public static final int AD_PLACEMENT_STRING_FIELD_NUMBER = 19;
+
+ /**
+ *
+ *
+ * + * String value for ad placement. + *+ * + *
string ad_placement_string = 19;
+ *
+ * @return Whether the adPlacementString field is set.
+ */
+ public boolean hasAdPlacementString() {
+ return adPlacementOneofCase_ == 19;
+ }
+
+ /**
+ *
+ *
+ * + * String value for ad placement. + *+ * + *
string ad_placement_string = 19;
+ *
+ * @return The adPlacementString.
+ */
+ public java.lang.String getAdPlacementString() {
+ java.lang.Object ref = "";
+ if (adPlacementOneofCase_ == 19) {
+ ref = adPlacementOneof_;
+ }
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (adPlacementOneofCase_ == 19) {
+ adPlacementOneof_ = s;
+ }
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * String value for ad placement. + *+ * + *
string ad_placement_string = 19;
+ *
+ * @return The bytes for adPlacementString.
+ */
+ public com.google.protobuf.ByteString getAdPlacementStringBytes() {
+ java.lang.Object ref = "";
+ if (adPlacementOneofCase_ == 19) {
+ ref = adPlacementOneof_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (adPlacementOneofCase_ == 19) {
+ adPlacementOneof_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int AD_HEIGHT_FIELD_NUMBER = 20;
+ private int adHeight_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. The height of the ad in pixels. + *+ * + *
int32 ad_height = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The adHeight.
+ */
+ @java.lang.Override
+ public int getAdHeight() {
+ return adHeight_;
+ }
+
+ public static final int AD_WIDTH_FIELD_NUMBER = 21;
+ private int adWidth_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. The width of the ad in pixels. + *+ * + *
int32 ad_width = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The adWidth.
+ */
+ @java.lang.Override
+ public int getAdWidth() {
+ return adWidth_;
+ }
+
+ public static final int REGION_CODE_FIELD_NUMBER = 22;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object regionCode_ = "";
+
+ /**
+ *
+ *
+ * + * Required. The ISO 3166-2 country plus subdivision. + *+ * + *
string region_code = 22 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The regionCode.
+ */
+ @java.lang.Override
+ public java.lang.String getRegionCode() {
+ java.lang.Object ref = regionCode_;
+ 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();
+ regionCode_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The ISO 3166-2 country plus subdivision. + *+ * + *
string region_code = 22 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for regionCode.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getRegionCodeBytes() {
+ java.lang.Object ref = regionCode_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ regionCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SOURCE_FIELD_NUMBER = 23;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object source_ = "";
+
+ /**
+ *
+ *
+ * + * Required. The platform source of the ad, akin to the Google Analytics + * source. + *+ * + *
string source = 23 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The source.
+ */
+ @java.lang.Override
+ public java.lang.String getSource() {
+ java.lang.Object ref = source_;
+ 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();
+ source_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The platform source of the ad, akin to the Google Analytics + * source. + *+ * + *
string source = 23 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for source.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSourceBytes() {
+ java.lang.Object ref = source_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ source_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int MEDIUM_FIELD_NUMBER = 24;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object medium_ = "";
+
+ /**
+ *
+ *
+ * + * Required. The medium of the ad, akin to the Google Analytics medium. + *+ * + *
string medium = 24 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The medium.
+ */
+ @java.lang.Override
+ public java.lang.String getMedium() {
+ java.lang.Object ref = medium_;
+ 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();
+ medium_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The medium of the ad, akin to the Google Analytics medium. + *+ * + *
string medium = 24 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for medium.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getMediumBytes() {
+ java.lang.Object ref = medium_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ medium_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TARGETING_TYPE_FIELD_NUMBER = 25;
+
+ /**
+ *
+ *
+ * + * Enum value for targeting type. + *+ * + *
.google.ads.datamanager.v1.TargetingType targeting_type = 25;
+ *
+ * @return Whether the targetingType field is set.
+ */
+ public boolean hasTargetingType() {
+ return targetingTypeOneofCase_ == 25;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for targeting type. + *+ * + *
.google.ads.datamanager.v1.TargetingType targeting_type = 25;
+ *
+ * @return The enum numeric value on the wire for targetingType.
+ */
+ public int getTargetingTypeValue() {
+ if (targetingTypeOneofCase_ == 25) {
+ return (java.lang.Integer) targetingTypeOneof_;
+ }
+ return 0;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for targeting type. + *+ * + *
.google.ads.datamanager.v1.TargetingType targeting_type = 25;
+ *
+ * @return The targetingType.
+ */
+ public com.google.ads.datamanager.v1.TargetingType getTargetingType() {
+ if (targetingTypeOneofCase_ == 25) {
+ com.google.ads.datamanager.v1.TargetingType result =
+ com.google.ads.datamanager.v1.TargetingType.forNumber(
+ (java.lang.Integer) targetingTypeOneof_);
+ return result == null ? com.google.ads.datamanager.v1.TargetingType.UNRECOGNIZED : result;
+ }
+ return com.google.ads.datamanager.v1.TargetingType.TARGETING_TYPE_UNSPECIFIED;
+ }
+
+ public static final int TARGETING_TYPE_STRING_FIELD_NUMBER = 26;
+
+ /**
+ *
+ *
+ * + * String value for targeting type. + *+ * + *
string targeting_type_string = 26;
+ *
+ * @return Whether the targetingTypeString field is set.
+ */
+ public boolean hasTargetingTypeString() {
+ return targetingTypeOneofCase_ == 26;
+ }
+
+ /**
+ *
+ *
+ * + * String value for targeting type. + *+ * + *
string targeting_type_string = 26;
+ *
+ * @return The targetingTypeString.
+ */
+ public java.lang.String getTargetingTypeString() {
+ java.lang.Object ref = "";
+ if (targetingTypeOneofCase_ == 26) {
+ ref = targetingTypeOneof_;
+ }
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (targetingTypeOneofCase_ == 26) {
+ targetingTypeOneof_ = s;
+ }
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * String value for targeting type. + *+ * + *
string targeting_type_string = 26;
+ *
+ * @return The bytes for targetingTypeString.
+ */
+ public com.google.protobuf.ByteString getTargetingTypeStringBytes() {
+ java.lang.Object ref = "";
+ if (targetingTypeOneofCase_ == 26) {
+ ref = targetingTypeOneof_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (targetingTypeOneofCase_ == 26) {
+ targetingTypeOneof_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PLATFORM_TYPE_FIELD_NUMBER = 27;
+
+ /**
+ *
+ *
+ * + * Enum value for platform type. + *+ * + *
.google.ads.datamanager.v1.PlatformType platform_type = 27;
+ *
+ * @return Whether the platformType field is set.
+ */
+ public boolean hasPlatformType() {
+ return platformTypeOneofCase_ == 27;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for platform type. + *+ * + *
.google.ads.datamanager.v1.PlatformType platform_type = 27;
+ *
+ * @return The enum numeric value on the wire for platformType.
+ */
+ public int getPlatformTypeValue() {
+ if (platformTypeOneofCase_ == 27) {
+ return (java.lang.Integer) platformTypeOneof_;
+ }
+ return 0;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for platform type. + *+ * + *
.google.ads.datamanager.v1.PlatformType platform_type = 27;
+ *
+ * @return The platformType.
+ */
+ public com.google.ads.datamanager.v1.PlatformType getPlatformType() {
+ if (platformTypeOneofCase_ == 27) {
+ com.google.ads.datamanager.v1.PlatformType result =
+ com.google.ads.datamanager.v1.PlatformType.forNumber(
+ (java.lang.Integer) platformTypeOneof_);
+ return result == null ? com.google.ads.datamanager.v1.PlatformType.UNRECOGNIZED : result;
+ }
+ return com.google.ads.datamanager.v1.PlatformType.PLATFORM_TYPE_UNSPECIFIED;
+ }
+
+ public static final int PLATFORM_TYPE_STRING_FIELD_NUMBER = 28;
+
+ /**
+ *
+ *
+ * + * String value for platform type. + *+ * + *
string platform_type_string = 28;
+ *
+ * @return Whether the platformTypeString field is set.
+ */
+ public boolean hasPlatformTypeString() {
+ return platformTypeOneofCase_ == 28;
+ }
+
+ /**
+ *
+ *
+ * + * String value for platform type. + *+ * + *
string platform_type_string = 28;
+ *
+ * @return The platformTypeString.
+ */
+ public java.lang.String getPlatformTypeString() {
+ java.lang.Object ref = "";
+ if (platformTypeOneofCase_ == 28) {
+ ref = platformTypeOneof_;
+ }
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (platformTypeOneofCase_ == 28) {
+ platformTypeOneof_ = s;
+ }
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * String value for platform type. + *+ * + *
string platform_type_string = 28;
+ *
+ * @return The bytes for platformTypeString.
+ */
+ public com.google.protobuf.ByteString getPlatformTypeStringBytes() {
+ java.lang.Object ref = "";
+ if (platformTypeOneofCase_ == 28) {
+ ref = platformTypeOneof_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (platformTypeOneofCase_ == 28) {
+ platformTypeOneof_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PLATFORM_FIELD_NUMBER = 29;
+
+ /**
+ *
+ *
+ * + * Enum value for platform. + *+ * + *
.google.ads.datamanager.v1.Platform platform = 29;
+ *
+ * @return Whether the platform field is set.
+ */
+ public boolean hasPlatform() {
+ return platformOneofCase_ == 29;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for platform. + *+ * + *
.google.ads.datamanager.v1.Platform platform = 29;
+ *
+ * @return The enum numeric value on the wire for platform.
+ */
+ public int getPlatformValue() {
+ if (platformOneofCase_ == 29) {
+ return (java.lang.Integer) platformOneof_;
+ }
+ return 0;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for platform. + *+ * + *
.google.ads.datamanager.v1.Platform platform = 29;
+ *
+ * @return The platform.
+ */
+ public com.google.ads.datamanager.v1.Platform getPlatform() {
+ if (platformOneofCase_ == 29) {
+ com.google.ads.datamanager.v1.Platform result =
+ com.google.ads.datamanager.v1.Platform.forNumber((java.lang.Integer) platformOneof_);
+ return result == null ? com.google.ads.datamanager.v1.Platform.UNRECOGNIZED : result;
+ }
+ return com.google.ads.datamanager.v1.Platform.PLATFORM_UNSPECIFIED;
+ }
+
+ public static final int PLATFORM_STRING_FIELD_NUMBER = 30;
+
+ /**
+ *
+ *
+ * + * String value for platform. + *+ * + *
string platform_string = 30;
+ *
+ * @return Whether the platformString field is set.
+ */
+ public boolean hasPlatformString() {
+ return platformOneofCase_ == 30;
+ }
+
+ /**
+ *
+ *
+ * + * String value for platform. + *+ * + *
string platform_string = 30;
+ *
+ * @return The platformString.
+ */
+ public java.lang.String getPlatformString() {
+ java.lang.Object ref = "";
+ if (platformOneofCase_ == 30) {
+ ref = platformOneof_;
+ }
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (platformOneofCase_ == 30) {
+ platformOneof_ = s;
+ }
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * String value for platform. + *+ * + *
string platform_string = 30;
+ *
+ * @return The bytes for platformString.
+ */
+ public com.google.protobuf.ByteString getPlatformStringBytes() {
+ java.lang.Object ref = "";
+ if (platformOneofCase_ == 30) {
+ ref = platformOneof_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (platformOneofCase_ == 30) {
+ platformOneof_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ATTRIBUTION_HINT_FIELD_NUMBER = 31;
+ private int attributionHint_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. The partner-assumed attribution status for this ad event. + * + * This acts only as a signal for how the partner assumed attribution played + * out, and does not force an end result in final reports. + *+ * + *
+ * .google.ads.datamanager.v1.AttributionHint attribution_hint = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for attributionHint.
+ */
+ @java.lang.Override
+ public int getAttributionHintValue() {
+ return attributionHint_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The partner-assumed attribution status for this ad event. + * + * This acts only as a signal for how the partner assumed attribution played + * out, and does not force an end result in final reports. + *+ * + *
+ * .google.ads.datamanager.v1.AttributionHint attribution_hint = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The attributionHint.
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.AttributionHint getAttributionHint() {
+ com.google.ads.datamanager.v1.AttributionHint result =
+ com.google.ads.datamanager.v1.AttributionHint.forNumber(attributionHint_);
+ return result == null ? com.google.ads.datamanager.v1.AttributionHint.UNRECOGNIZED : result;
+ }
+
+ public static final int VIEWABILITY_INFO_FIELD_NUMBER = 32;
+ private com.google.ads.datamanager.v1.ViewabilityInfo viewabilityInfo_;
+
+ /**
+ *
+ *
+ * + * Required. Details of the viewability of the ad served. + *+ * + *
+ * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the viewabilityInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasViewabilityInfo() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Required. Details of the viewability of the ad served. + *+ * + *
+ * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The viewabilityInfo.
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.ViewabilityInfo getViewabilityInfo() {
+ return viewabilityInfo_ == null
+ ? com.google.ads.datamanager.v1.ViewabilityInfo.getDefaultInstance()
+ : viewabilityInfo_;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Details of the viewability of the ad served. + *+ * + *
+ * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.ViewabilityInfoOrBuilder getViewabilityInfoOrBuilder() {
+ return viewabilityInfo_ == null
+ ? com.google.ads.datamanager.v1.ViewabilityInfo.getDefaultInstance()
+ : viewabilityInfo_;
+ }
+
+ public static final int MEASUREMENT_ALLOWED_FIELD_NUMBER = 33;
+ private boolean measurementAllowed_ = false;
+
+ /**
+ *
+ *
+ * + * Optional. Represents if the row is allowed to be used for measurement + * purposes, as governed by applicable privacy laws within regional + * jurisdiction. + *+ * + *
optional bool measurement_allowed = 33 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the measurementAllowed field is set.
+ */
+ @java.lang.Override
+ public boolean hasMeasurementAllowed() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Represents if the row is allowed to be used for measurement + * purposes, as governed by applicable privacy laws within regional + * jurisdiction. + *+ * + *
optional bool measurement_allowed = 33 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The measurementAllowed.
+ */
+ @java.lang.Override
+ public boolean getMeasurementAllowed() {
+ return measurementAllowed_;
+ }
+
+ 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.GeneratedMessage.isStringEmpty(advertiserId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, advertiserId_);
+ }
+ if (eventType_
+ != com.google.ads.datamanager.v1.AdEvent.EventType.EVENT_TYPE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(2, eventType_);
+ }
+ if (eventSubtypeOneofCase_ == 3) {
+ output.writeEnum(3, ((java.lang.Integer) eventSubtypeOneof_));
+ }
+ if (eventSubtypeOneofCase_ == 4) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, eventSubtypeOneof_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(5, getTimestamp());
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(eventId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 6, eventId_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(7, getUserData());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeMessage(8, getDeviceInfo());
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mobileDeviceId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 9, mobileDeviceId_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(campaignId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 10, campaignId_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(campaignName_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 11, campaignName_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(adGroupId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 12, adGroupId_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(adId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 13, adId_);
+ }
+ if (adTypeOneofCase_ == 14) {
+ output.writeEnum(14, ((java.lang.Integer) adTypeOneof_));
+ }
+ if (adTypeOneofCase_ == 15) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 15, adTypeOneof_);
+ }
+ if (adFormatOneofCase_ == 16) {
+ output.writeEnum(16, ((java.lang.Integer) adFormatOneof_));
+ }
+ if (adFormatOneofCase_ == 17) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 17, adFormatOneof_);
+ }
+ if (adPlacementOneofCase_ == 18) {
+ output.writeEnum(18, ((java.lang.Integer) adPlacementOneof_));
+ }
+ if (adPlacementOneofCase_ == 19) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 19, adPlacementOneof_);
+ }
+ if (adHeight_ != 0) {
+ output.writeInt32(20, adHeight_);
+ }
+ if (adWidth_ != 0) {
+ output.writeInt32(21, adWidth_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(regionCode_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 22, regionCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(source_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 23, source_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(medium_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 24, medium_);
+ }
+ if (targetingTypeOneofCase_ == 25) {
+ output.writeEnum(25, ((java.lang.Integer) targetingTypeOneof_));
+ }
+ if (targetingTypeOneofCase_ == 26) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 26, targetingTypeOneof_);
+ }
+ if (platformTypeOneofCase_ == 27) {
+ output.writeEnum(27, ((java.lang.Integer) platformTypeOneof_));
+ }
+ if (platformTypeOneofCase_ == 28) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 28, platformTypeOneof_);
+ }
+ if (platformOneofCase_ == 29) {
+ output.writeEnum(29, ((java.lang.Integer) platformOneof_));
+ }
+ if (platformOneofCase_ == 30) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 30, platformOneof_);
+ }
+ if (attributionHint_
+ != com.google.ads.datamanager.v1.AttributionHint.ATTRIBUTION_HINT_UNSPECIFIED.getNumber()) {
+ output.writeEnum(31, attributionHint_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(32, getViewabilityInfo());
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeBool(33, measurementAllowed_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(advertiserId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, advertiserId_);
+ }
+ if (eventType_
+ != com.google.ads.datamanager.v1.AdEvent.EventType.EVENT_TYPE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, eventType_);
+ }
+ if (eventSubtypeOneofCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeEnumSize(
+ 3, ((java.lang.Integer) eventSubtypeOneof_));
+ }
+ if (eventSubtypeOneofCase_ == 4) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, eventSubtypeOneof_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTimestamp());
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(eventId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(6, eventId_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUserData());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeviceInfo());
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mobileDeviceId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(9, mobileDeviceId_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(campaignId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(10, campaignId_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(campaignName_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(11, campaignName_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(adGroupId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(12, adGroupId_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(adId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(13, adId_);
+ }
+ if (adTypeOneofCase_ == 14) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeEnumSize(
+ 14, ((java.lang.Integer) adTypeOneof_));
+ }
+ if (adTypeOneofCase_ == 15) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(15, adTypeOneof_);
+ }
+ if (adFormatOneofCase_ == 16) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeEnumSize(
+ 16, ((java.lang.Integer) adFormatOneof_));
+ }
+ if (adFormatOneofCase_ == 17) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(17, adFormatOneof_);
+ }
+ if (adPlacementOneofCase_ == 18) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeEnumSize(
+ 18, ((java.lang.Integer) adPlacementOneof_));
+ }
+ if (adPlacementOneofCase_ == 19) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(19, adPlacementOneof_);
+ }
+ if (adHeight_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(20, adHeight_);
+ }
+ if (adWidth_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(21, adWidth_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(regionCode_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(22, regionCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(source_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(23, source_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(medium_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(24, medium_);
+ }
+ if (targetingTypeOneofCase_ == 25) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeEnumSize(
+ 25, ((java.lang.Integer) targetingTypeOneof_));
+ }
+ if (targetingTypeOneofCase_ == 26) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(26, targetingTypeOneof_);
+ }
+ if (platformTypeOneofCase_ == 27) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeEnumSize(
+ 27, ((java.lang.Integer) platformTypeOneof_));
+ }
+ if (platformTypeOneofCase_ == 28) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(28, platformTypeOneof_);
+ }
+ if (platformOneofCase_ == 29) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeEnumSize(
+ 29, ((java.lang.Integer) platformOneof_));
+ }
+ if (platformOneofCase_ == 30) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(30, platformOneof_);
+ }
+ if (attributionHint_
+ != com.google.ads.datamanager.v1.AttributionHint.ATTRIBUTION_HINT_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(31, attributionHint_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, getViewabilityInfo());
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(33, measurementAllowed_);
+ }
+ 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.datamanager.v1.AdEvent)) {
+ return super.equals(obj);
+ }
+ com.google.ads.datamanager.v1.AdEvent other = (com.google.ads.datamanager.v1.AdEvent) obj;
+
+ if (!getAdvertiserId().equals(other.getAdvertiserId())) return false;
+ if (eventType_ != other.eventType_) return false;
+ if (hasTimestamp() != other.hasTimestamp()) return false;
+ if (hasTimestamp()) {
+ if (!getTimestamp().equals(other.getTimestamp())) return false;
+ }
+ if (!getEventId().equals(other.getEventId())) return false;
+ if (hasUserData() != other.hasUserData()) return false;
+ if (hasUserData()) {
+ if (!getUserData().equals(other.getUserData())) return false;
+ }
+ if (hasDeviceInfo() != other.hasDeviceInfo()) return false;
+ if (hasDeviceInfo()) {
+ if (!getDeviceInfo().equals(other.getDeviceInfo())) return false;
+ }
+ if (!getMobileDeviceId().equals(other.getMobileDeviceId())) return false;
+ if (!getCampaignId().equals(other.getCampaignId())) return false;
+ if (!getCampaignName().equals(other.getCampaignName())) return false;
+ if (!getAdGroupId().equals(other.getAdGroupId())) return false;
+ if (!getAdId().equals(other.getAdId())) return false;
+ if (getAdHeight() != other.getAdHeight()) return false;
+ if (getAdWidth() != other.getAdWidth()) return false;
+ if (!getRegionCode().equals(other.getRegionCode())) return false;
+ if (!getSource().equals(other.getSource())) return false;
+ if (!getMedium().equals(other.getMedium())) return false;
+ if (attributionHint_ != other.attributionHint_) return false;
+ if (hasViewabilityInfo() != other.hasViewabilityInfo()) return false;
+ if (hasViewabilityInfo()) {
+ if (!getViewabilityInfo().equals(other.getViewabilityInfo())) return false;
+ }
+ if (hasMeasurementAllowed() != other.hasMeasurementAllowed()) return false;
+ if (hasMeasurementAllowed()) {
+ if (getMeasurementAllowed() != other.getMeasurementAllowed()) return false;
+ }
+ if (!getEventSubtypeOneofCase().equals(other.getEventSubtypeOneofCase())) return false;
+ switch (eventSubtypeOneofCase_) {
+ case 3:
+ if (getEventSubtypeValue() != other.getEventSubtypeValue()) return false;
+ break;
+ case 4:
+ if (!getEventSubtypeString().equals(other.getEventSubtypeString())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getAdTypeOneofCase().equals(other.getAdTypeOneofCase())) return false;
+ switch (adTypeOneofCase_) {
+ case 14:
+ if (getAdTypeValue() != other.getAdTypeValue()) return false;
+ break;
+ case 15:
+ if (!getAdTypeString().equals(other.getAdTypeString())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getAdFormatOneofCase().equals(other.getAdFormatOneofCase())) return false;
+ switch (adFormatOneofCase_) {
+ case 16:
+ if (getAdFormatValue() != other.getAdFormatValue()) return false;
+ break;
+ case 17:
+ if (!getAdFormatString().equals(other.getAdFormatString())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getAdPlacementOneofCase().equals(other.getAdPlacementOneofCase())) return false;
+ switch (adPlacementOneofCase_) {
+ case 18:
+ if (getAdPlacementValue() != other.getAdPlacementValue()) return false;
+ break;
+ case 19:
+ if (!getAdPlacementString().equals(other.getAdPlacementString())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getTargetingTypeOneofCase().equals(other.getTargetingTypeOneofCase())) return false;
+ switch (targetingTypeOneofCase_) {
+ case 25:
+ if (getTargetingTypeValue() != other.getTargetingTypeValue()) return false;
+ break;
+ case 26:
+ if (!getTargetingTypeString().equals(other.getTargetingTypeString())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getPlatformTypeOneofCase().equals(other.getPlatformTypeOneofCase())) return false;
+ switch (platformTypeOneofCase_) {
+ case 27:
+ if (getPlatformTypeValue() != other.getPlatformTypeValue()) return false;
+ break;
+ case 28:
+ if (!getPlatformTypeString().equals(other.getPlatformTypeString())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getPlatformOneofCase().equals(other.getPlatformOneofCase())) return false;
+ switch (platformOneofCase_) {
+ case 29:
+ if (getPlatformValue() != other.getPlatformValue()) return false;
+ break;
+ case 30:
+ if (!getPlatformString().equals(other.getPlatformString())) 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) + ADVERTISER_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getAdvertiserId().hashCode();
+ hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + eventType_;
+ if (hasTimestamp()) {
+ hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + getTimestamp().hashCode();
+ }
+ hash = (37 * hash) + EVENT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getEventId().hashCode();
+ if (hasUserData()) {
+ hash = (37 * hash) + USER_DATA_FIELD_NUMBER;
+ hash = (53 * hash) + getUserData().hashCode();
+ }
+ if (hasDeviceInfo()) {
+ hash = (37 * hash) + DEVICE_INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getDeviceInfo().hashCode();
+ }
+ hash = (37 * hash) + MOBILE_DEVICE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getMobileDeviceId().hashCode();
+ hash = (37 * hash) + CAMPAIGN_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getCampaignId().hashCode();
+ hash = (37 * hash) + CAMPAIGN_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getCampaignName().hashCode();
+ hash = (37 * hash) + AD_GROUP_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getAdGroupId().hashCode();
+ hash = (37 * hash) + AD_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getAdId().hashCode();
+ hash = (37 * hash) + AD_HEIGHT_FIELD_NUMBER;
+ hash = (53 * hash) + getAdHeight();
+ hash = (37 * hash) + AD_WIDTH_FIELD_NUMBER;
+ hash = (53 * hash) + getAdWidth();
+ hash = (37 * hash) + REGION_CODE_FIELD_NUMBER;
+ hash = (53 * hash) + getRegionCode().hashCode();
+ hash = (37 * hash) + SOURCE_FIELD_NUMBER;
+ hash = (53 * hash) + getSource().hashCode();
+ hash = (37 * hash) + MEDIUM_FIELD_NUMBER;
+ hash = (53 * hash) + getMedium().hashCode();
+ hash = (37 * hash) + ATTRIBUTION_HINT_FIELD_NUMBER;
+ hash = (53 * hash) + attributionHint_;
+ if (hasViewabilityInfo()) {
+ hash = (37 * hash) + VIEWABILITY_INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getViewabilityInfo().hashCode();
+ }
+ if (hasMeasurementAllowed()) {
+ hash = (37 * hash) + MEASUREMENT_ALLOWED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMeasurementAllowed());
+ }
+ switch (eventSubtypeOneofCase_) {
+ case 3:
+ hash = (37 * hash) + EVENT_SUBTYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getEventSubtypeValue();
+ break;
+ case 4:
+ hash = (37 * hash) + EVENT_SUBTYPE_STRING_FIELD_NUMBER;
+ hash = (53 * hash) + getEventSubtypeString().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ switch (adTypeOneofCase_) {
+ case 14:
+ hash = (37 * hash) + AD_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getAdTypeValue();
+ break;
+ case 15:
+ hash = (37 * hash) + AD_TYPE_STRING_FIELD_NUMBER;
+ hash = (53 * hash) + getAdTypeString().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ switch (adFormatOneofCase_) {
+ case 16:
+ hash = (37 * hash) + AD_FORMAT_FIELD_NUMBER;
+ hash = (53 * hash) + getAdFormatValue();
+ break;
+ case 17:
+ hash = (37 * hash) + AD_FORMAT_STRING_FIELD_NUMBER;
+ hash = (53 * hash) + getAdFormatString().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ switch (adPlacementOneofCase_) {
+ case 18:
+ hash = (37 * hash) + AD_PLACEMENT_FIELD_NUMBER;
+ hash = (53 * hash) + getAdPlacementValue();
+ break;
+ case 19:
+ hash = (37 * hash) + AD_PLACEMENT_STRING_FIELD_NUMBER;
+ hash = (53 * hash) + getAdPlacementString().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ switch (targetingTypeOneofCase_) {
+ case 25:
+ hash = (37 * hash) + TARGETING_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getTargetingTypeValue();
+ break;
+ case 26:
+ hash = (37 * hash) + TARGETING_TYPE_STRING_FIELD_NUMBER;
+ hash = (53 * hash) + getTargetingTypeString().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ switch (platformTypeOneofCase_) {
+ case 27:
+ hash = (37 * hash) + PLATFORM_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getPlatformTypeValue();
+ break;
+ case 28:
+ hash = (37 * hash) + PLATFORM_TYPE_STRING_FIELD_NUMBER;
+ hash = (53 * hash) + getPlatformTypeString().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ switch (platformOneofCase_) {
+ case 29:
+ hash = (37 * hash) + PLATFORM_FIELD_NUMBER;
+ hash = (53 * hash) + getPlatformValue();
+ break;
+ case 30:
+ hash = (37 * hash) + PLATFORM_STRING_FIELD_NUMBER;
+ hash = (53 * hash) + getPlatformString().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.ads.datamanager.v1.AdEvent parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.datamanager.v1.AdEvent 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.datamanager.v1.AdEvent parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.datamanager.v1.AdEvent 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.datamanager.v1.AdEvent parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.datamanager.v1.AdEvent parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.ads.datamanager.v1.AdEvent parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.datamanager.v1.AdEvent parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.datamanager.v1.AdEvent parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.datamanager.v1.AdEvent parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.datamanager.v1.AdEvent parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.datamanager.v1.AdEvent parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.datamanager.v1.AdEvent 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * An ad event. + *+ * + * Protobuf type {@code google.ads.datamanager.v1.AdEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Required. The ID of the advertiser for the ad event. + * + * This must match the ID sent in the linking flow. + *+ * + *
string advertiser_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The advertiserId.
+ */
+ public java.lang.String getAdvertiserId() {
+ java.lang.Object ref = advertiserId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ advertiserId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The ID of the advertiser for the ad event. + * + * This must match the ID sent in the linking flow. + *+ * + *
string advertiser_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for advertiserId.
+ */
+ public com.google.protobuf.ByteString getAdvertiserIdBytes() {
+ java.lang.Object ref = advertiserId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ advertiserId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The ID of the advertiser for the ad event. + * + * This must match the ID sent in the linking flow. + *+ * + *
string advertiser_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The advertiserId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdvertiserId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ advertiserId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The ID of the advertiser for the ad event. + * + * This must match the ID sent in the linking flow. + *+ * + *
string advertiser_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAdvertiserId() {
+ advertiserId_ = getDefaultInstance().getAdvertiserId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The ID of the advertiser for the ad event. + * + * This must match the ID sent in the linking flow. + *+ * + *
string advertiser_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for advertiserId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdvertiserIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ advertiserId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private int eventType_ = 0;
+
+ /**
+ *
+ *
+ * + * Required. The type of the event. + *+ * + *
+ * .google.ads.datamanager.v1.AdEvent.EventType event_type = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The enum numeric value on the wire for eventType.
+ */
+ @java.lang.Override
+ public int getEventTypeValue() {
+ return eventType_;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The type of the event. + *+ * + *
+ * .google.ads.datamanager.v1.AdEvent.EventType event_type = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @param value The enum numeric value on the wire for eventType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEventTypeValue(int value) {
+ eventType_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The type of the event. + *+ * + *
+ * .google.ads.datamanager.v1.AdEvent.EventType event_type = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The eventType.
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.AdEvent.EventType getEventType() {
+ com.google.ads.datamanager.v1.AdEvent.EventType result =
+ com.google.ads.datamanager.v1.AdEvent.EventType.forNumber(eventType_);
+ return result == null ? com.google.ads.datamanager.v1.AdEvent.EventType.UNRECOGNIZED : result;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The type of the event. + *+ * + *
+ * .google.ads.datamanager.v1.AdEvent.EventType event_type = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @param value The eventType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEventType(com.google.ads.datamanager.v1.AdEvent.EventType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ eventType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The type of the event. + *+ * + *
+ * .google.ads.datamanager.v1.AdEvent.EventType event_type = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEventType() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ eventType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for event subtype. + *+ * + *
.google.ads.datamanager.v1.AdEvent.EventSubtype event_subtype = 3;
+ *
+ * @return Whether the eventSubtype field is set.
+ */
+ @java.lang.Override
+ public boolean hasEventSubtype() {
+ return eventSubtypeOneofCase_ == 3;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for event subtype. + *+ * + *
.google.ads.datamanager.v1.AdEvent.EventSubtype event_subtype = 3;
+ *
+ * @return The enum numeric value on the wire for eventSubtype.
+ */
+ @java.lang.Override
+ public int getEventSubtypeValue() {
+ if (eventSubtypeOneofCase_ == 3) {
+ return ((java.lang.Integer) eventSubtypeOneof_).intValue();
+ }
+ return 0;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for event subtype. + *+ * + *
.google.ads.datamanager.v1.AdEvent.EventSubtype event_subtype = 3;
+ *
+ * @param value The enum numeric value on the wire for eventSubtype to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEventSubtypeValue(int value) {
+ eventSubtypeOneofCase_ = 3;
+ eventSubtypeOneof_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for event subtype. + *+ * + *
.google.ads.datamanager.v1.AdEvent.EventSubtype event_subtype = 3;
+ *
+ * @return The eventSubtype.
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.AdEvent.EventSubtype getEventSubtype() {
+ if (eventSubtypeOneofCase_ == 3) {
+ com.google.ads.datamanager.v1.AdEvent.EventSubtype result =
+ com.google.ads.datamanager.v1.AdEvent.EventSubtype.forNumber(
+ (java.lang.Integer) eventSubtypeOneof_);
+ return result == null
+ ? com.google.ads.datamanager.v1.AdEvent.EventSubtype.UNRECOGNIZED
+ : result;
+ }
+ return com.google.ads.datamanager.v1.AdEvent.EventSubtype.EVENT_SUBTYPE_UNSPECIFIED;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for event subtype. + *+ * + *
.google.ads.datamanager.v1.AdEvent.EventSubtype event_subtype = 3;
+ *
+ * @param value The eventSubtype to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEventSubtype(com.google.ads.datamanager.v1.AdEvent.EventSubtype value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ eventSubtypeOneofCase_ = 3;
+ eventSubtypeOneof_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for event subtype. + *+ * + *
.google.ads.datamanager.v1.AdEvent.EventSubtype event_subtype = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEventSubtype() {
+ if (eventSubtypeOneofCase_ == 3) {
+ eventSubtypeOneofCase_ = 0;
+ eventSubtypeOneof_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * String value for event subtype. + *+ * + *
string event_subtype_string = 4;
+ *
+ * @return Whether the eventSubtypeString field is set.
+ */
+ @java.lang.Override
+ public boolean hasEventSubtypeString() {
+ return eventSubtypeOneofCase_ == 4;
+ }
+
+ /**
+ *
+ *
+ * + * String value for event subtype. + *+ * + *
string event_subtype_string = 4;
+ *
+ * @return The eventSubtypeString.
+ */
+ @java.lang.Override
+ public java.lang.String getEventSubtypeString() {
+ java.lang.Object ref = "";
+ if (eventSubtypeOneofCase_ == 4) {
+ ref = eventSubtypeOneof_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (eventSubtypeOneofCase_ == 4) {
+ eventSubtypeOneof_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * String value for event subtype. + *+ * + *
string event_subtype_string = 4;
+ *
+ * @return The bytes for eventSubtypeString.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getEventSubtypeStringBytes() {
+ java.lang.Object ref = "";
+ if (eventSubtypeOneofCase_ == 4) {
+ ref = eventSubtypeOneof_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (eventSubtypeOneofCase_ == 4) {
+ eventSubtypeOneof_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * String value for event subtype. + *+ * + *
string event_subtype_string = 4;
+ *
+ * @param value The eventSubtypeString to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEventSubtypeString(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ eventSubtypeOneofCase_ = 4;
+ eventSubtypeOneof_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * String value for event subtype. + *+ * + *
string event_subtype_string = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEventSubtypeString() {
+ if (eventSubtypeOneofCase_ == 4) {
+ eventSubtypeOneofCase_ = 0;
+ eventSubtypeOneof_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * String value for event subtype. + *+ * + *
string event_subtype_string = 4;
+ *
+ * @param value The bytes for eventSubtypeString to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEventSubtypeStringBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ eventSubtypeOneofCase_ = 4;
+ eventSubtypeOneof_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp timestamp_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ timestampBuilder_;
+
+ /**
+ *
+ *
+ * + * Required. The time the event occurred. + *+ * + *
.google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the timestamp field is set.
+ */
+ public boolean hasTimestamp() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Required. The time the event occurred. + *+ * + *
.google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The timestamp.
+ */
+ public com.google.protobuf.Timestamp getTimestamp() {
+ if (timestampBuilder_ == null) {
+ return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
+ } else {
+ return timestampBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The time the event occurred. + *+ * + *
.google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setTimestamp(com.google.protobuf.Timestamp value) {
+ if (timestampBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ timestamp_ = value;
+ } else {
+ timestampBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The time the event occurred. + *+ * + *
.google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (timestampBuilder_ == null) {
+ timestamp_ = builderForValue.build();
+ } else {
+ timestampBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The time the event occurred. + *+ * + *
.google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) {
+ if (timestampBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0)
+ && timestamp_ != null
+ && timestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getTimestampBuilder().mergeFrom(value);
+ } else {
+ timestamp_ = value;
+ }
+ } else {
+ timestampBuilder_.mergeFrom(value);
+ }
+ if (timestamp_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The time the event occurred. + *+ * + *
.google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearTimestamp() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ timestamp_ = null;
+ if (timestampBuilder_ != null) {
+ timestampBuilder_.dispose();
+ timestampBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The time the event occurred. + *+ * + *
.google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return internalGetTimestampFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Required. The time the event occurred. + *+ * + *
.google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
+ if (timestampBuilder_ != null) {
+ return timestampBuilder_.getMessageOrBuilder();
+ } else {
+ return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The time the event occurred. + *+ * + *
.google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ internalGetTimestampFieldBuilder() {
+ if (timestampBuilder_ == null) {
+ timestampBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getTimestamp(), getParentForChildren(), isClean());
+ timestamp_ = null;
+ }
+ return timestampBuilder_;
+ }
+
+ private java.lang.Object eventId_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. An ID created and managed by the caller that uniquely identifies + * this event. + * + * Required if you want to deduplicate ad events that are included + * in multiple requests. Otherwise, this field is optional. + *+ * + *
string event_id = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The eventId.
+ */
+ public java.lang.String getEventId() {
+ java.lang.Object ref = eventId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ eventId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An ID created and managed by the caller that uniquely identifies + * this event. + * + * Required if you want to deduplicate ad events that are included + * in multiple requests. Otherwise, this field is optional. + *+ * + *
string event_id = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for eventId.
+ */
+ public com.google.protobuf.ByteString getEventIdBytes() {
+ java.lang.Object ref = eventId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ eventId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An ID created and managed by the caller that uniquely identifies + * this event. + * + * Required if you want to deduplicate ad events that are included + * in multiple requests. Otherwise, this field is optional. + *+ * + *
string event_id = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The eventId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEventId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ eventId_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An ID created and managed by the caller that uniquely identifies + * this event. + * + * Required if you want to deduplicate ad events that are included + * in multiple requests. Otherwise, this field is optional. + *+ * + *
string event_id = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEventId() {
+ eventId_ = getDefaultInstance().getEventId();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An ID created and managed by the caller that uniquely identifies + * this event. + * + * Required if you want to deduplicate ad events that are included + * in multiple requests. Otherwise, this field is optional. + *+ * + *
string event_id = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for eventId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEventIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ eventId_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ private com.google.ads.datamanager.v1.UserData userData_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.datamanager.v1.UserData,
+ com.google.ads.datamanager.v1.UserData.Builder,
+ com.google.ads.datamanager.v1.UserDataOrBuilder>
+ userDataBuilder_;
+
+ /**
+ *
+ *
+ * + * Optional. Multiple pieces of user-provided data, representing the user the + * event is associated with. + * + * It is possible to provide multiple instances of the same type of data (e.g. + * email address). The more data provided, the more likely a match will be + * found. + *+ * + *
+ * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the userData field is set.
+ */
+ public boolean hasUserData() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Multiple pieces of user-provided data, representing the user the + * event is associated with. + * + * It is possible to provide multiple instances of the same type of data (e.g. + * email address). The more data provided, the more likely a match will be + * found. + *+ * + *
+ * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The userData.
+ */
+ public com.google.ads.datamanager.v1.UserData getUserData() {
+ if (userDataBuilder_ == null) {
+ return userData_ == null
+ ? com.google.ads.datamanager.v1.UserData.getDefaultInstance()
+ : userData_;
+ } else {
+ return userDataBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Multiple pieces of user-provided data, representing the user the + * event is associated with. + * + * It is possible to provide multiple instances of the same type of data (e.g. + * email address). The more data provided, the more likely a match will be + * found. + *+ * + *
+ * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setUserData(com.google.ads.datamanager.v1.UserData value) {
+ if (userDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ userData_ = value;
+ } else {
+ userDataBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Multiple pieces of user-provided data, representing the user the + * event is associated with. + * + * It is possible to provide multiple instances of the same type of data (e.g. + * email address). The more data provided, the more likely a match will be + * found. + *+ * + *
+ * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setUserData(com.google.ads.datamanager.v1.UserData.Builder builderForValue) {
+ if (userDataBuilder_ == null) {
+ userData_ = builderForValue.build();
+ } else {
+ userDataBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Multiple pieces of user-provided data, representing the user the + * event is associated with. + * + * It is possible to provide multiple instances of the same type of data (e.g. + * email address). The more data provided, the more likely a match will be + * found. + *+ * + *
+ * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeUserData(com.google.ads.datamanager.v1.UserData value) {
+ if (userDataBuilder_ == null) {
+ if (((bitField0_ & 0x00000040) != 0)
+ && userData_ != null
+ && userData_ != com.google.ads.datamanager.v1.UserData.getDefaultInstance()) {
+ getUserDataBuilder().mergeFrom(value);
+ } else {
+ userData_ = value;
+ }
+ } else {
+ userDataBuilder_.mergeFrom(value);
+ }
+ if (userData_ != null) {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Multiple pieces of user-provided data, representing the user the + * event is associated with. + * + * It is possible to provide multiple instances of the same type of data (e.g. + * email address). The more data provided, the more likely a match will be + * found. + *+ * + *
+ * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearUserData() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ userData_ = null;
+ if (userDataBuilder_ != null) {
+ userDataBuilder_.dispose();
+ userDataBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Multiple pieces of user-provided data, representing the user the + * event is associated with. + * + * It is possible to provide multiple instances of the same type of data (e.g. + * email address). The more data provided, the more likely a match will be + * found. + *+ * + *
+ * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.ads.datamanager.v1.UserData.Builder getUserDataBuilder() {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return internalGetUserDataFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Multiple pieces of user-provided data, representing the user the + * event is associated with. + * + * It is possible to provide multiple instances of the same type of data (e.g. + * email address). The more data provided, the more likely a match will be + * found. + *+ * + *
+ * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.ads.datamanager.v1.UserDataOrBuilder getUserDataOrBuilder() {
+ if (userDataBuilder_ != null) {
+ return userDataBuilder_.getMessageOrBuilder();
+ } else {
+ return userData_ == null
+ ? com.google.ads.datamanager.v1.UserData.getDefaultInstance()
+ : userData_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Multiple pieces of user-provided data, representing the user the + * event is associated with. + * + * It is possible to provide multiple instances of the same type of data (e.g. + * email address). The more data provided, the more likely a match will be + * found. + *+ * + *
+ * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.datamanager.v1.UserData,
+ com.google.ads.datamanager.v1.UserData.Builder,
+ com.google.ads.datamanager.v1.UserDataOrBuilder>
+ internalGetUserDataFieldBuilder() {
+ if (userDataBuilder_ == null) {
+ userDataBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.datamanager.v1.UserData,
+ com.google.ads.datamanager.v1.UserData.Builder,
+ com.google.ads.datamanager.v1.UserDataOrBuilder>(
+ getUserData(), getParentForChildren(), isClean());
+ userData_ = null;
+ }
+ return userDataBuilder_;
+ }
+
+ private com.google.ads.datamanager.v1.DeviceInfo deviceInfo_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.datamanager.v1.DeviceInfo,
+ com.google.ads.datamanager.v1.DeviceInfo.Builder,
+ com.google.ads.datamanager.v1.DeviceInfoOrBuilder>
+ deviceInfoBuilder_;
+
+ /**
+ *
+ *
+ * + * Optional. Information gathered about the device being used when the ad + * event happened. + *+ * + *
+ * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the deviceInfo field is set.
+ */
+ public boolean hasDeviceInfo() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Information gathered about the device being used when the ad + * event happened. + *+ * + *
+ * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The deviceInfo.
+ */
+ public com.google.ads.datamanager.v1.DeviceInfo getDeviceInfo() {
+ if (deviceInfoBuilder_ == null) {
+ return deviceInfo_ == null
+ ? com.google.ads.datamanager.v1.DeviceInfo.getDefaultInstance()
+ : deviceInfo_;
+ } else {
+ return deviceInfoBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Information gathered about the device being used when the ad + * event happened. + *+ * + *
+ * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setDeviceInfo(com.google.ads.datamanager.v1.DeviceInfo value) {
+ if (deviceInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ deviceInfo_ = value;
+ } else {
+ deviceInfoBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Information gathered about the device being used when the ad + * event happened. + *+ * + *
+ * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setDeviceInfo(com.google.ads.datamanager.v1.DeviceInfo.Builder builderForValue) {
+ if (deviceInfoBuilder_ == null) {
+ deviceInfo_ = builderForValue.build();
+ } else {
+ deviceInfoBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Information gathered about the device being used when the ad + * event happened. + *+ * + *
+ * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeDeviceInfo(com.google.ads.datamanager.v1.DeviceInfo value) {
+ if (deviceInfoBuilder_ == null) {
+ if (((bitField0_ & 0x00000080) != 0)
+ && deviceInfo_ != null
+ && deviceInfo_ != com.google.ads.datamanager.v1.DeviceInfo.getDefaultInstance()) {
+ getDeviceInfoBuilder().mergeFrom(value);
+ } else {
+ deviceInfo_ = value;
+ }
+ } else {
+ deviceInfoBuilder_.mergeFrom(value);
+ }
+ if (deviceInfo_ != null) {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Information gathered about the device being used when the ad + * event happened. + *+ * + *
+ * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearDeviceInfo() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ deviceInfo_ = null;
+ if (deviceInfoBuilder_ != null) {
+ deviceInfoBuilder_.dispose();
+ deviceInfoBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Information gathered about the device being used when the ad + * event happened. + *+ * + *
+ * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.ads.datamanager.v1.DeviceInfo.Builder getDeviceInfoBuilder() {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return internalGetDeviceInfoFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Information gathered about the device being used when the ad + * event happened. + *+ * + *
+ * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.ads.datamanager.v1.DeviceInfoOrBuilder getDeviceInfoOrBuilder() {
+ if (deviceInfoBuilder_ != null) {
+ return deviceInfoBuilder_.getMessageOrBuilder();
+ } else {
+ return deviceInfo_ == null
+ ? com.google.ads.datamanager.v1.DeviceInfo.getDefaultInstance()
+ : deviceInfo_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Information gathered about the device being used when the ad + * event happened. + *+ * + *
+ * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.datamanager.v1.DeviceInfo,
+ com.google.ads.datamanager.v1.DeviceInfo.Builder,
+ com.google.ads.datamanager.v1.DeviceInfoOrBuilder>
+ internalGetDeviceInfoFieldBuilder() {
+ if (deviceInfoBuilder_ == null) {
+ deviceInfoBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.datamanager.v1.DeviceInfo,
+ com.google.ads.datamanager.v1.DeviceInfo.Builder,
+ com.google.ads.datamanager.v1.DeviceInfoOrBuilder>(
+ getDeviceInfo(), getParentForChildren(), isClean());
+ deviceInfo_ = null;
+ }
+ return deviceInfoBuilder_;
+ }
+
+ private java.lang.Object mobileDeviceId_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. The device ID of the device that the ad was served to. + *+ * + *
string mobile_device_id = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The mobileDeviceId.
+ */
+ public java.lang.String getMobileDeviceId() {
+ java.lang.Object ref = mobileDeviceId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ mobileDeviceId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The device ID of the device that the ad was served to. + *+ * + *
string mobile_device_id = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for mobileDeviceId.
+ */
+ public com.google.protobuf.ByteString getMobileDeviceIdBytes() {
+ java.lang.Object ref = mobileDeviceId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ mobileDeviceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The device ID of the device that the ad was served to. + *+ * + *
string mobile_device_id = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The mobileDeviceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMobileDeviceId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ mobileDeviceId_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The device ID of the device that the ad was served to. + *+ * + *
string mobile_device_id = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMobileDeviceId() {
+ mobileDeviceId_ = getDefaultInstance().getMobileDeviceId();
+ bitField0_ = (bitField0_ & ~0x00000100);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The device ID of the device that the ad was served to. + *+ * + *
string mobile_device_id = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for mobileDeviceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMobileDeviceIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ mobileDeviceId_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object campaignId_ = "";
+
+ /**
+ *
+ *
+ * + * Required. The ID of the associated campaign. + *+ * + *
string campaign_id = 10 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The campaignId.
+ */
+ public java.lang.String getCampaignId() {
+ java.lang.Object ref = campaignId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ campaignId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The ID of the associated campaign. + *+ * + *
string campaign_id = 10 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for campaignId.
+ */
+ public com.google.protobuf.ByteString getCampaignIdBytes() {
+ java.lang.Object ref = campaignId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ campaignId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The ID of the associated campaign. + *+ * + *
string campaign_id = 10 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The campaignId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCampaignId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ campaignId_ = value;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The ID of the associated campaign. + *+ * + *
string campaign_id = 10 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCampaignId() {
+ campaignId_ = getDefaultInstance().getCampaignId();
+ bitField0_ = (bitField0_ & ~0x00000200);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The ID of the associated campaign. + *+ * + *
string campaign_id = 10 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for campaignId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCampaignIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ campaignId_ = value;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object campaignName_ = "";
+
+ /**
+ *
+ *
+ * + * Required. The name of the associated campaign. + *+ * + *
string campaign_name = 11 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The campaignName.
+ */
+ public java.lang.String getCampaignName() {
+ java.lang.Object ref = campaignName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ campaignName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The name of the associated campaign. + *+ * + *
string campaign_name = 11 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for campaignName.
+ */
+ public com.google.protobuf.ByteString getCampaignNameBytes() {
+ java.lang.Object ref = campaignName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ campaignName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The name of the associated campaign. + *+ * + *
string campaign_name = 11 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The campaignName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCampaignName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ campaignName_ = value;
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The name of the associated campaign. + *+ * + *
string campaign_name = 11 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCampaignName() {
+ campaignName_ = getDefaultInstance().getCampaignName();
+ bitField0_ = (bitField0_ & ~0x00000400);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The name of the associated campaign. + *+ * + *
string campaign_name = 11 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for campaignName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCampaignNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ campaignName_ = value;
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object adGroupId_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. The ID of the associated ad group. + *+ * + *
string ad_group_id = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The adGroupId.
+ */
+ public java.lang.String getAdGroupId() {
+ java.lang.Object ref = adGroupId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ adGroupId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The ID of the associated ad group. + *+ * + *
string ad_group_id = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for adGroupId.
+ */
+ public com.google.protobuf.ByteString getAdGroupIdBytes() {
+ java.lang.Object ref = adGroupId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ adGroupId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The ID of the associated ad group. + *+ * + *
string ad_group_id = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The adGroupId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdGroupId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ adGroupId_ = value;
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The ID of the associated ad group. + *+ * + *
string ad_group_id = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAdGroupId() {
+ adGroupId_ = getDefaultInstance().getAdGroupId();
+ bitField0_ = (bitField0_ & ~0x00000800);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The ID of the associated ad group. + *+ * + *
string ad_group_id = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for adGroupId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdGroupIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ adGroupId_ = value;
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object adId_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. The ID of the associated ad within the group. + *+ * + *
string ad_id = 13 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The adId.
+ */
+ public java.lang.String getAdId() {
+ java.lang.Object ref = adId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ adId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The ID of the associated ad within the group. + *+ * + *
string ad_id = 13 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for adId.
+ */
+ public com.google.protobuf.ByteString getAdIdBytes() {
+ java.lang.Object ref = adId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ adId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The ID of the associated ad within the group. + *+ * + *
string ad_id = 13 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The adId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ adId_ = value;
+ bitField0_ |= 0x00001000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The ID of the associated ad within the group. + *+ * + *
string ad_id = 13 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAdId() {
+ adId_ = getDefaultInstance().getAdId();
+ bitField0_ = (bitField0_ & ~0x00001000);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The ID of the associated ad within the group. + *+ * + *
string ad_id = 13 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for adId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ adId_ = value;
+ bitField0_ |= 0x00001000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for ad type. + *+ * + *
.google.ads.datamanager.v1.AdType ad_type = 14;
+ *
+ * @return Whether the adType field is set.
+ */
+ @java.lang.Override
+ public boolean hasAdType() {
+ return adTypeOneofCase_ == 14;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for ad type. + *+ * + *
.google.ads.datamanager.v1.AdType ad_type = 14;
+ *
+ * @return The enum numeric value on the wire for adType.
+ */
+ @java.lang.Override
+ public int getAdTypeValue() {
+ if (adTypeOneofCase_ == 14) {
+ return ((java.lang.Integer) adTypeOneof_).intValue();
+ }
+ return 0;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for ad type. + *+ * + *
.google.ads.datamanager.v1.AdType ad_type = 14;
+ *
+ * @param value The enum numeric value on the wire for adType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdTypeValue(int value) {
+ adTypeOneofCase_ = 14;
+ adTypeOneof_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for ad type. + *+ * + *
.google.ads.datamanager.v1.AdType ad_type = 14;
+ *
+ * @return The adType.
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.AdType getAdType() {
+ if (adTypeOneofCase_ == 14) {
+ com.google.ads.datamanager.v1.AdType result =
+ com.google.ads.datamanager.v1.AdType.forNumber((java.lang.Integer) adTypeOneof_);
+ return result == null ? com.google.ads.datamanager.v1.AdType.UNRECOGNIZED : result;
+ }
+ return com.google.ads.datamanager.v1.AdType.AD_TYPE_UNSPECIFIED;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for ad type. + *+ * + *
.google.ads.datamanager.v1.AdType ad_type = 14;
+ *
+ * @param value The adType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdType(com.google.ads.datamanager.v1.AdType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ adTypeOneofCase_ = 14;
+ adTypeOneof_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for ad type. + *+ * + *
.google.ads.datamanager.v1.AdType ad_type = 14;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAdType() {
+ if (adTypeOneofCase_ == 14) {
+ adTypeOneofCase_ = 0;
+ adTypeOneof_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * String value for ad type. + *+ * + *
string ad_type_string = 15;
+ *
+ * @return Whether the adTypeString field is set.
+ */
+ @java.lang.Override
+ public boolean hasAdTypeString() {
+ return adTypeOneofCase_ == 15;
+ }
+
+ /**
+ *
+ *
+ * + * String value for ad type. + *+ * + *
string ad_type_string = 15;
+ *
+ * @return The adTypeString.
+ */
+ @java.lang.Override
+ public java.lang.String getAdTypeString() {
+ java.lang.Object ref = "";
+ if (adTypeOneofCase_ == 15) {
+ ref = adTypeOneof_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (adTypeOneofCase_ == 15) {
+ adTypeOneof_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * String value for ad type. + *+ * + *
string ad_type_string = 15;
+ *
+ * @return The bytes for adTypeString.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAdTypeStringBytes() {
+ java.lang.Object ref = "";
+ if (adTypeOneofCase_ == 15) {
+ ref = adTypeOneof_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (adTypeOneofCase_ == 15) {
+ adTypeOneof_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * String value for ad type. + *+ * + *
string ad_type_string = 15;
+ *
+ * @param value The adTypeString to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdTypeString(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ adTypeOneofCase_ = 15;
+ adTypeOneof_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * String value for ad type. + *+ * + *
string ad_type_string = 15;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAdTypeString() {
+ if (adTypeOneofCase_ == 15) {
+ adTypeOneofCase_ = 0;
+ adTypeOneof_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * String value for ad type. + *+ * + *
string ad_type_string = 15;
+ *
+ * @param value The bytes for adTypeString to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdTypeStringBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ adTypeOneofCase_ = 15;
+ adTypeOneof_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for ad format. + *+ * + *
.google.ads.datamanager.v1.AdFormat ad_format = 16;
+ *
+ * @return Whether the adFormat field is set.
+ */
+ @java.lang.Override
+ public boolean hasAdFormat() {
+ return adFormatOneofCase_ == 16;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for ad format. + *+ * + *
.google.ads.datamanager.v1.AdFormat ad_format = 16;
+ *
+ * @return The enum numeric value on the wire for adFormat.
+ */
+ @java.lang.Override
+ public int getAdFormatValue() {
+ if (adFormatOneofCase_ == 16) {
+ return ((java.lang.Integer) adFormatOneof_).intValue();
+ }
+ return 0;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for ad format. + *+ * + *
.google.ads.datamanager.v1.AdFormat ad_format = 16;
+ *
+ * @param value The enum numeric value on the wire for adFormat to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdFormatValue(int value) {
+ adFormatOneofCase_ = 16;
+ adFormatOneof_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for ad format. + *+ * + *
.google.ads.datamanager.v1.AdFormat ad_format = 16;
+ *
+ * @return The adFormat.
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.AdFormat getAdFormat() {
+ if (adFormatOneofCase_ == 16) {
+ com.google.ads.datamanager.v1.AdFormat result =
+ com.google.ads.datamanager.v1.AdFormat.forNumber((java.lang.Integer) adFormatOneof_);
+ return result == null ? com.google.ads.datamanager.v1.AdFormat.UNRECOGNIZED : result;
+ }
+ return com.google.ads.datamanager.v1.AdFormat.AD_FORMAT_UNSPECIFIED;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for ad format. + *+ * + *
.google.ads.datamanager.v1.AdFormat ad_format = 16;
+ *
+ * @param value The adFormat to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdFormat(com.google.ads.datamanager.v1.AdFormat value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ adFormatOneofCase_ = 16;
+ adFormatOneof_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for ad format. + *+ * + *
.google.ads.datamanager.v1.AdFormat ad_format = 16;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAdFormat() {
+ if (adFormatOneofCase_ == 16) {
+ adFormatOneofCase_ = 0;
+ adFormatOneof_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * String value for ad format. + *+ * + *
string ad_format_string = 17;
+ *
+ * @return Whether the adFormatString field is set.
+ */
+ @java.lang.Override
+ public boolean hasAdFormatString() {
+ return adFormatOneofCase_ == 17;
+ }
+
+ /**
+ *
+ *
+ * + * String value for ad format. + *+ * + *
string ad_format_string = 17;
+ *
+ * @return The adFormatString.
+ */
+ @java.lang.Override
+ public java.lang.String getAdFormatString() {
+ java.lang.Object ref = "";
+ if (adFormatOneofCase_ == 17) {
+ ref = adFormatOneof_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (adFormatOneofCase_ == 17) {
+ adFormatOneof_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * String value for ad format. + *+ * + *
string ad_format_string = 17;
+ *
+ * @return The bytes for adFormatString.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAdFormatStringBytes() {
+ java.lang.Object ref = "";
+ if (adFormatOneofCase_ == 17) {
+ ref = adFormatOneof_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (adFormatOneofCase_ == 17) {
+ adFormatOneof_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * String value for ad format. + *+ * + *
string ad_format_string = 17;
+ *
+ * @param value The adFormatString to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdFormatString(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ adFormatOneofCase_ = 17;
+ adFormatOneof_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * String value for ad format. + *+ * + *
string ad_format_string = 17;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAdFormatString() {
+ if (adFormatOneofCase_ == 17) {
+ adFormatOneofCase_ = 0;
+ adFormatOneof_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * String value for ad format. + *+ * + *
string ad_format_string = 17;
+ *
+ * @param value The bytes for adFormatString to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdFormatStringBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ adFormatOneofCase_ = 17;
+ adFormatOneof_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for ad placement. + *+ * + *
.google.ads.datamanager.v1.AdPlacement ad_placement = 18;
+ *
+ * @return Whether the adPlacement field is set.
+ */
+ @java.lang.Override
+ public boolean hasAdPlacement() {
+ return adPlacementOneofCase_ == 18;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for ad placement. + *+ * + *
.google.ads.datamanager.v1.AdPlacement ad_placement = 18;
+ *
+ * @return The enum numeric value on the wire for adPlacement.
+ */
+ @java.lang.Override
+ public int getAdPlacementValue() {
+ if (adPlacementOneofCase_ == 18) {
+ return ((java.lang.Integer) adPlacementOneof_).intValue();
+ }
+ return 0;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for ad placement. + *+ * + *
.google.ads.datamanager.v1.AdPlacement ad_placement = 18;
+ *
+ * @param value The enum numeric value on the wire for adPlacement to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdPlacementValue(int value) {
+ adPlacementOneofCase_ = 18;
+ adPlacementOneof_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for ad placement. + *+ * + *
.google.ads.datamanager.v1.AdPlacement ad_placement = 18;
+ *
+ * @return The adPlacement.
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.AdPlacement getAdPlacement() {
+ if (adPlacementOneofCase_ == 18) {
+ com.google.ads.datamanager.v1.AdPlacement result =
+ com.google.ads.datamanager.v1.AdPlacement.forNumber(
+ (java.lang.Integer) adPlacementOneof_);
+ return result == null ? com.google.ads.datamanager.v1.AdPlacement.UNRECOGNIZED : result;
+ }
+ return com.google.ads.datamanager.v1.AdPlacement.AD_PLACEMENT_UNSPECIFIED;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for ad placement. + *+ * + *
.google.ads.datamanager.v1.AdPlacement ad_placement = 18;
+ *
+ * @param value The adPlacement to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdPlacement(com.google.ads.datamanager.v1.AdPlacement value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ adPlacementOneofCase_ = 18;
+ adPlacementOneof_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for ad placement. + *+ * + *
.google.ads.datamanager.v1.AdPlacement ad_placement = 18;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAdPlacement() {
+ if (adPlacementOneofCase_ == 18) {
+ adPlacementOneofCase_ = 0;
+ adPlacementOneof_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * String value for ad placement. + *+ * + *
string ad_placement_string = 19;
+ *
+ * @return Whether the adPlacementString field is set.
+ */
+ @java.lang.Override
+ public boolean hasAdPlacementString() {
+ return adPlacementOneofCase_ == 19;
+ }
+
+ /**
+ *
+ *
+ * + * String value for ad placement. + *+ * + *
string ad_placement_string = 19;
+ *
+ * @return The adPlacementString.
+ */
+ @java.lang.Override
+ public java.lang.String getAdPlacementString() {
+ java.lang.Object ref = "";
+ if (adPlacementOneofCase_ == 19) {
+ ref = adPlacementOneof_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (adPlacementOneofCase_ == 19) {
+ adPlacementOneof_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * String value for ad placement. + *+ * + *
string ad_placement_string = 19;
+ *
+ * @return The bytes for adPlacementString.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAdPlacementStringBytes() {
+ java.lang.Object ref = "";
+ if (adPlacementOneofCase_ == 19) {
+ ref = adPlacementOneof_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (adPlacementOneofCase_ == 19) {
+ adPlacementOneof_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * String value for ad placement. + *+ * + *
string ad_placement_string = 19;
+ *
+ * @param value The adPlacementString to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdPlacementString(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ adPlacementOneofCase_ = 19;
+ adPlacementOneof_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * String value for ad placement. + *+ * + *
string ad_placement_string = 19;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAdPlacementString() {
+ if (adPlacementOneofCase_ == 19) {
+ adPlacementOneofCase_ = 0;
+ adPlacementOneof_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * String value for ad placement. + *+ * + *
string ad_placement_string = 19;
+ *
+ * @param value The bytes for adPlacementString to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdPlacementStringBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ adPlacementOneofCase_ = 19;
+ adPlacementOneof_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int adHeight_;
+
+ /**
+ *
+ *
+ * + * Optional. The height of the ad in pixels. + *+ * + *
int32 ad_height = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The adHeight.
+ */
+ @java.lang.Override
+ public int getAdHeight() {
+ return adHeight_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The height of the ad in pixels. + *+ * + *
int32 ad_height = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The adHeight to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdHeight(int value) {
+
+ adHeight_ = value;
+ bitField0_ |= 0x00080000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The height of the ad in pixels. + *+ * + *
int32 ad_height = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAdHeight() {
+ bitField0_ = (bitField0_ & ~0x00080000);
+ adHeight_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int adWidth_;
+
+ /**
+ *
+ *
+ * + * Optional. The width of the ad in pixels. + *+ * + *
int32 ad_width = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The adWidth.
+ */
+ @java.lang.Override
+ public int getAdWidth() {
+ return adWidth_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The width of the ad in pixels. + *+ * + *
int32 ad_width = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The adWidth to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdWidth(int value) {
+
+ adWidth_ = value;
+ bitField0_ |= 0x00100000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The width of the ad in pixels. + *+ * + *
int32 ad_width = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAdWidth() {
+ bitField0_ = (bitField0_ & ~0x00100000);
+ adWidth_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object regionCode_ = "";
+
+ /**
+ *
+ *
+ * + * Required. The ISO 3166-2 country plus subdivision. + *+ * + *
string region_code = 22 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The regionCode.
+ */
+ public java.lang.String getRegionCode() {
+ java.lang.Object ref = regionCode_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ regionCode_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The ISO 3166-2 country plus subdivision. + *+ * + *
string region_code = 22 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for regionCode.
+ */
+ public com.google.protobuf.ByteString getRegionCodeBytes() {
+ java.lang.Object ref = regionCode_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ regionCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The ISO 3166-2 country plus subdivision. + *+ * + *
string region_code = 22 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The regionCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRegionCode(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ regionCode_ = value;
+ bitField0_ |= 0x00200000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The ISO 3166-2 country plus subdivision. + *+ * + *
string region_code = 22 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRegionCode() {
+ regionCode_ = getDefaultInstance().getRegionCode();
+ bitField0_ = (bitField0_ & ~0x00200000);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The ISO 3166-2 country plus subdivision. + *+ * + *
string region_code = 22 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for regionCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ regionCode_ = value;
+ bitField0_ |= 0x00200000;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object source_ = "";
+
+ /**
+ *
+ *
+ * + * Required. The platform source of the ad, akin to the Google Analytics + * source. + *+ * + *
string source = 23 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The source.
+ */
+ public java.lang.String getSource() {
+ java.lang.Object ref = source_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ source_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The platform source of the ad, akin to the Google Analytics + * source. + *+ * + *
string source = 23 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for source.
+ */
+ public com.google.protobuf.ByteString getSourceBytes() {
+ java.lang.Object ref = source_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ source_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The platform source of the ad, akin to the Google Analytics + * source. + *+ * + *
string source = 23 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The source to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSource(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ source_ = value;
+ bitField0_ |= 0x00400000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The platform source of the ad, akin to the Google Analytics + * source. + *+ * + *
string source = 23 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSource() {
+ source_ = getDefaultInstance().getSource();
+ bitField0_ = (bitField0_ & ~0x00400000);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The platform source of the ad, akin to the Google Analytics + * source. + *+ * + *
string source = 23 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for source to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSourceBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ source_ = value;
+ bitField0_ |= 0x00400000;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object medium_ = "";
+
+ /**
+ *
+ *
+ * + * Required. The medium of the ad, akin to the Google Analytics medium. + *+ * + *
string medium = 24 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The medium.
+ */
+ public java.lang.String getMedium() {
+ java.lang.Object ref = medium_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ medium_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The medium of the ad, akin to the Google Analytics medium. + *+ * + *
string medium = 24 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for medium.
+ */
+ public com.google.protobuf.ByteString getMediumBytes() {
+ java.lang.Object ref = medium_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ medium_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The medium of the ad, akin to the Google Analytics medium. + *+ * + *
string medium = 24 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The medium to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMedium(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ medium_ = value;
+ bitField0_ |= 0x00800000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The medium of the ad, akin to the Google Analytics medium. + *+ * + *
string medium = 24 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMedium() {
+ medium_ = getDefaultInstance().getMedium();
+ bitField0_ = (bitField0_ & ~0x00800000);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The medium of the ad, akin to the Google Analytics medium. + *+ * + *
string medium = 24 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for medium to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMediumBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ medium_ = value;
+ bitField0_ |= 0x00800000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for targeting type. + *+ * + *
.google.ads.datamanager.v1.TargetingType targeting_type = 25;
+ *
+ * @return Whether the targetingType field is set.
+ */
+ @java.lang.Override
+ public boolean hasTargetingType() {
+ return targetingTypeOneofCase_ == 25;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for targeting type. + *+ * + *
.google.ads.datamanager.v1.TargetingType targeting_type = 25;
+ *
+ * @return The enum numeric value on the wire for targetingType.
+ */
+ @java.lang.Override
+ public int getTargetingTypeValue() {
+ if (targetingTypeOneofCase_ == 25) {
+ return ((java.lang.Integer) targetingTypeOneof_).intValue();
+ }
+ return 0;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for targeting type. + *+ * + *
.google.ads.datamanager.v1.TargetingType targeting_type = 25;
+ *
+ * @param value The enum numeric value on the wire for targetingType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTargetingTypeValue(int value) {
+ targetingTypeOneofCase_ = 25;
+ targetingTypeOneof_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for targeting type. + *+ * + *
.google.ads.datamanager.v1.TargetingType targeting_type = 25;
+ *
+ * @return The targetingType.
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.TargetingType getTargetingType() {
+ if (targetingTypeOneofCase_ == 25) {
+ com.google.ads.datamanager.v1.TargetingType result =
+ com.google.ads.datamanager.v1.TargetingType.forNumber(
+ (java.lang.Integer) targetingTypeOneof_);
+ return result == null ? com.google.ads.datamanager.v1.TargetingType.UNRECOGNIZED : result;
+ }
+ return com.google.ads.datamanager.v1.TargetingType.TARGETING_TYPE_UNSPECIFIED;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for targeting type. + *+ * + *
.google.ads.datamanager.v1.TargetingType targeting_type = 25;
+ *
+ * @param value The targetingType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTargetingType(com.google.ads.datamanager.v1.TargetingType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ targetingTypeOneofCase_ = 25;
+ targetingTypeOneof_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for targeting type. + *+ * + *
.google.ads.datamanager.v1.TargetingType targeting_type = 25;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTargetingType() {
+ if (targetingTypeOneofCase_ == 25) {
+ targetingTypeOneofCase_ = 0;
+ targetingTypeOneof_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * String value for targeting type. + *+ * + *
string targeting_type_string = 26;
+ *
+ * @return Whether the targetingTypeString field is set.
+ */
+ @java.lang.Override
+ public boolean hasTargetingTypeString() {
+ return targetingTypeOneofCase_ == 26;
+ }
+
+ /**
+ *
+ *
+ * + * String value for targeting type. + *+ * + *
string targeting_type_string = 26;
+ *
+ * @return The targetingTypeString.
+ */
+ @java.lang.Override
+ public java.lang.String getTargetingTypeString() {
+ java.lang.Object ref = "";
+ if (targetingTypeOneofCase_ == 26) {
+ ref = targetingTypeOneof_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (targetingTypeOneofCase_ == 26) {
+ targetingTypeOneof_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * String value for targeting type. + *+ * + *
string targeting_type_string = 26;
+ *
+ * @return The bytes for targetingTypeString.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTargetingTypeStringBytes() {
+ java.lang.Object ref = "";
+ if (targetingTypeOneofCase_ == 26) {
+ ref = targetingTypeOneof_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (targetingTypeOneofCase_ == 26) {
+ targetingTypeOneof_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * String value for targeting type. + *+ * + *
string targeting_type_string = 26;
+ *
+ * @param value The targetingTypeString to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTargetingTypeString(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ targetingTypeOneofCase_ = 26;
+ targetingTypeOneof_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * String value for targeting type. + *+ * + *
string targeting_type_string = 26;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTargetingTypeString() {
+ if (targetingTypeOneofCase_ == 26) {
+ targetingTypeOneofCase_ = 0;
+ targetingTypeOneof_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * String value for targeting type. + *+ * + *
string targeting_type_string = 26;
+ *
+ * @param value The bytes for targetingTypeString to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTargetingTypeStringBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ targetingTypeOneofCase_ = 26;
+ targetingTypeOneof_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for platform type. + *+ * + *
.google.ads.datamanager.v1.PlatformType platform_type = 27;
+ *
+ * @return Whether the platformType field is set.
+ */
+ @java.lang.Override
+ public boolean hasPlatformType() {
+ return platformTypeOneofCase_ == 27;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for platform type. + *+ * + *
.google.ads.datamanager.v1.PlatformType platform_type = 27;
+ *
+ * @return The enum numeric value on the wire for platformType.
+ */
+ @java.lang.Override
+ public int getPlatformTypeValue() {
+ if (platformTypeOneofCase_ == 27) {
+ return ((java.lang.Integer) platformTypeOneof_).intValue();
+ }
+ return 0;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for platform type. + *+ * + *
.google.ads.datamanager.v1.PlatformType platform_type = 27;
+ *
+ * @param value The enum numeric value on the wire for platformType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPlatformTypeValue(int value) {
+ platformTypeOneofCase_ = 27;
+ platformTypeOneof_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for platform type. + *+ * + *
.google.ads.datamanager.v1.PlatformType platform_type = 27;
+ *
+ * @return The platformType.
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.PlatformType getPlatformType() {
+ if (platformTypeOneofCase_ == 27) {
+ com.google.ads.datamanager.v1.PlatformType result =
+ com.google.ads.datamanager.v1.PlatformType.forNumber(
+ (java.lang.Integer) platformTypeOneof_);
+ return result == null ? com.google.ads.datamanager.v1.PlatformType.UNRECOGNIZED : result;
+ }
+ return com.google.ads.datamanager.v1.PlatformType.PLATFORM_TYPE_UNSPECIFIED;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for platform type. + *+ * + *
.google.ads.datamanager.v1.PlatformType platform_type = 27;
+ *
+ * @param value The platformType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPlatformType(com.google.ads.datamanager.v1.PlatformType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ platformTypeOneofCase_ = 27;
+ platformTypeOneof_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for platform type. + *+ * + *
.google.ads.datamanager.v1.PlatformType platform_type = 27;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPlatformType() {
+ if (platformTypeOneofCase_ == 27) {
+ platformTypeOneofCase_ = 0;
+ platformTypeOneof_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * String value for platform type. + *+ * + *
string platform_type_string = 28;
+ *
+ * @return Whether the platformTypeString field is set.
+ */
+ @java.lang.Override
+ public boolean hasPlatformTypeString() {
+ return platformTypeOneofCase_ == 28;
+ }
+
+ /**
+ *
+ *
+ * + * String value for platform type. + *+ * + *
string platform_type_string = 28;
+ *
+ * @return The platformTypeString.
+ */
+ @java.lang.Override
+ public java.lang.String getPlatformTypeString() {
+ java.lang.Object ref = "";
+ if (platformTypeOneofCase_ == 28) {
+ ref = platformTypeOneof_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (platformTypeOneofCase_ == 28) {
+ platformTypeOneof_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * String value for platform type. + *+ * + *
string platform_type_string = 28;
+ *
+ * @return The bytes for platformTypeString.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPlatformTypeStringBytes() {
+ java.lang.Object ref = "";
+ if (platformTypeOneofCase_ == 28) {
+ ref = platformTypeOneof_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (platformTypeOneofCase_ == 28) {
+ platformTypeOneof_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * String value for platform type. + *+ * + *
string platform_type_string = 28;
+ *
+ * @param value The platformTypeString to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPlatformTypeString(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ platformTypeOneofCase_ = 28;
+ platformTypeOneof_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * String value for platform type. + *+ * + *
string platform_type_string = 28;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPlatformTypeString() {
+ if (platformTypeOneofCase_ == 28) {
+ platformTypeOneofCase_ = 0;
+ platformTypeOneof_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * String value for platform type. + *+ * + *
string platform_type_string = 28;
+ *
+ * @param value The bytes for platformTypeString to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPlatformTypeStringBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ platformTypeOneofCase_ = 28;
+ platformTypeOneof_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for platform. + *+ * + *
.google.ads.datamanager.v1.Platform platform = 29;
+ *
+ * @return Whether the platform field is set.
+ */
+ @java.lang.Override
+ public boolean hasPlatform() {
+ return platformOneofCase_ == 29;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for platform. + *+ * + *
.google.ads.datamanager.v1.Platform platform = 29;
+ *
+ * @return The enum numeric value on the wire for platform.
+ */
+ @java.lang.Override
+ public int getPlatformValue() {
+ if (platformOneofCase_ == 29) {
+ return ((java.lang.Integer) platformOneof_).intValue();
+ }
+ return 0;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for platform. + *+ * + *
.google.ads.datamanager.v1.Platform platform = 29;
+ *
+ * @param value The enum numeric value on the wire for platform to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPlatformValue(int value) {
+ platformOneofCase_ = 29;
+ platformOneof_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for platform. + *+ * + *
.google.ads.datamanager.v1.Platform platform = 29;
+ *
+ * @return The platform.
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.Platform getPlatform() {
+ if (platformOneofCase_ == 29) {
+ com.google.ads.datamanager.v1.Platform result =
+ com.google.ads.datamanager.v1.Platform.forNumber((java.lang.Integer) platformOneof_);
+ return result == null ? com.google.ads.datamanager.v1.Platform.UNRECOGNIZED : result;
+ }
+ return com.google.ads.datamanager.v1.Platform.PLATFORM_UNSPECIFIED;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for platform. + *+ * + *
.google.ads.datamanager.v1.Platform platform = 29;
+ *
+ * @param value The platform to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPlatform(com.google.ads.datamanager.v1.Platform value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ platformOneofCase_ = 29;
+ platformOneof_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Enum value for platform. + *+ * + *
.google.ads.datamanager.v1.Platform platform = 29;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPlatform() {
+ if (platformOneofCase_ == 29) {
+ platformOneofCase_ = 0;
+ platformOneof_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * String value for platform. + *+ * + *
string platform_string = 30;
+ *
+ * @return Whether the platformString field is set.
+ */
+ @java.lang.Override
+ public boolean hasPlatformString() {
+ return platformOneofCase_ == 30;
+ }
+
+ /**
+ *
+ *
+ * + * String value for platform. + *+ * + *
string platform_string = 30;
+ *
+ * @return The platformString.
+ */
+ @java.lang.Override
+ public java.lang.String getPlatformString() {
+ java.lang.Object ref = "";
+ if (platformOneofCase_ == 30) {
+ ref = platformOneof_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (platformOneofCase_ == 30) {
+ platformOneof_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * String value for platform. + *+ * + *
string platform_string = 30;
+ *
+ * @return The bytes for platformString.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPlatformStringBytes() {
+ java.lang.Object ref = "";
+ if (platformOneofCase_ == 30) {
+ ref = platformOneof_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (platformOneofCase_ == 30) {
+ platformOneof_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * String value for platform. + *+ * + *
string platform_string = 30;
+ *
+ * @param value The platformString to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPlatformString(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ platformOneofCase_ = 30;
+ platformOneof_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * String value for platform. + *+ * + *
string platform_string = 30;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPlatformString() {
+ if (platformOneofCase_ == 30) {
+ platformOneofCase_ = 0;
+ platformOneof_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * String value for platform. + *+ * + *
string platform_string = 30;
+ *
+ * @param value The bytes for platformString to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPlatformStringBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ platformOneofCase_ = 30;
+ platformOneof_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int attributionHint_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. The partner-assumed attribution status for this ad event. + * + * This acts only as a signal for how the partner assumed attribution played + * out, and does not force an end result in final reports. + *+ * + *
+ * .google.ads.datamanager.v1.AttributionHint attribution_hint = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for attributionHint.
+ */
+ @java.lang.Override
+ public int getAttributionHintValue() {
+ return attributionHint_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The partner-assumed attribution status for this ad event. + * + * This acts only as a signal for how the partner assumed attribution played + * out, and does not force an end result in final reports. + *+ * + *
+ * .google.ads.datamanager.v1.AttributionHint attribution_hint = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for attributionHint to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAttributionHintValue(int value) {
+ attributionHint_ = value;
+ bitField0_ |= 0x40000000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The partner-assumed attribution status for this ad event. + * + * This acts only as a signal for how the partner assumed attribution played + * out, and does not force an end result in final reports. + *+ * + *
+ * .google.ads.datamanager.v1.AttributionHint attribution_hint = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The attributionHint.
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.AttributionHint getAttributionHint() {
+ com.google.ads.datamanager.v1.AttributionHint result =
+ com.google.ads.datamanager.v1.AttributionHint.forNumber(attributionHint_);
+ return result == null ? com.google.ads.datamanager.v1.AttributionHint.UNRECOGNIZED : result;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The partner-assumed attribution status for this ad event. + * + * This acts only as a signal for how the partner assumed attribution played + * out, and does not force an end result in final reports. + *+ * + *
+ * .google.ads.datamanager.v1.AttributionHint attribution_hint = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The attributionHint to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAttributionHint(com.google.ads.datamanager.v1.AttributionHint value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x40000000;
+ attributionHint_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The partner-assumed attribution status for this ad event. + * + * This acts only as a signal for how the partner assumed attribution played + * out, and does not force an end result in final reports. + *+ * + *
+ * .google.ads.datamanager.v1.AttributionHint attribution_hint = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAttributionHint() {
+ bitField0_ = (bitField0_ & ~0x40000000);
+ attributionHint_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.ads.datamanager.v1.ViewabilityInfo viewabilityInfo_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.datamanager.v1.ViewabilityInfo,
+ com.google.ads.datamanager.v1.ViewabilityInfo.Builder,
+ com.google.ads.datamanager.v1.ViewabilityInfoOrBuilder>
+ viewabilityInfoBuilder_;
+
+ /**
+ *
+ *
+ * + * Required. Details of the viewability of the ad served. + *+ * + *
+ * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the viewabilityInfo field is set.
+ */
+ public boolean hasViewabilityInfo() {
+ return ((bitField0_ & 0x80000000) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Required. Details of the viewability of the ad served. + *+ * + *
+ * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The viewabilityInfo.
+ */
+ public com.google.ads.datamanager.v1.ViewabilityInfo getViewabilityInfo() {
+ if (viewabilityInfoBuilder_ == null) {
+ return viewabilityInfo_ == null
+ ? com.google.ads.datamanager.v1.ViewabilityInfo.getDefaultInstance()
+ : viewabilityInfo_;
+ } else {
+ return viewabilityInfoBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. Details of the viewability of the ad served. + *+ * + *
+ * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setViewabilityInfo(com.google.ads.datamanager.v1.ViewabilityInfo value) {
+ if (viewabilityInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ viewabilityInfo_ = value;
+ } else {
+ viewabilityInfoBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x80000000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Details of the viewability of the ad served. + *+ * + *
+ * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setViewabilityInfo(
+ com.google.ads.datamanager.v1.ViewabilityInfo.Builder builderForValue) {
+ if (viewabilityInfoBuilder_ == null) {
+ viewabilityInfo_ = builderForValue.build();
+ } else {
+ viewabilityInfoBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x80000000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Details of the viewability of the ad served. + *+ * + *
+ * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder mergeViewabilityInfo(com.google.ads.datamanager.v1.ViewabilityInfo value) {
+ if (viewabilityInfoBuilder_ == null) {
+ if (((bitField0_ & 0x80000000) != 0)
+ && viewabilityInfo_ != null
+ && viewabilityInfo_
+ != com.google.ads.datamanager.v1.ViewabilityInfo.getDefaultInstance()) {
+ getViewabilityInfoBuilder().mergeFrom(value);
+ } else {
+ viewabilityInfo_ = value;
+ }
+ } else {
+ viewabilityInfoBuilder_.mergeFrom(value);
+ }
+ if (viewabilityInfo_ != null) {
+ bitField0_ |= 0x80000000;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Details of the viewability of the ad served. + *+ * + *
+ * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearViewabilityInfo() {
+ bitField0_ = (bitField0_ & ~0x80000000);
+ viewabilityInfo_ = null;
+ if (viewabilityInfoBuilder_ != null) {
+ viewabilityInfoBuilder_.dispose();
+ viewabilityInfoBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Details of the viewability of the ad served. + *+ * + *
+ * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.ads.datamanager.v1.ViewabilityInfo.Builder getViewabilityInfoBuilder() {
+ bitField0_ |= 0x80000000;
+ onChanged();
+ return internalGetViewabilityInfoFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Required. Details of the viewability of the ad served. + *+ * + *
+ * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.ads.datamanager.v1.ViewabilityInfoOrBuilder getViewabilityInfoOrBuilder() {
+ if (viewabilityInfoBuilder_ != null) {
+ return viewabilityInfoBuilder_.getMessageOrBuilder();
+ } else {
+ return viewabilityInfo_ == null
+ ? com.google.ads.datamanager.v1.ViewabilityInfo.getDefaultInstance()
+ : viewabilityInfo_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. Details of the viewability of the ad served. + *+ * + *
+ * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.datamanager.v1.ViewabilityInfo,
+ com.google.ads.datamanager.v1.ViewabilityInfo.Builder,
+ com.google.ads.datamanager.v1.ViewabilityInfoOrBuilder>
+ internalGetViewabilityInfoFieldBuilder() {
+ if (viewabilityInfoBuilder_ == null) {
+ viewabilityInfoBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.datamanager.v1.ViewabilityInfo,
+ com.google.ads.datamanager.v1.ViewabilityInfo.Builder,
+ com.google.ads.datamanager.v1.ViewabilityInfoOrBuilder>(
+ getViewabilityInfo(), getParentForChildren(), isClean());
+ viewabilityInfo_ = null;
+ }
+ return viewabilityInfoBuilder_;
+ }
+
+ private boolean measurementAllowed_;
+
+ /**
+ *
+ *
+ * + * Optional. Represents if the row is allowed to be used for measurement + * purposes, as governed by applicable privacy laws within regional + * jurisdiction. + *+ * + *
optional bool measurement_allowed = 33 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the measurementAllowed field is set.
+ */
+ @java.lang.Override
+ public boolean hasMeasurementAllowed() {
+ return ((bitField1_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Represents if the row is allowed to be used for measurement + * purposes, as governed by applicable privacy laws within regional + * jurisdiction. + *+ * + *
optional bool measurement_allowed = 33 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The measurementAllowed.
+ */
+ @java.lang.Override
+ public boolean getMeasurementAllowed() {
+ return measurementAllowed_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Represents if the row is allowed to be used for measurement + * purposes, as governed by applicable privacy laws within regional + * jurisdiction. + *+ * + *
optional bool measurement_allowed = 33 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The measurementAllowed to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMeasurementAllowed(boolean value) {
+
+ measurementAllowed_ = value;
+ bitField1_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Represents if the row is allowed to be used for measurement + * purposes, as governed by applicable privacy laws within regional + * jurisdiction. + *+ * + *
optional bool measurement_allowed = 33 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMeasurementAllowed() {
+ bitField1_ = (bitField1_ & ~0x00000001);
+ measurementAllowed_ = false;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.AdEvent)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.AdEvent)
+ private static final com.google.ads.datamanager.v1.AdEvent DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.ads.datamanager.v1.AdEvent();
+ }
+
+ public static com.google.ads.datamanager.v1.AdEvent getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The ID of the advertiser for the ad event. + * + * This must match the ID sent in the linking flow. + *+ * + *
string advertiser_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The advertiserId.
+ */
+ java.lang.String getAdvertiserId();
+
+ /**
+ *
+ *
+ * + * Required. The ID of the advertiser for the ad event. + * + * This must match the ID sent in the linking flow. + *+ * + *
string advertiser_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for advertiserId.
+ */
+ com.google.protobuf.ByteString getAdvertiserIdBytes();
+
+ /**
+ *
+ *
+ * + * Required. The type of the event. + *+ * + *
+ * .google.ads.datamanager.v1.AdEvent.EventType event_type = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The enum numeric value on the wire for eventType.
+ */
+ int getEventTypeValue();
+
+ /**
+ *
+ *
+ * + * Required. The type of the event. + *+ * + *
+ * .google.ads.datamanager.v1.AdEvent.EventType event_type = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The eventType.
+ */
+ com.google.ads.datamanager.v1.AdEvent.EventType getEventType();
+
+ /**
+ *
+ *
+ * + * Enum value for event subtype. + *+ * + *
.google.ads.datamanager.v1.AdEvent.EventSubtype event_subtype = 3;
+ *
+ * @return Whether the eventSubtype field is set.
+ */
+ boolean hasEventSubtype();
+
+ /**
+ *
+ *
+ * + * Enum value for event subtype. + *+ * + *
.google.ads.datamanager.v1.AdEvent.EventSubtype event_subtype = 3;
+ *
+ * @return The enum numeric value on the wire for eventSubtype.
+ */
+ int getEventSubtypeValue();
+
+ /**
+ *
+ *
+ * + * Enum value for event subtype. + *+ * + *
.google.ads.datamanager.v1.AdEvent.EventSubtype event_subtype = 3;
+ *
+ * @return The eventSubtype.
+ */
+ com.google.ads.datamanager.v1.AdEvent.EventSubtype getEventSubtype();
+
+ /**
+ *
+ *
+ * + * String value for event subtype. + *+ * + *
string event_subtype_string = 4;
+ *
+ * @return Whether the eventSubtypeString field is set.
+ */
+ boolean hasEventSubtypeString();
+
+ /**
+ *
+ *
+ * + * String value for event subtype. + *+ * + *
string event_subtype_string = 4;
+ *
+ * @return The eventSubtypeString.
+ */
+ java.lang.String getEventSubtypeString();
+
+ /**
+ *
+ *
+ * + * String value for event subtype. + *+ * + *
string event_subtype_string = 4;
+ *
+ * @return The bytes for eventSubtypeString.
+ */
+ com.google.protobuf.ByteString getEventSubtypeStringBytes();
+
+ /**
+ *
+ *
+ * + * Required. The time the event occurred. + *+ * + *
.google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the timestamp field is set.
+ */
+ boolean hasTimestamp();
+
+ /**
+ *
+ *
+ * + * Required. The time the event occurred. + *+ * + *
.google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The timestamp.
+ */
+ com.google.protobuf.Timestamp getTimestamp();
+
+ /**
+ *
+ *
+ * + * Required. The time the event occurred. + *+ * + *
.google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. An ID created and managed by the caller that uniquely identifies + * this event. + * + * Required if you want to deduplicate ad events that are included + * in multiple requests. Otherwise, this field is optional. + *+ * + *
string event_id = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The eventId.
+ */
+ java.lang.String getEventId();
+
+ /**
+ *
+ *
+ * + * Optional. An ID created and managed by the caller that uniquely identifies + * this event. + * + * Required if you want to deduplicate ad events that are included + * in multiple requests. Otherwise, this field is optional. + *+ * + *
string event_id = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for eventId.
+ */
+ com.google.protobuf.ByteString getEventIdBytes();
+
+ /**
+ *
+ *
+ * + * Optional. Multiple pieces of user-provided data, representing the user the + * event is associated with. + * + * It is possible to provide multiple instances of the same type of data (e.g. + * email address). The more data provided, the more likely a match will be + * found. + *+ * + *
+ * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the userData field is set.
+ */
+ boolean hasUserData();
+
+ /**
+ *
+ *
+ * + * Optional. Multiple pieces of user-provided data, representing the user the + * event is associated with. + * + * It is possible to provide multiple instances of the same type of data (e.g. + * email address). The more data provided, the more likely a match will be + * found. + *+ * + *
+ * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The userData.
+ */
+ com.google.ads.datamanager.v1.UserData getUserData();
+
+ /**
+ *
+ *
+ * + * Optional. Multiple pieces of user-provided data, representing the user the + * event is associated with. + * + * It is possible to provide multiple instances of the same type of data (e.g. + * email address). The more data provided, the more likely a match will be + * found. + *+ * + *
+ * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.ads.datamanager.v1.UserDataOrBuilder getUserDataOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. Information gathered about the device being used when the ad + * event happened. + *+ * + *
+ * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the deviceInfo field is set.
+ */
+ boolean hasDeviceInfo();
+
+ /**
+ *
+ *
+ * + * Optional. Information gathered about the device being used when the ad + * event happened. + *+ * + *
+ * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The deviceInfo.
+ */
+ com.google.ads.datamanager.v1.DeviceInfo getDeviceInfo();
+
+ /**
+ *
+ *
+ * + * Optional. Information gathered about the device being used when the ad + * event happened. + *+ * + *
+ * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.ads.datamanager.v1.DeviceInfoOrBuilder getDeviceInfoOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. The device ID of the device that the ad was served to. + *+ * + *
string mobile_device_id = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The mobileDeviceId.
+ */
+ java.lang.String getMobileDeviceId();
+
+ /**
+ *
+ *
+ * + * Optional. The device ID of the device that the ad was served to. + *+ * + *
string mobile_device_id = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for mobileDeviceId.
+ */
+ com.google.protobuf.ByteString getMobileDeviceIdBytes();
+
+ /**
+ *
+ *
+ * + * Required. The ID of the associated campaign. + *+ * + *
string campaign_id = 10 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The campaignId.
+ */
+ java.lang.String getCampaignId();
+
+ /**
+ *
+ *
+ * + * Required. The ID of the associated campaign. + *+ * + *
string campaign_id = 10 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for campaignId.
+ */
+ com.google.protobuf.ByteString getCampaignIdBytes();
+
+ /**
+ *
+ *
+ * + * Required. The name of the associated campaign. + *+ * + *
string campaign_name = 11 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The campaignName.
+ */
+ java.lang.String getCampaignName();
+
+ /**
+ *
+ *
+ * + * Required. The name of the associated campaign. + *+ * + *
string campaign_name = 11 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for campaignName.
+ */
+ com.google.protobuf.ByteString getCampaignNameBytes();
+
+ /**
+ *
+ *
+ * + * Optional. The ID of the associated ad group. + *+ * + *
string ad_group_id = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The adGroupId.
+ */
+ java.lang.String getAdGroupId();
+
+ /**
+ *
+ *
+ * + * Optional. The ID of the associated ad group. + *+ * + *
string ad_group_id = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for adGroupId.
+ */
+ com.google.protobuf.ByteString getAdGroupIdBytes();
+
+ /**
+ *
+ *
+ * + * Optional. The ID of the associated ad within the group. + *+ * + *
string ad_id = 13 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The adId.
+ */
+ java.lang.String getAdId();
+
+ /**
+ *
+ *
+ * + * Optional. The ID of the associated ad within the group. + *+ * + *
string ad_id = 13 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for adId.
+ */
+ com.google.protobuf.ByteString getAdIdBytes();
+
+ /**
+ *
+ *
+ * + * Enum value for ad type. + *+ * + *
.google.ads.datamanager.v1.AdType ad_type = 14;
+ *
+ * @return Whether the adType field is set.
+ */
+ boolean hasAdType();
+
+ /**
+ *
+ *
+ * + * Enum value for ad type. + *+ * + *
.google.ads.datamanager.v1.AdType ad_type = 14;
+ *
+ * @return The enum numeric value on the wire for adType.
+ */
+ int getAdTypeValue();
+
+ /**
+ *
+ *
+ * + * Enum value for ad type. + *+ * + *
.google.ads.datamanager.v1.AdType ad_type = 14;
+ *
+ * @return The adType.
+ */
+ com.google.ads.datamanager.v1.AdType getAdType();
+
+ /**
+ *
+ *
+ * + * String value for ad type. + *+ * + *
string ad_type_string = 15;
+ *
+ * @return Whether the adTypeString field is set.
+ */
+ boolean hasAdTypeString();
+
+ /**
+ *
+ *
+ * + * String value for ad type. + *+ * + *
string ad_type_string = 15;
+ *
+ * @return The adTypeString.
+ */
+ java.lang.String getAdTypeString();
+
+ /**
+ *
+ *
+ * + * String value for ad type. + *+ * + *
string ad_type_string = 15;
+ *
+ * @return The bytes for adTypeString.
+ */
+ com.google.protobuf.ByteString getAdTypeStringBytes();
+
+ /**
+ *
+ *
+ * + * Enum value for ad format. + *+ * + *
.google.ads.datamanager.v1.AdFormat ad_format = 16;
+ *
+ * @return Whether the adFormat field is set.
+ */
+ boolean hasAdFormat();
+
+ /**
+ *
+ *
+ * + * Enum value for ad format. + *+ * + *
.google.ads.datamanager.v1.AdFormat ad_format = 16;
+ *
+ * @return The enum numeric value on the wire for adFormat.
+ */
+ int getAdFormatValue();
+
+ /**
+ *
+ *
+ * + * Enum value for ad format. + *+ * + *
.google.ads.datamanager.v1.AdFormat ad_format = 16;
+ *
+ * @return The adFormat.
+ */
+ com.google.ads.datamanager.v1.AdFormat getAdFormat();
+
+ /**
+ *
+ *
+ * + * String value for ad format. + *+ * + *
string ad_format_string = 17;
+ *
+ * @return Whether the adFormatString field is set.
+ */
+ boolean hasAdFormatString();
+
+ /**
+ *
+ *
+ * + * String value for ad format. + *+ * + *
string ad_format_string = 17;
+ *
+ * @return The adFormatString.
+ */
+ java.lang.String getAdFormatString();
+
+ /**
+ *
+ *
+ * + * String value for ad format. + *+ * + *
string ad_format_string = 17;
+ *
+ * @return The bytes for adFormatString.
+ */
+ com.google.protobuf.ByteString getAdFormatStringBytes();
+
+ /**
+ *
+ *
+ * + * Enum value for ad placement. + *+ * + *
.google.ads.datamanager.v1.AdPlacement ad_placement = 18;
+ *
+ * @return Whether the adPlacement field is set.
+ */
+ boolean hasAdPlacement();
+
+ /**
+ *
+ *
+ * + * Enum value for ad placement. + *+ * + *
.google.ads.datamanager.v1.AdPlacement ad_placement = 18;
+ *
+ * @return The enum numeric value on the wire for adPlacement.
+ */
+ int getAdPlacementValue();
+
+ /**
+ *
+ *
+ * + * Enum value for ad placement. + *+ * + *
.google.ads.datamanager.v1.AdPlacement ad_placement = 18;
+ *
+ * @return The adPlacement.
+ */
+ com.google.ads.datamanager.v1.AdPlacement getAdPlacement();
+
+ /**
+ *
+ *
+ * + * String value for ad placement. + *+ * + *
string ad_placement_string = 19;
+ *
+ * @return Whether the adPlacementString field is set.
+ */
+ boolean hasAdPlacementString();
+
+ /**
+ *
+ *
+ * + * String value for ad placement. + *+ * + *
string ad_placement_string = 19;
+ *
+ * @return The adPlacementString.
+ */
+ java.lang.String getAdPlacementString();
+
+ /**
+ *
+ *
+ * + * String value for ad placement. + *+ * + *
string ad_placement_string = 19;
+ *
+ * @return The bytes for adPlacementString.
+ */
+ com.google.protobuf.ByteString getAdPlacementStringBytes();
+
+ /**
+ *
+ *
+ * + * Optional. The height of the ad in pixels. + *+ * + *
int32 ad_height = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The adHeight.
+ */
+ int getAdHeight();
+
+ /**
+ *
+ *
+ * + * Optional. The width of the ad in pixels. + *+ * + *
int32 ad_width = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The adWidth.
+ */
+ int getAdWidth();
+
+ /**
+ *
+ *
+ * + * Required. The ISO 3166-2 country plus subdivision. + *+ * + *
string region_code = 22 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The regionCode.
+ */
+ java.lang.String getRegionCode();
+
+ /**
+ *
+ *
+ * + * Required. The ISO 3166-2 country plus subdivision. + *+ * + *
string region_code = 22 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for regionCode.
+ */
+ com.google.protobuf.ByteString getRegionCodeBytes();
+
+ /**
+ *
+ *
+ * + * Required. The platform source of the ad, akin to the Google Analytics + * source. + *+ * + *
string source = 23 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The source.
+ */
+ java.lang.String getSource();
+
+ /**
+ *
+ *
+ * + * Required. The platform source of the ad, akin to the Google Analytics + * source. + *+ * + *
string source = 23 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for source.
+ */
+ com.google.protobuf.ByteString getSourceBytes();
+
+ /**
+ *
+ *
+ * + * Required. The medium of the ad, akin to the Google Analytics medium. + *+ * + *
string medium = 24 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The medium.
+ */
+ java.lang.String getMedium();
+
+ /**
+ *
+ *
+ * + * Required. The medium of the ad, akin to the Google Analytics medium. + *+ * + *
string medium = 24 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for medium.
+ */
+ com.google.protobuf.ByteString getMediumBytes();
+
+ /**
+ *
+ *
+ * + * Enum value for targeting type. + *+ * + *
.google.ads.datamanager.v1.TargetingType targeting_type = 25;
+ *
+ * @return Whether the targetingType field is set.
+ */
+ boolean hasTargetingType();
+
+ /**
+ *
+ *
+ * + * Enum value for targeting type. + *+ * + *
.google.ads.datamanager.v1.TargetingType targeting_type = 25;
+ *
+ * @return The enum numeric value on the wire for targetingType.
+ */
+ int getTargetingTypeValue();
+
+ /**
+ *
+ *
+ * + * Enum value for targeting type. + *+ * + *
.google.ads.datamanager.v1.TargetingType targeting_type = 25;
+ *
+ * @return The targetingType.
+ */
+ com.google.ads.datamanager.v1.TargetingType getTargetingType();
+
+ /**
+ *
+ *
+ * + * String value for targeting type. + *+ * + *
string targeting_type_string = 26;
+ *
+ * @return Whether the targetingTypeString field is set.
+ */
+ boolean hasTargetingTypeString();
+
+ /**
+ *
+ *
+ * + * String value for targeting type. + *+ * + *
string targeting_type_string = 26;
+ *
+ * @return The targetingTypeString.
+ */
+ java.lang.String getTargetingTypeString();
+
+ /**
+ *
+ *
+ * + * String value for targeting type. + *+ * + *
string targeting_type_string = 26;
+ *
+ * @return The bytes for targetingTypeString.
+ */
+ com.google.protobuf.ByteString getTargetingTypeStringBytes();
+
+ /**
+ *
+ *
+ * + * Enum value for platform type. + *+ * + *
.google.ads.datamanager.v1.PlatformType platform_type = 27;
+ *
+ * @return Whether the platformType field is set.
+ */
+ boolean hasPlatformType();
+
+ /**
+ *
+ *
+ * + * Enum value for platform type. + *+ * + *
.google.ads.datamanager.v1.PlatformType platform_type = 27;
+ *
+ * @return The enum numeric value on the wire for platformType.
+ */
+ int getPlatformTypeValue();
+
+ /**
+ *
+ *
+ * + * Enum value for platform type. + *+ * + *
.google.ads.datamanager.v1.PlatformType platform_type = 27;
+ *
+ * @return The platformType.
+ */
+ com.google.ads.datamanager.v1.PlatformType getPlatformType();
+
+ /**
+ *
+ *
+ * + * String value for platform type. + *+ * + *
string platform_type_string = 28;
+ *
+ * @return Whether the platformTypeString field is set.
+ */
+ boolean hasPlatformTypeString();
+
+ /**
+ *
+ *
+ * + * String value for platform type. + *+ * + *
string platform_type_string = 28;
+ *
+ * @return The platformTypeString.
+ */
+ java.lang.String getPlatformTypeString();
+
+ /**
+ *
+ *
+ * + * String value for platform type. + *+ * + *
string platform_type_string = 28;
+ *
+ * @return The bytes for platformTypeString.
+ */
+ com.google.protobuf.ByteString getPlatformTypeStringBytes();
+
+ /**
+ *
+ *
+ * + * Enum value for platform. + *+ * + *
.google.ads.datamanager.v1.Platform platform = 29;
+ *
+ * @return Whether the platform field is set.
+ */
+ boolean hasPlatform();
+
+ /**
+ *
+ *
+ * + * Enum value for platform. + *+ * + *
.google.ads.datamanager.v1.Platform platform = 29;
+ *
+ * @return The enum numeric value on the wire for platform.
+ */
+ int getPlatformValue();
+
+ /**
+ *
+ *
+ * + * Enum value for platform. + *+ * + *
.google.ads.datamanager.v1.Platform platform = 29;
+ *
+ * @return The platform.
+ */
+ com.google.ads.datamanager.v1.Platform getPlatform();
+
+ /**
+ *
+ *
+ * + * String value for platform. + *+ * + *
string platform_string = 30;
+ *
+ * @return Whether the platformString field is set.
+ */
+ boolean hasPlatformString();
+
+ /**
+ *
+ *
+ * + * String value for platform. + *+ * + *
string platform_string = 30;
+ *
+ * @return The platformString.
+ */
+ java.lang.String getPlatformString();
+
+ /**
+ *
+ *
+ * + * String value for platform. + *+ * + *
string platform_string = 30;
+ *
+ * @return The bytes for platformString.
+ */
+ com.google.protobuf.ByteString getPlatformStringBytes();
+
+ /**
+ *
+ *
+ * + * Optional. The partner-assumed attribution status for this ad event. + * + * This acts only as a signal for how the partner assumed attribution played + * out, and does not force an end result in final reports. + *+ * + *
+ * .google.ads.datamanager.v1.AttributionHint attribution_hint = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for attributionHint.
+ */
+ int getAttributionHintValue();
+
+ /**
+ *
+ *
+ * + * Optional. The partner-assumed attribution status for this ad event. + * + * This acts only as a signal for how the partner assumed attribution played + * out, and does not force an end result in final reports. + *+ * + *
+ * .google.ads.datamanager.v1.AttributionHint attribution_hint = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The attributionHint.
+ */
+ com.google.ads.datamanager.v1.AttributionHint getAttributionHint();
+
+ /**
+ *
+ *
+ * + * Required. Details of the viewability of the ad served. + *+ * + *
+ * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the viewabilityInfo field is set.
+ */
+ boolean hasViewabilityInfo();
+
+ /**
+ *
+ *
+ * + * Required. Details of the viewability of the ad served. + *+ * + *
+ * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The viewabilityInfo.
+ */
+ com.google.ads.datamanager.v1.ViewabilityInfo getViewabilityInfo();
+
+ /**
+ *
+ *
+ * + * Required. Details of the viewability of the ad served. + *+ * + *
+ * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.ads.datamanager.v1.ViewabilityInfoOrBuilder getViewabilityInfoOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. Represents if the row is allowed to be used for measurement + * purposes, as governed by applicable privacy laws within regional + * jurisdiction. + *+ * + *
optional bool measurement_allowed = 33 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the measurementAllowed field is set.
+ */
+ boolean hasMeasurementAllowed();
+
+ /**
+ *
+ *
+ * + * Optional. Represents if the row is allowed to be used for measurement + * purposes, as governed by applicable privacy laws within regional + * jurisdiction. + *+ * + *
optional bool measurement_allowed = 33 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The measurementAllowed.
+ */
+ boolean getMeasurementAllowed();
+
+ com.google.ads.datamanager.v1.AdEvent.EventSubtypeOneofCase getEventSubtypeOneofCase();
+
+ com.google.ads.datamanager.v1.AdEvent.AdTypeOneofCase getAdTypeOneofCase();
+
+ com.google.ads.datamanager.v1.AdEvent.AdFormatOneofCase getAdFormatOneofCase();
+
+ com.google.ads.datamanager.v1.AdEvent.AdPlacementOneofCase getAdPlacementOneofCase();
+
+ com.google.ads.datamanager.v1.AdEvent.TargetingTypeOneofCase getTargetingTypeOneofCase();
+
+ com.google.ads.datamanager.v1.AdEvent.PlatformTypeOneofCase getPlatformTypeOneofCase();
+
+ com.google.ads.datamanager.v1.AdEvent.PlatformOneofCase getPlatformOneofCase();
+}
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEventProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEventProto.java
new file mode 100644
index 000000000000..c4af4c7c9a18
--- /dev/null
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEventProto.java
@@ -0,0 +1,270 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/ads/datamanager/v1/ad_event.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.ads.datamanager.v1;
+
+@com.google.protobuf.Generated
+public final class AdEventProto extends com.google.protobuf.GeneratedFile {
+ private AdEventProto() {}
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "AdEventProto");
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_ads_datamanager_v1_AdEvent_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_ads_datamanager_v1_AdEvent_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n"
+ + "(google/ads/datamanager/v1/ad_event.pro"
+ + "to\022\031google.ads.datamanager.v1\032+google/ad"
+ + "s/datamanager/v1/device_info.proto\032)google/ads/datamanager/v1/user_data.proto\0320g"
+ + "oogle/ads/datamanager/v1/viewability_inf"
+ + "o.proto\032\037google/api/field_behavior.proto\032\037google/protobuf/timestamp.proto\"\240\016\n"
+ + "\007AdEvent\022\032\n\r"
+ + "advertiser_id\030\001 \001(\tB\003\340A\002\022E\n\n"
+ + "event_type\030\002"
+ + " \001(\0162,.google.ads.datamanager.v1.AdEvent.EventTypeB\003\340A\002\022H\n\r"
+ + "event_subtype\030\003"
+ + " \001(\0162/.google.ads.datamanager.v1.AdEvent.EventSubtypeH\000\022\036\n"
+ + "\024event_subtype_string\030\004 \001(\tH\000\0222\n"
+ + "\ttimestamp\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\002\022\025\n"
+ + "\010event_id\030\006 \001(\tB\003\340A\001\022;\n"
+ + "\tuser_data\030\007"
+ + " \001(\0132#.google.ads.datamanager.v1.UserDataB\003\340A\001\022?\n"
+ + "\013device_info\030\010"
+ + " \001(\0132%.google.ads.datamanager.v1.DeviceInfoB\003\340A\001\022\035\n"
+ + "\020mobile_device_id\030\t \001(\tB\003\340A\001\022\030\n"
+ + "\013campaign_id\030\n"
+ + " \001(\tB\003\340A\002\022\032\n\r"
+ + "campaign_name\030\013 \001(\tB\003\340A\002\022\030\n"
+ + "\013ad_group_id\030\014 \001(\tB\003\340A\001\022\022\n"
+ + "\005ad_id\030\r"
+ + " \001(\tB\003\340A\001\0224\n"
+ + "\007ad_type\030\016 \001(\0162!.google.ads.datamanager.v1.AdTypeH\001\022\030\n"
+ + "\016ad_type_string\030\017 \001(\tH\001\0228\n"
+ + "\tad_format\030\020 \001(\0162#.google.ads.datamanager.v1.AdFormatH\002\022\032\n"
+ + "\020ad_format_string\030\021 \001(\tH\002\022>\n"
+ + "\014ad_placement\030\022"
+ + " \001(\0162&.google.ads.datamanager.v1.AdPlacementH\003\022\035\n"
+ + "\023ad_placement_string\030\023 \001(\tH\003\022\026\n"
+ + "\tad_height\030\024 \001(\005B\003\340A\001\022\025\n"
+ + "\010ad_width\030\025 \001(\005B\003\340A\001\022\030\n"
+ + "\013region_code\030\026 \001(\tB\003\340A\002\022\023\n"
+ + "\006source\030\027 \001(\tB\003\340A\002\022\023\n"
+ + "\006medium\030\030 \001(\tB\003\340A\002\022B\n"
+ + "\016targeting_type\030\031"
+ + " \001(\0162(.google.ads.datamanager.v1.TargetingTypeH\004\022\037\n"
+ + "\025targeting_type_string\030\032 \001(\tH\004\022@\n\r"
+ + "platform_type\030\033 \001"
+ + "(\0162\'.google.ads.datamanager.v1.PlatformTypeH\005\022\036\n"
+ + "\024platform_type_string\030\034 \001(\tH\005\0227\n"
+ + "\010platform\030\035 \001(\0162#.google.ads.datamanager.v1.PlatformH\006\022\031\n"
+ + "\017platform_string\030\036 \001(\tH\006\022I\n"
+ + "\020attribution_hint\030\037"
+ + " \001(\0162*.google.ads.datamanager.v1.AttributionHintB\003\340A\001\022I\n"
+ + "\020viewability_info\030 "
+ + " \001(\0132*.google.ads.datamanager.v1.ViewabilityInfoB\003\340A\002\022%\n"
+ + "\023measurement_allowed\030! \001(\010B\003\340A\001H\007\210\001\001\"R\n"
+ + "\tEventType\022\032\n"
+ + "\026EVENT_TYPE_UNSPECIFIED\020\000\022\023\n"
+ + "\017EVENT_TYPE_VIEW\020\001\022\024\n"
+ + "\020EVENT_TYPE_CLICK\020\002\"\255\001\n"
+ + "\014EventSubtype\022\035\n"
+ + "\031EVENT_SUBTYPE_UNSPECIFIED\020\000\022\034\n"
+ + "\030EVENT_SUBTYPE_IMPRESSION\020\001\022\036\n"
+ + "\032EVENT_SUBTYPE_ENGAGED_VIEW\020\002\022\036\n"
+ + "\032EVENT_SUBTYPE_ONSITE_CLICK\020\003\022 \n"
+ + "\034EVENT_SUBTYPE_OUTBOUND_CLICK\020\004B\025\n"
+ + "\023event_subtype_oneofB\017\n\r"
+ + "ad_type_oneofB\021\n"
+ + "\017ad_format_oneofB\024\n"
+ + "\022ad_placement_oneofB\026\n"
+ + "\024targeting_type_oneofB\025\n"
+ + "\023platform_type_oneofB\020\n"
+ + "\016platform_oneofB\026\n"
+ + "\024_measurement_allowed*\253\001\n"
+ + "\006AdType\022\027\n"
+ + "\023AD_TYPE_UNSPECIFIED\020\000\022\023\n"
+ + "\017AD_TYPE_DISPLAY\020\001\022\020\n"
+ + "\014AD_TYPE_TEXT\020\002\022\021\n\r"
+ + "AD_TYPE_IMAGE\020\003\022\026\n"
+ + "\022AD_TYPE_RICH_MEDIA\020\004\022\020\n"
+ + "\014AD_TYPE_HTML\020\005\022\021\n\r"
+ + "AD_TYPE_AUDIO\020\006\022\021\n\r"
+ + "AD_TYPE_VIDEO\020\007*\337\003\n"
+ + "\010AdFormat\022\031\n"
+ + "\025AD_FORMAT_UNSPECIFIED\020\000\022\020\n"
+ + "\014AD_FORMAT_AR\020\001\022\023\n"
+ + "\017AD_FORMAT_AUDIO\020\002\022\024\n"
+ + "\020AD_FORMAT_BANNER\020\003\022\024\n"
+ + "\020AD_FORMAT_BUMPER\020\004\022\026\n"
+ + "\022AD_FORMAT_CAROUSEL\020\005\022\030\n"
+ + "\024AD_FORMAT_COLLECTION\020\006\022\023\n"
+ + "\017AD_FORMAT_IMAGE\020\007\022\031\n"
+ + "\025AD_FORMAT_INTERACTIVE\020\010\022\032\n"
+ + "\026AD_FORMAT_INTERSTITIAL\020\t\022\025\n"
+ + "\021AD_FORMAT_IN_FEED\020\n"
+ + "\022\027\n"
+ + "\023AD_FORMAT_IN_STREAM\020\013\022!\n"
+ + "\035AD_FORMAT_IN_STREAM_SKIPPABLE\020\014\022%\n"
+ + "!AD_FORMAT_IN_STREAM_NON_SKIPPABLE\020\r"
+ + "\022\024\n"
+ + "\020AD_FORMAT_NATIVE\020\016\022\024\n"
+ + "\020AD_FORMAT_SHORTS\020\017\022\023\n"
+ + "\017AD_FORMAT_STORY\020\020\022\027\n"
+ + "\023AD_FORMAT_SPONSORED\020\021\022\023\n"
+ + "\017AD_FORMAT_VIDEO\020\022*\217\002\n"
+ + "\013AdPlacement\022\034\n"
+ + "\030AD_PLACEMENT_UNSPECIFIED\020\000\022\031\n"
+ + "\025AD_PLACEMENT_DISCOVER\020\001\022\025\n"
+ + "\021AD_PLACEMENT_FEED\020\002\022\027\n"
+ + "\023AD_PLACEMENT_FOOTER\020\003\022\027\n"
+ + "\023AD_PLACEMENT_HEADER\020\004\022\025\n"
+ + "\021AD_PLACEMENT_HOME\020\005\022\033\n"
+ + "\027AD_PLACEMENT_IN_CONTENT\020\006\022\031\n"
+ + "\025AD_PLACEMENT_PROMOTED\020\007\022\027\n"
+ + "\023AD_PLACEMENT_SEARCH\020\010\022\026\n"
+ + "\022AD_PLACEMENT_STORY\020\t*\237\002\n\r"
+ + "TargetingType\022\036\n"
+ + "\032TARGETING_TYPE_UNSPECIFIED\020\000\022\033\n"
+ + "\027TARGETING_TYPE_AUDIENCE\020\001\022\035\n"
+ + "\031TARGETING_TYPE_CONTEXTUAL\020\002\022\036\n"
+ + "\032TARGETING_TYPE_DEMOGRAPHIC\020\003\022\031\n"
+ + "\025TARGETING_TYPE_DEVICE\020\004\022\026\n"
+ + "\022TARGETING_TYPE_GEO\020\005\022\033\n"
+ + "\027TARGETING_TYPE_INTEREST\020\006\022\"\n"
+ + "\036TARGETING_TYPE_PURCHASE_INTENT\020\007\022\036\n"
+ + "\032TARGETING_TYPE_REMARKETING\020\010*\254\001\n"
+ + "\014PlatformType\022\035\n"
+ + "\031PLATFORM_TYPE_UNSPECIFIED\020\000\022\030\n"
+ + "\024PLATFORM_TYPE_MOBILE\020\001\022\031\n"
+ + "\025PLATFORM_TYPE_DESKTOP\020\002\022\025\n"
+ + "\021PLATFORM_TYPE_CTV\020\003\022\027\n"
+ + "\023PLATFORM_TYPE_PHONE\020\004\022\030\n"
+ + "\024PLATFORM_TYPE_TABLET\020\005*^\n"
+ + "\010Platform\022\030\n"
+ + "\024PLATFORM_UNSPECIFIED\020\000\022\020\n"
+ + "\014PLATFORM_IOS\020\001\022\024\n"
+ + "\020PLATFORM_ANDROID\020\002\022\020\n"
+ + "\014PLATFORM_WEB\020\003*w\n"
+ + "\017AttributionHint\022 \n"
+ + "\034ATTRIBUTION_HINT_UNSPECIFIED\020\000\022\036\n"
+ + "\032ATTRIBUTION_HINT_CONVERTED\020\001\022\"\n"
+ + "\036ATTRIBUTION_HINT_NOT_CONVERTED\020\002B\311\001\n"
+ + "\035com.google.ads.datamanager.v1B\014AdEventProto"
+ + "P\001ZAcloud.google.com/go/datamanager/apiv"
+ + "1/datamanagerpb;datamanagerpb\252\002\031Google.A"
+ + "ds.DataManager.V1\312\002\031Google\\Ads\\DataManag"
+ + "er\\V1\352\002\034Google::Ads::DataManager::V1b\006proto3"
+ };
+ descriptor =
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.ads.datamanager.v1.DeviceInfoProto.getDescriptor(),
+ com.google.ads.datamanager.v1.UserDataProto.getDescriptor(),
+ com.google.ads.datamanager.v1.ViewabilityInfoProto.getDescriptor(),
+ com.google.api.FieldBehaviorProto.getDescriptor(),
+ com.google.protobuf.TimestampProto.getDescriptor(),
+ });
+ internal_static_google_ads_datamanager_v1_AdEvent_descriptor =
+ getDescriptor().getMessageType(0);
+ internal_static_google_ads_datamanager_v1_AdEvent_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_ads_datamanager_v1_AdEvent_descriptor,
+ new java.lang.String[] {
+ "AdvertiserId",
+ "EventType",
+ "EventSubtype",
+ "EventSubtypeString",
+ "Timestamp",
+ "EventId",
+ "UserData",
+ "DeviceInfo",
+ "MobileDeviceId",
+ "CampaignId",
+ "CampaignName",
+ "AdGroupId",
+ "AdId",
+ "AdType",
+ "AdTypeString",
+ "AdFormat",
+ "AdFormatString",
+ "AdPlacement",
+ "AdPlacementString",
+ "AdHeight",
+ "AdWidth",
+ "RegionCode",
+ "Source",
+ "Medium",
+ "TargetingType",
+ "TargetingTypeString",
+ "PlatformType",
+ "PlatformTypeString",
+ "Platform",
+ "PlatformString",
+ "AttributionHint",
+ "ViewabilityInfo",
+ "MeasurementAllowed",
+ "EventSubtypeOneof",
+ "AdTypeOneof",
+ "AdFormatOneof",
+ "AdPlacementOneof",
+ "TargetingTypeOneof",
+ "PlatformTypeOneof",
+ "PlatformOneof",
+ });
+ descriptor.resolveAllFeaturesImmutable();
+ com.google.ads.datamanager.v1.DeviceInfoProto.getDescriptor();
+ com.google.ads.datamanager.v1.UserDataProto.getDescriptor();
+ com.google.ads.datamanager.v1.ViewabilityInfoProto.getDescriptor();
+ com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.protobuf.TimestampProto.getDescriptor();
+ com.google.protobuf.ExtensionRegistry registry =
+ com.google.protobuf.ExtensionRegistry.newInstance();
+ registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+ com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+ descriptor, registry);
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdFormat.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdFormat.java
new file mode 100644
index 000000000000..a582aac4dac3
--- /dev/null
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdFormat.java
@@ -0,0 +1,559 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/ads/datamanager/v1/ad_event.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.ads.datamanager.v1;
+
+/**
+ *
+ *
+ * + * The format of the ad served. + *+ * + * Protobuf enum {@code google.ads.datamanager.v1.AdFormat} + */ +@com.google.protobuf.Generated +public enum AdFormat implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified ad format. + *+ * + *
AD_FORMAT_UNSPECIFIED = 0;
+ */
+ AD_FORMAT_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * AR ad. + *+ * + *
AD_FORMAT_AR = 1;
+ */
+ AD_FORMAT_AR(1),
+ /**
+ *
+ *
+ * + * Audio ad. + *+ * + *
AD_FORMAT_AUDIO = 2;
+ */
+ AD_FORMAT_AUDIO(2),
+ /**
+ *
+ *
+ * + * Banner ad. + *+ * + *
AD_FORMAT_BANNER = 3;
+ */
+ AD_FORMAT_BANNER(3),
+ /**
+ *
+ *
+ * + * Bumper ad. + *+ * + *
AD_FORMAT_BUMPER = 4;
+ */
+ AD_FORMAT_BUMPER(4),
+ /**
+ *
+ *
+ * + * Carousel ad. + *+ * + *
AD_FORMAT_CAROUSEL = 5;
+ */
+ AD_FORMAT_CAROUSEL(5),
+ /**
+ *
+ *
+ * + * Collection ad. + *+ * + *
AD_FORMAT_COLLECTION = 6;
+ */
+ AD_FORMAT_COLLECTION(6),
+ /**
+ *
+ *
+ * + * Image ad. + *+ * + *
AD_FORMAT_IMAGE = 7;
+ */
+ AD_FORMAT_IMAGE(7),
+ /**
+ *
+ *
+ * + * Interactive ad. + *+ * + *
AD_FORMAT_INTERACTIVE = 8;
+ */
+ AD_FORMAT_INTERACTIVE(8),
+ /**
+ *
+ *
+ * + * Interstitial ad. + *+ * + *
AD_FORMAT_INTERSTITIAL = 9;
+ */
+ AD_FORMAT_INTERSTITIAL(9),
+ /**
+ *
+ *
+ * + * In-feed ad. + *+ * + *
AD_FORMAT_IN_FEED = 10;
+ */
+ AD_FORMAT_IN_FEED(10),
+ /**
+ *
+ *
+ * + * In-stream ad. + *+ * + *
AD_FORMAT_IN_STREAM = 11;
+ */
+ AD_FORMAT_IN_STREAM(11),
+ /**
+ *
+ *
+ * + * In-stream skippable ad. + *+ * + *
AD_FORMAT_IN_STREAM_SKIPPABLE = 12;
+ */
+ AD_FORMAT_IN_STREAM_SKIPPABLE(12),
+ /**
+ *
+ *
+ * + * In-stream non-skippable ad. + *+ * + *
AD_FORMAT_IN_STREAM_NON_SKIPPABLE = 13;
+ */
+ AD_FORMAT_IN_STREAM_NON_SKIPPABLE(13),
+ /**
+ *
+ *
+ * + * Native ad. + *+ * + *
AD_FORMAT_NATIVE = 14;
+ */
+ AD_FORMAT_NATIVE(14),
+ /**
+ *
+ *
+ * + * Shorts ad. + *+ * + *
AD_FORMAT_SHORTS = 15;
+ */
+ AD_FORMAT_SHORTS(15),
+ /**
+ *
+ *
+ * + * Story ad. + *+ * + *
AD_FORMAT_STORY = 16;
+ */
+ AD_FORMAT_STORY(16),
+ /**
+ *
+ *
+ * + * Sponsored ad. + *+ * + *
AD_FORMAT_SPONSORED = 17;
+ */
+ AD_FORMAT_SPONSORED(17),
+ /**
+ *
+ *
+ * + * Video ad. + *+ * + *
AD_FORMAT_VIDEO = 18;
+ */
+ AD_FORMAT_VIDEO(18),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "AdFormat");
+ }
+
+ /**
+ *
+ *
+ * + * Unspecified ad format. + *+ * + *
AD_FORMAT_UNSPECIFIED = 0;
+ */
+ public static final int AD_FORMAT_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * AR ad. + *+ * + *
AD_FORMAT_AR = 1;
+ */
+ public static final int AD_FORMAT_AR_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * Audio ad. + *+ * + *
AD_FORMAT_AUDIO = 2;
+ */
+ public static final int AD_FORMAT_AUDIO_VALUE = 2;
+
+ /**
+ *
+ *
+ * + * Banner ad. + *+ * + *
AD_FORMAT_BANNER = 3;
+ */
+ public static final int AD_FORMAT_BANNER_VALUE = 3;
+
+ /**
+ *
+ *
+ * + * Bumper ad. + *+ * + *
AD_FORMAT_BUMPER = 4;
+ */
+ public static final int AD_FORMAT_BUMPER_VALUE = 4;
+
+ /**
+ *
+ *
+ * + * Carousel ad. + *+ * + *
AD_FORMAT_CAROUSEL = 5;
+ */
+ public static final int AD_FORMAT_CAROUSEL_VALUE = 5;
+
+ /**
+ *
+ *
+ * + * Collection ad. + *+ * + *
AD_FORMAT_COLLECTION = 6;
+ */
+ public static final int AD_FORMAT_COLLECTION_VALUE = 6;
+
+ /**
+ *
+ *
+ * + * Image ad. + *+ * + *
AD_FORMAT_IMAGE = 7;
+ */
+ public static final int AD_FORMAT_IMAGE_VALUE = 7;
+
+ /**
+ *
+ *
+ * + * Interactive ad. + *+ * + *
AD_FORMAT_INTERACTIVE = 8;
+ */
+ public static final int AD_FORMAT_INTERACTIVE_VALUE = 8;
+
+ /**
+ *
+ *
+ * + * Interstitial ad. + *+ * + *
AD_FORMAT_INTERSTITIAL = 9;
+ */
+ public static final int AD_FORMAT_INTERSTITIAL_VALUE = 9;
+
+ /**
+ *
+ *
+ * + * In-feed ad. + *+ * + *
AD_FORMAT_IN_FEED = 10;
+ */
+ public static final int AD_FORMAT_IN_FEED_VALUE = 10;
+
+ /**
+ *
+ *
+ * + * In-stream ad. + *+ * + *
AD_FORMAT_IN_STREAM = 11;
+ */
+ public static final int AD_FORMAT_IN_STREAM_VALUE = 11;
+
+ /**
+ *
+ *
+ * + * In-stream skippable ad. + *+ * + *
AD_FORMAT_IN_STREAM_SKIPPABLE = 12;
+ */
+ public static final int AD_FORMAT_IN_STREAM_SKIPPABLE_VALUE = 12;
+
+ /**
+ *
+ *
+ * + * In-stream non-skippable ad. + *+ * + *
AD_FORMAT_IN_STREAM_NON_SKIPPABLE = 13;
+ */
+ public static final int AD_FORMAT_IN_STREAM_NON_SKIPPABLE_VALUE = 13;
+
+ /**
+ *
+ *
+ * + * Native ad. + *+ * + *
AD_FORMAT_NATIVE = 14;
+ */
+ public static final int AD_FORMAT_NATIVE_VALUE = 14;
+
+ /**
+ *
+ *
+ * + * Shorts ad. + *+ * + *
AD_FORMAT_SHORTS = 15;
+ */
+ public static final int AD_FORMAT_SHORTS_VALUE = 15;
+
+ /**
+ *
+ *
+ * + * Story ad. + *+ * + *
AD_FORMAT_STORY = 16;
+ */
+ public static final int AD_FORMAT_STORY_VALUE = 16;
+
+ /**
+ *
+ *
+ * + * Sponsored ad. + *+ * + *
AD_FORMAT_SPONSORED = 17;
+ */
+ public static final int AD_FORMAT_SPONSORED_VALUE = 17;
+
+ /**
+ *
+ *
+ * + * Video ad. + *+ * + *
AD_FORMAT_VIDEO = 18;
+ */
+ public static final int AD_FORMAT_VIDEO_VALUE = 18;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static AdFormat valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static AdFormat forNumber(int value) {
+ switch (value) {
+ case 0:
+ return AD_FORMAT_UNSPECIFIED;
+ case 1:
+ return AD_FORMAT_AR;
+ case 2:
+ return AD_FORMAT_AUDIO;
+ case 3:
+ return AD_FORMAT_BANNER;
+ case 4:
+ return AD_FORMAT_BUMPER;
+ case 5:
+ return AD_FORMAT_CAROUSEL;
+ case 6:
+ return AD_FORMAT_COLLECTION;
+ case 7:
+ return AD_FORMAT_IMAGE;
+ case 8:
+ return AD_FORMAT_INTERACTIVE;
+ case 9:
+ return AD_FORMAT_INTERSTITIAL;
+ case 10:
+ return AD_FORMAT_IN_FEED;
+ case 11:
+ return AD_FORMAT_IN_STREAM;
+ case 12:
+ return AD_FORMAT_IN_STREAM_SKIPPABLE;
+ case 13:
+ return AD_FORMAT_IN_STREAM_NON_SKIPPABLE;
+ case 14:
+ return AD_FORMAT_NATIVE;
+ case 15:
+ return AD_FORMAT_SHORTS;
+ case 16:
+ return AD_FORMAT_STORY;
+ case 17:
+ return AD_FORMAT_SPONSORED;
+ case 18:
+ return AD_FORMAT_VIDEO;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * The placement of the ad served. + *+ * + * Protobuf enum {@code google.ads.datamanager.v1.AdPlacement} + */ +@com.google.protobuf.Generated +public enum AdPlacement implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified ad placement. + *+ * + *
AD_PLACEMENT_UNSPECIFIED = 0;
+ */
+ AD_PLACEMENT_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Discover placement. + *+ * + *
AD_PLACEMENT_DISCOVER = 1;
+ */
+ AD_PLACEMENT_DISCOVER(1),
+ /**
+ *
+ *
+ * + * Feed placement. + *+ * + *
AD_PLACEMENT_FEED = 2;
+ */
+ AD_PLACEMENT_FEED(2),
+ /**
+ *
+ *
+ * + * Footer placement. + *+ * + *
AD_PLACEMENT_FOOTER = 3;
+ */
+ AD_PLACEMENT_FOOTER(3),
+ /**
+ *
+ *
+ * + * Header placement. + *+ * + *
AD_PLACEMENT_HEADER = 4;
+ */
+ AD_PLACEMENT_HEADER(4),
+ /**
+ *
+ *
+ * + * Home placement. + *+ * + *
AD_PLACEMENT_HOME = 5;
+ */
+ AD_PLACEMENT_HOME(5),
+ /**
+ *
+ *
+ * + * In-content placement. + *+ * + *
AD_PLACEMENT_IN_CONTENT = 6;
+ */
+ AD_PLACEMENT_IN_CONTENT(6),
+ /**
+ *
+ *
+ * + * Promoted placement. + *+ * + *
AD_PLACEMENT_PROMOTED = 7;
+ */
+ AD_PLACEMENT_PROMOTED(7),
+ /**
+ *
+ *
+ * + * Search placement. + *+ * + *
AD_PLACEMENT_SEARCH = 8;
+ */
+ AD_PLACEMENT_SEARCH(8),
+ /**
+ *
+ *
+ * + * Story placement. + *+ * + *
AD_PLACEMENT_STORY = 9;
+ */
+ AD_PLACEMENT_STORY(9),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "AdPlacement");
+ }
+
+ /**
+ *
+ *
+ * + * Unspecified ad placement. + *+ * + *
AD_PLACEMENT_UNSPECIFIED = 0;
+ */
+ public static final int AD_PLACEMENT_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * Discover placement. + *+ * + *
AD_PLACEMENT_DISCOVER = 1;
+ */
+ public static final int AD_PLACEMENT_DISCOVER_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * Feed placement. + *+ * + *
AD_PLACEMENT_FEED = 2;
+ */
+ public static final int AD_PLACEMENT_FEED_VALUE = 2;
+
+ /**
+ *
+ *
+ * + * Footer placement. + *+ * + *
AD_PLACEMENT_FOOTER = 3;
+ */
+ public static final int AD_PLACEMENT_FOOTER_VALUE = 3;
+
+ /**
+ *
+ *
+ * + * Header placement. + *+ * + *
AD_PLACEMENT_HEADER = 4;
+ */
+ public static final int AD_PLACEMENT_HEADER_VALUE = 4;
+
+ /**
+ *
+ *
+ * + * Home placement. + *+ * + *
AD_PLACEMENT_HOME = 5;
+ */
+ public static final int AD_PLACEMENT_HOME_VALUE = 5;
+
+ /**
+ *
+ *
+ * + * In-content placement. + *+ * + *
AD_PLACEMENT_IN_CONTENT = 6;
+ */
+ public static final int AD_PLACEMENT_IN_CONTENT_VALUE = 6;
+
+ /**
+ *
+ *
+ * + * Promoted placement. + *+ * + *
AD_PLACEMENT_PROMOTED = 7;
+ */
+ public static final int AD_PLACEMENT_PROMOTED_VALUE = 7;
+
+ /**
+ *
+ *
+ * + * Search placement. + *+ * + *
AD_PLACEMENT_SEARCH = 8;
+ */
+ public static final int AD_PLACEMENT_SEARCH_VALUE = 8;
+
+ /**
+ *
+ *
+ * + * Story placement. + *+ * + *
AD_PLACEMENT_STORY = 9;
+ */
+ public static final int AD_PLACEMENT_STORY_VALUE = 9;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static AdPlacement valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static AdPlacement forNumber(int value) {
+ switch (value) {
+ case 0:
+ return AD_PLACEMENT_UNSPECIFIED;
+ case 1:
+ return AD_PLACEMENT_DISCOVER;
+ case 2:
+ return AD_PLACEMENT_FEED;
+ case 3:
+ return AD_PLACEMENT_FOOTER;
+ case 4:
+ return AD_PLACEMENT_HEADER;
+ case 5:
+ return AD_PLACEMENT_HOME;
+ case 6:
+ return AD_PLACEMENT_IN_CONTENT;
+ case 7:
+ return AD_PLACEMENT_PROMOTED;
+ case 8:
+ return AD_PLACEMENT_SEARCH;
+ case 9:
+ return AD_PLACEMENT_STORY;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * The type of the ad served. + *+ * + * Protobuf enum {@code google.ads.datamanager.v1.AdType} + */ +@com.google.protobuf.Generated +public enum AdType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified ad type. + *+ * + *
AD_TYPE_UNSPECIFIED = 0;
+ */
+ AD_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Display ad. + *+ * + *
AD_TYPE_DISPLAY = 1;
+ */
+ AD_TYPE_DISPLAY(1),
+ /**
+ *
+ *
+ * + * Text ad. + *+ * + *
AD_TYPE_TEXT = 2;
+ */
+ AD_TYPE_TEXT(2),
+ /**
+ *
+ *
+ * + * Image ad. + *+ * + *
AD_TYPE_IMAGE = 3;
+ */
+ AD_TYPE_IMAGE(3),
+ /**
+ *
+ *
+ * + * Rich media ad. + *+ * + *
AD_TYPE_RICH_MEDIA = 4;
+ */
+ AD_TYPE_RICH_MEDIA(4),
+ /**
+ *
+ *
+ * + * HTML ad. + *+ * + *
AD_TYPE_HTML = 5;
+ */
+ AD_TYPE_HTML(5),
+ /**
+ *
+ *
+ * + * Audio ad. + *+ * + *
AD_TYPE_AUDIO = 6;
+ */
+ AD_TYPE_AUDIO(6),
+ /**
+ *
+ *
+ * + * Video ad. + *+ * + *
AD_TYPE_VIDEO = 7;
+ */
+ AD_TYPE_VIDEO(7),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "AdType");
+ }
+
+ /**
+ *
+ *
+ * + * Unspecified ad type. + *+ * + *
AD_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int AD_TYPE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * Display ad. + *+ * + *
AD_TYPE_DISPLAY = 1;
+ */
+ public static final int AD_TYPE_DISPLAY_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * Text ad. + *+ * + *
AD_TYPE_TEXT = 2;
+ */
+ public static final int AD_TYPE_TEXT_VALUE = 2;
+
+ /**
+ *
+ *
+ * + * Image ad. + *+ * + *
AD_TYPE_IMAGE = 3;
+ */
+ public static final int AD_TYPE_IMAGE_VALUE = 3;
+
+ /**
+ *
+ *
+ * + * Rich media ad. + *+ * + *
AD_TYPE_RICH_MEDIA = 4;
+ */
+ public static final int AD_TYPE_RICH_MEDIA_VALUE = 4;
+
+ /**
+ *
+ *
+ * + * HTML ad. + *+ * + *
AD_TYPE_HTML = 5;
+ */
+ public static final int AD_TYPE_HTML_VALUE = 5;
+
+ /**
+ *
+ *
+ * + * Audio ad. + *+ * + *
AD_TYPE_AUDIO = 6;
+ */
+ public static final int AD_TYPE_AUDIO_VALUE = 6;
+
+ /**
+ *
+ *
+ * + * Video ad. + *+ * + *
AD_TYPE_VIDEO = 7;
+ */
+ public static final int AD_TYPE_VIDEO_VALUE = 7;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static AdType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static AdType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return AD_TYPE_UNSPECIFIED;
+ case 1:
+ return AD_TYPE_DISPLAY;
+ case 2:
+ return AD_TYPE_TEXT;
+ case 3:
+ return AD_TYPE_IMAGE;
+ case 4:
+ return AD_TYPE_RICH_MEDIA;
+ case 5:
+ return AD_TYPE_HTML;
+ case 6:
+ return AD_TYPE_AUDIO;
+ case 7:
+ return AD_TYPE_VIDEO;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * The partner-assumed attribution status for this ad event. + *+ * + * Protobuf enum {@code google.ads.datamanager.v1.AttributionHint} + */ +@com.google.protobuf.Generated +public enum AttributionHint implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unknown attribution status. + *+ * + *
ATTRIBUTION_HINT_UNSPECIFIED = 0;
+ */
+ ATTRIBUTION_HINT_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Converted status. + *+ * + *
ATTRIBUTION_HINT_CONVERTED = 1;
+ */
+ ATTRIBUTION_HINT_CONVERTED(1),
+ /**
+ *
+ *
+ * + * Not converted status. + *+ * + *
ATTRIBUTION_HINT_NOT_CONVERTED = 2;
+ */
+ ATTRIBUTION_HINT_NOT_CONVERTED(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "AttributionHint");
+ }
+
+ /**
+ *
+ *
+ * + * Unknown attribution status. + *+ * + *
ATTRIBUTION_HINT_UNSPECIFIED = 0;
+ */
+ public static final int ATTRIBUTION_HINT_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * Converted status. + *+ * + *
ATTRIBUTION_HINT_CONVERTED = 1;
+ */
+ public static final int ATTRIBUTION_HINT_CONVERTED_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * Not converted status. + *+ * + *
ATTRIBUTION_HINT_NOT_CONVERTED = 2;
+ */
+ public static final int ATTRIBUTION_HINT_NOT_CONVERTED_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static AttributionHint valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static AttributionHint forNumber(int value) {
+ switch (value) {
+ case 0:
+ return ATTRIBUTION_HINT_UNSPECIFIED;
+ case 1:
+ return ATTRIBUTION_HINT_CONVERTED;
+ case 2:
+ return ATTRIBUTION_HINT_NOT_CONVERTED;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Information about the coordinator key. + *+ * + * Protobuf type {@code google.ads.datamanager.v1.CoordinatorKeyInfo} + */ +@com.google.protobuf.Generated +public final class CoordinatorKeyInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.CoordinatorKeyInfo) + CoordinatorKeyInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CoordinatorKeyInfo"); + } + + // Use CoordinatorKeyInfo.newBuilder() to construct. + private CoordinatorKeyInfo(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private CoordinatorKeyInfo() { + keyId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.EncryptionInfoProto + .internal_static_google_ads_datamanager_v1_CoordinatorKeyInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.EncryptionInfoProto + .internal_static_google_ads_datamanager_v1_CoordinatorKeyInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.CoordinatorKeyInfo.class, + com.google.ads.datamanager.v1.CoordinatorKeyInfo.Builder.class); + } + + public static final int KEY_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object keyId_ = ""; + + /** + * + * + *
+ * Required. The ID of the chosen coordinator key. + *+ * + *
string key_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The keyId.
+ */
+ @java.lang.Override
+ public java.lang.String getKeyId() {
+ java.lang.Object ref = keyId_;
+ 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();
+ keyId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The ID of the chosen coordinator key. + *+ * + *
string key_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for keyId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getKeyIdBytes() {
+ java.lang.Object ref = keyId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ keyId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(keyId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, keyId_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(keyId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, keyId_);
+ }
+ 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.datamanager.v1.CoordinatorKeyInfo)) {
+ return super.equals(obj);
+ }
+ com.google.ads.datamanager.v1.CoordinatorKeyInfo other =
+ (com.google.ads.datamanager.v1.CoordinatorKeyInfo) obj;
+
+ if (!getKeyId().equals(other.getKeyId())) 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) + KEY_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getKeyId().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.ads.datamanager.v1.CoordinatorKeyInfo parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.datamanager.v1.CoordinatorKeyInfo 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.datamanager.v1.CoordinatorKeyInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.datamanager.v1.CoordinatorKeyInfo 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.datamanager.v1.CoordinatorKeyInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.datamanager.v1.CoordinatorKeyInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.ads.datamanager.v1.CoordinatorKeyInfo parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.datamanager.v1.CoordinatorKeyInfo parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.datamanager.v1.CoordinatorKeyInfo parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.datamanager.v1.CoordinatorKeyInfo parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.datamanager.v1.CoordinatorKeyInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.datamanager.v1.CoordinatorKeyInfo parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.datamanager.v1.CoordinatorKeyInfo 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Information about the coordinator key. + *+ * + * Protobuf type {@code google.ads.datamanager.v1.CoordinatorKeyInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Required. The ID of the chosen coordinator key. + *+ * + *
string key_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The keyId.
+ */
+ public java.lang.String getKeyId() {
+ java.lang.Object ref = keyId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ keyId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The ID of the chosen coordinator key. + *+ * + *
string key_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for keyId.
+ */
+ public com.google.protobuf.ByteString getKeyIdBytes() {
+ java.lang.Object ref = keyId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ keyId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The ID of the chosen coordinator key. + *+ * + *
string key_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The keyId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKeyId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ keyId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The ID of the chosen coordinator key. + *+ * + *
string key_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearKeyId() {
+ keyId_ = getDefaultInstance().getKeyId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The ID of the chosen coordinator key. + *+ * + *
string key_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for keyId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKeyIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ keyId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.CoordinatorKeyInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.CoordinatorKeyInfo)
+ private static final com.google.ads.datamanager.v1.CoordinatorKeyInfo DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.ads.datamanager.v1.CoordinatorKeyInfo();
+ }
+
+ public static com.google.ads.datamanager.v1.CoordinatorKeyInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The ID of the chosen coordinator key. + *+ * + *
string key_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The keyId.
+ */
+ java.lang.String getKeyId();
+
+ /**
+ *
+ *
+ * + * Required. The ID of the chosen coordinator key. + *+ * + *
string key_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for keyId.
+ */
+ com.google.protobuf.ByteString getKeyIdBytes();
+}
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DestinationProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DestinationProto.java
index c727d6c7d905..5e368705cb97 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DestinationProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DestinationProto.java
@@ -72,7 +72,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "amanager.v1.ProductB\002\030\001\022\027\n\naccount_id\030\002 "
+ "\001(\tB\003\340A\002\022P\n\014account_type\030\003 \001(\01625.google."
+ "ads.datamanager.v1.ProductAccount.Accoun"
- + "tTypeB\003\340A\001\"\341\001\n\013AccountType\022\034\n\030ACCOUNT_TY"
+ + "tTypeB\003\340A\002\"\341\001\n\013AccountType\022\034\n\030ACCOUNT_TY"
+ "PE_UNSPECIFIED\020\000\022\016\n\nGOOGLE_ADS\020\001\022\031\n\025DISP"
+ "LAY_VIDEO_PARTNER\020\002\022\034\n\030DISPLAY_VIDEO_ADV"
+ "ERTISER\020\003\022\020\n\014DATA_PARTNER\020\004\022\035\n\031GOOGLE_AN"
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfo.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfo.java
index 351ed6d813c8..4bae5dcb334a 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfo.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfo.java
@@ -154,7 +154,9 @@ public com.google.protobuf.ByteString getUserAgentBytes() {
* more details.
*
*
- * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
+ *
*
* @return The ipAddress.
*/
@@ -188,7 +190,9 @@ public java.lang.String getIpAddress() {
* more details.
*
*
- * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
+ *
*
* @return The bytes for ipAddress.
*/
@@ -1367,7 +1371,9 @@ public Builder setUserAgentBytes(com.google.protobuf.ByteString value) {
* more details.
*
*
- * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
+ *
*
* @return The ipAddress.
*/
@@ -1400,7 +1406,9 @@ public java.lang.String getIpAddress() {
* more details.
*
*
- * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
+ *
*
* @return The bytes for ipAddress.
*/
@@ -1433,7 +1441,9 @@ public com.google.protobuf.ByteString getIpAddressBytes() {
* more details.
*
*
- * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
+ *
*
* @param value The ipAddress to set.
* @return This builder for chaining.
@@ -1465,7 +1475,9 @@ public Builder setIpAddress(java.lang.String value) {
* more details.
*
*
- * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
+ *
*
* @return This builder for chaining.
*/
@@ -1493,7 +1505,9 @@ public Builder clearIpAddress() {
* more details.
*
*
- * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
+ *
*
* @param value The bytes for ipAddress to set.
* @return This builder for chaining.
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoOrBuilder.java
index 149a8edde854..06d257129aa3 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoOrBuilder.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoOrBuilder.java
@@ -69,7 +69,9 @@ public interface DeviceInfoOrBuilder
* more details.
*
*
- * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
+ *
*
* @return The ipAddress.
*/
@@ -92,7 +94,9 @@ public interface DeviceInfoOrBuilder
* more details.
*
*
- * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
+ *
*
* @return The bytes for ipAddress.
*/
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoProto.java
index 6b3820a7d1d2..dadd1661f238 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoProto.java
@@ -55,10 +55,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n"
+ "+google/ads/datamanager/v1/device_info."
- + "proto\022\031google.ads.datamanager.v1\032\037google/api/field_behavior.proto\"\312\002\n\n"
+ + "proto\022\031google.ads.datamanager.v1\032\037google"
+ + "/api/field_behavior.proto\032\033google/api/field_info.proto\"\322\002\n\n"
+ "DeviceInfo\022\027\n\n"
- + "user_agent\030\001 \001(\tB\003\340A\001\022\027\n\n"
- + "ip_address\030\002 \001(\tB\003\340A\001\022\025\n"
+ + "user_agent\030\001 \001(\tB\003\340A\001\022\037\n\n"
+ + "ip_address\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\004\022\025\n"
+ "\010category\030\003 \001(\tB\003\340A\001\022\032\n\r"
+ "language_code\030\004 \001(\tB\003\340A\001\022\032\n\r"
+ "screen_height\030\005 \001(\005B\003\340A\001\022\031\n"
@@ -70,17 +71,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ " \001(\tB\003\340A\001\022\024\n"
+ "\007browser\030\013 \001(\tB\003\340A\001\022\034\n"
+ "\017browser_version\030\014 \001(\tB\003\340A\001B\314\001\n"
- + "\035com.google.ads.datamanager.v1B\017Device"
- + "InfoProtoP\001ZAcloud.google.com/go/dataman"
- + "ager/apiv1/datamanagerpb;datamanagerpb\252\002"
- + "\031Google.Ads.DataManager.V1\312\002\031Google\\Ads\\"
- + "DataManager\\V1\352\002\034Google::Ads::DataManager::V1b\006proto3"
+ + "\035com.google.ads.datamanager.v1B\017DeviceInf"
+ + "oProtoP\001ZAcloud.google.com/go/datamanage"
+ + "r/apiv1/datamanagerpb;datamanagerpb\252\002\031Go"
+ + "ogle.Ads.DataManager.V1\312\002\031Google\\Ads\\Dat"
+ + "aManager\\V1\352\002\034Google::Ads::DataManager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.FieldBehaviorProto.getDescriptor(),
+ com.google.api.FieldInfoProto.getDescriptor(),
});
internal_static_google_ads_datamanager_v1_DeviceInfo_descriptor =
getDescriptor().getMessageType(0);
@@ -103,9 +105,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
});
descriptor.resolveAllFeaturesImmutable();
com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.api.FieldInfoProto.getDescriptor();
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+ registry.add(com.google.api.FieldInfoProto.fieldInfo);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
}
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfo.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfo.java
index f2393e373a81..9f475c68fa97 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfo.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfo.java
@@ -79,6 +79,7 @@ public enum WrappedKeyCase
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
GCP_WRAPPED_KEY_INFO(1),
AWS_WRAPPED_KEY_INFO(2),
+ COORDINATOR_KEY_INFO(3),
WRAPPEDKEY_NOT_SET(0);
private final int value;
@@ -102,6 +103,8 @@ public static WrappedKeyCase forNumber(int value) {
return GCP_WRAPPED_KEY_INFO;
case 2:
return AWS_WRAPPED_KEY_INFO;
+ case 3:
+ return COORDINATOR_KEY_INFO;
case 0:
return WRAPPEDKEY_NOT_SET;
default:
@@ -226,6 +229,82 @@ public com.google.ads.datamanager.v1.AwsWrappedKeyInfoOrBuilder getAwsWrappedKey
return com.google.ads.datamanager.v1.AwsWrappedKeyInfo.getDefaultInstance();
}
+ public static final int COORDINATOR_KEY_INFO_FIELD_NUMBER = 3;
+
+ /**
+ *
+ *
+ * + * Key information for the chosen coordinator key. + * + * This is not supported for the + * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents], + * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers], + * and + * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers] + * methods. + *+ * + *
.google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3;
+ *
+ * @return Whether the coordinatorKeyInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasCoordinatorKeyInfo() {
+ return wrappedKeyCase_ == 3;
+ }
+
+ /**
+ *
+ *
+ * + * Key information for the chosen coordinator key. + * + * This is not supported for the + * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents], + * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers], + * and + * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers] + * methods. + *+ * + *
.google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3;
+ *
+ * @return The coordinatorKeyInfo.
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.CoordinatorKeyInfo getCoordinatorKeyInfo() {
+ if (wrappedKeyCase_ == 3) {
+ return (com.google.ads.datamanager.v1.CoordinatorKeyInfo) wrappedKey_;
+ }
+ return com.google.ads.datamanager.v1.CoordinatorKeyInfo.getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ * + * Key information for the chosen coordinator key. + * + * This is not supported for the + * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents], + * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers], + * and + * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers] + * methods. + *+ * + *
.google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3;
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.CoordinatorKeyInfoOrBuilder
+ getCoordinatorKeyInfoOrBuilder() {
+ if (wrappedKeyCase_ == 3) {
+ return (com.google.ads.datamanager.v1.CoordinatorKeyInfo) wrappedKey_;
+ }
+ return com.google.ads.datamanager.v1.CoordinatorKeyInfo.getDefaultInstance();
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -246,6 +325,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (wrappedKeyCase_ == 2) {
output.writeMessage(2, (com.google.ads.datamanager.v1.AwsWrappedKeyInfo) wrappedKey_);
}
+ if (wrappedKeyCase_ == 3) {
+ output.writeMessage(3, (com.google.ads.datamanager.v1.CoordinatorKeyInfo) wrappedKey_);
+ }
getUnknownFields().writeTo(output);
}
@@ -265,6 +347,11 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
2, (com.google.ads.datamanager.v1.AwsWrappedKeyInfo) wrappedKey_);
}
+ if (wrappedKeyCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3, (com.google.ads.datamanager.v1.CoordinatorKeyInfo) wrappedKey_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -289,6 +376,9 @@ public boolean equals(final java.lang.Object obj) {
case 2:
if (!getAwsWrappedKeyInfo().equals(other.getAwsWrappedKeyInfo())) return false;
break;
+ case 3:
+ if (!getCoordinatorKeyInfo().equals(other.getCoordinatorKeyInfo())) return false;
+ break;
case 0:
default:
}
@@ -312,6 +402,10 @@ public int hashCode() {
hash = (37 * hash) + AWS_WRAPPED_KEY_INFO_FIELD_NUMBER;
hash = (53 * hash) + getAwsWrappedKeyInfo().hashCode();
break;
+ case 3:
+ hash = (37 * hash) + COORDINATOR_KEY_INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getCoordinatorKeyInfo().hashCode();
+ break;
case 0:
default:
}
@@ -461,6 +555,9 @@ public Builder clear() {
if (awsWrappedKeyInfoBuilder_ != null) {
awsWrappedKeyInfoBuilder_.clear();
}
+ if (coordinatorKeyInfoBuilder_ != null) {
+ coordinatorKeyInfoBuilder_.clear();
+ }
wrappedKeyCase_ = 0;
wrappedKey_ = null;
return this;
@@ -511,6 +608,9 @@ private void buildPartialOneofs(com.google.ads.datamanager.v1.EncryptionInfo res
if (wrappedKeyCase_ == 2 && awsWrappedKeyInfoBuilder_ != null) {
result.wrappedKey_ = awsWrappedKeyInfoBuilder_.build();
}
+ if (wrappedKeyCase_ == 3 && coordinatorKeyInfoBuilder_ != null) {
+ result.wrappedKey_ = coordinatorKeyInfoBuilder_.build();
+ }
}
@java.lang.Override
@@ -536,6 +636,11 @@ public Builder mergeFrom(com.google.ads.datamanager.v1.EncryptionInfo other) {
mergeAwsWrappedKeyInfo(other.getAwsWrappedKeyInfo());
break;
}
+ case COORDINATOR_KEY_INFO:
+ {
+ mergeCoordinatorKeyInfo(other.getCoordinatorKeyInfo());
+ break;
+ }
case WRAPPEDKEY_NOT_SET:
{
break;
@@ -581,6 +686,13 @@ public Builder mergeFrom(
wrappedKeyCase_ = 2;
break;
} // case 18
+ case 26:
+ {
+ input.readMessage(
+ internalGetCoordinatorKeyInfoFieldBuilder().getBuilder(), extensionRegistry);
+ wrappedKeyCase_ = 3;
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1054,6 +1166,289 @@ public com.google.ads.datamanager.v1.AwsWrappedKeyInfo.Builder getAwsWrappedKeyI
return awsWrappedKeyInfoBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.datamanager.v1.CoordinatorKeyInfo,
+ com.google.ads.datamanager.v1.CoordinatorKeyInfo.Builder,
+ com.google.ads.datamanager.v1.CoordinatorKeyInfoOrBuilder>
+ coordinatorKeyInfoBuilder_;
+
+ /**
+ *
+ *
+ * + * Key information for the chosen coordinator key. + * + * This is not supported for the + * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents], + * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers], + * and + * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers] + * methods. + *+ * + *
.google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3;
+ *
+ * @return Whether the coordinatorKeyInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasCoordinatorKeyInfo() {
+ return wrappedKeyCase_ == 3;
+ }
+
+ /**
+ *
+ *
+ * + * Key information for the chosen coordinator key. + * + * This is not supported for the + * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents], + * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers], + * and + * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers] + * methods. + *+ * + *
.google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3;
+ *
+ * @return The coordinatorKeyInfo.
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.CoordinatorKeyInfo getCoordinatorKeyInfo() {
+ if (coordinatorKeyInfoBuilder_ == null) {
+ if (wrappedKeyCase_ == 3) {
+ return (com.google.ads.datamanager.v1.CoordinatorKeyInfo) wrappedKey_;
+ }
+ return com.google.ads.datamanager.v1.CoordinatorKeyInfo.getDefaultInstance();
+ } else {
+ if (wrappedKeyCase_ == 3) {
+ return coordinatorKeyInfoBuilder_.getMessage();
+ }
+ return com.google.ads.datamanager.v1.CoordinatorKeyInfo.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Key information for the chosen coordinator key. + * + * This is not supported for the + * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents], + * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers], + * and + * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers] + * methods. + *+ * + *
.google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3;
+ */
+ public Builder setCoordinatorKeyInfo(com.google.ads.datamanager.v1.CoordinatorKeyInfo value) {
+ if (coordinatorKeyInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ wrappedKey_ = value;
+ onChanged();
+ } else {
+ coordinatorKeyInfoBuilder_.setMessage(value);
+ }
+ wrappedKeyCase_ = 3;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Key information for the chosen coordinator key. + * + * This is not supported for the + * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents], + * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers], + * and + * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers] + * methods. + *+ * + *
.google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3;
+ */
+ public Builder setCoordinatorKeyInfo(
+ com.google.ads.datamanager.v1.CoordinatorKeyInfo.Builder builderForValue) {
+ if (coordinatorKeyInfoBuilder_ == null) {
+ wrappedKey_ = builderForValue.build();
+ onChanged();
+ } else {
+ coordinatorKeyInfoBuilder_.setMessage(builderForValue.build());
+ }
+ wrappedKeyCase_ = 3;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Key information for the chosen coordinator key. + * + * This is not supported for the + * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents], + * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers], + * and + * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers] + * methods. + *+ * + *
.google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3;
+ */
+ public Builder mergeCoordinatorKeyInfo(com.google.ads.datamanager.v1.CoordinatorKeyInfo value) {
+ if (coordinatorKeyInfoBuilder_ == null) {
+ if (wrappedKeyCase_ == 3
+ && wrappedKey_
+ != com.google.ads.datamanager.v1.CoordinatorKeyInfo.getDefaultInstance()) {
+ wrappedKey_ =
+ com.google.ads.datamanager.v1.CoordinatorKeyInfo.newBuilder(
+ (com.google.ads.datamanager.v1.CoordinatorKeyInfo) wrappedKey_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ wrappedKey_ = value;
+ }
+ onChanged();
+ } else {
+ if (wrappedKeyCase_ == 3) {
+ coordinatorKeyInfoBuilder_.mergeFrom(value);
+ } else {
+ coordinatorKeyInfoBuilder_.setMessage(value);
+ }
+ }
+ wrappedKeyCase_ = 3;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Key information for the chosen coordinator key. + * + * This is not supported for the + * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents], + * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers], + * and + * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers] + * methods. + *+ * + *
.google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3;
+ */
+ public Builder clearCoordinatorKeyInfo() {
+ if (coordinatorKeyInfoBuilder_ == null) {
+ if (wrappedKeyCase_ == 3) {
+ wrappedKeyCase_ = 0;
+ wrappedKey_ = null;
+ onChanged();
+ }
+ } else {
+ if (wrappedKeyCase_ == 3) {
+ wrappedKeyCase_ = 0;
+ wrappedKey_ = null;
+ }
+ coordinatorKeyInfoBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Key information for the chosen coordinator key. + * + * This is not supported for the + * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents], + * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers], + * and + * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers] + * methods. + *+ * + *
.google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3;
+ */
+ public com.google.ads.datamanager.v1.CoordinatorKeyInfo.Builder getCoordinatorKeyInfoBuilder() {
+ return internalGetCoordinatorKeyInfoFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Key information for the chosen coordinator key. + * + * This is not supported for the + * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents], + * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers], + * and + * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers] + * methods. + *+ * + *
.google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3;
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.CoordinatorKeyInfoOrBuilder
+ getCoordinatorKeyInfoOrBuilder() {
+ if ((wrappedKeyCase_ == 3) && (coordinatorKeyInfoBuilder_ != null)) {
+ return coordinatorKeyInfoBuilder_.getMessageOrBuilder();
+ } else {
+ if (wrappedKeyCase_ == 3) {
+ return (com.google.ads.datamanager.v1.CoordinatorKeyInfo) wrappedKey_;
+ }
+ return com.google.ads.datamanager.v1.CoordinatorKeyInfo.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Key information for the chosen coordinator key. + * + * This is not supported for the + * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents], + * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers], + * and + * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers] + * methods. + *+ * + *
.google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.datamanager.v1.CoordinatorKeyInfo,
+ com.google.ads.datamanager.v1.CoordinatorKeyInfo.Builder,
+ com.google.ads.datamanager.v1.CoordinatorKeyInfoOrBuilder>
+ internalGetCoordinatorKeyInfoFieldBuilder() {
+ if (coordinatorKeyInfoBuilder_ == null) {
+ if (!(wrappedKeyCase_ == 3)) {
+ wrappedKey_ = com.google.ads.datamanager.v1.CoordinatorKeyInfo.getDefaultInstance();
+ }
+ coordinatorKeyInfoBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.datamanager.v1.CoordinatorKeyInfo,
+ com.google.ads.datamanager.v1.CoordinatorKeyInfo.Builder,
+ com.google.ads.datamanager.v1.CoordinatorKeyInfoOrBuilder>(
+ (com.google.ads.datamanager.v1.CoordinatorKeyInfo) wrappedKey_,
+ getParentForChildren(),
+ isClean());
+ wrappedKey_ = null;
+ }
+ wrappedKeyCase_ = 3;
+ onChanged();
+ return coordinatorKeyInfoBuilder_;
+ }
+
// @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.EncryptionInfo)
}
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoOrBuilder.java
index a7b5a9b555ea..f7408b37f6ae 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoOrBuilder.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoOrBuilder.java
@@ -100,5 +100,63 @@ public interface EncryptionInfoOrBuilder
*/
com.google.ads.datamanager.v1.AwsWrappedKeyInfoOrBuilder getAwsWrappedKeyInfoOrBuilder();
+ /**
+ *
+ *
+ * + * Key information for the chosen coordinator key. + * + * This is not supported for the + * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents], + * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers], + * and + * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers] + * methods. + *+ * + *
.google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3;
+ *
+ * @return Whether the coordinatorKeyInfo field is set.
+ */
+ boolean hasCoordinatorKeyInfo();
+
+ /**
+ *
+ *
+ * + * Key information for the chosen coordinator key. + * + * This is not supported for the + * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents], + * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers], + * and + * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers] + * methods. + *+ * + *
.google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3;
+ *
+ * @return The coordinatorKeyInfo.
+ */
+ com.google.ads.datamanager.v1.CoordinatorKeyInfo getCoordinatorKeyInfo();
+
+ /**
+ *
+ *
+ * + * Key information for the chosen coordinator key. + * + * This is not supported for the + * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents], + * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers], + * and + * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers] + * methods. + *+ * + *
.google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3;
+ */
+ com.google.ads.datamanager.v1.CoordinatorKeyInfoOrBuilder getCoordinatorKeyInfoOrBuilder();
+
com.google.ads.datamanager.v1.EncryptionInfo.WrappedKeyCase getWrappedKeyCase();
}
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoProto.java
index cc530e5c4306..d1c53cc2812c 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoProto.java
@@ -52,6 +52,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_ads_datamanager_v1_AwsWrappedKeyInfo_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_ads_datamanager_v1_AwsWrappedKeyInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_ads_datamanager_v1_CoordinatorKeyInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_ads_datamanager_v1_CoordinatorKeyInfo_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -63,16 +67,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n"
+ "/google/ads/datamanager/v1/encryption_i"
- + "nfo.proto\022\031google.ads.datamanager.v1\032\037google/api/field_behavior.proto\"\273\001\n"
+ + "nfo.proto\022\031google.ads.datamanager.v1\032\037google/api/field_behavior.proto\"\212\002\n"
+ "\016EncryptionInfo\022L\n"
+ "\024gcp_wrapped_key_info\030\001 \001(\0132,"
+ ".google.ads.datamanager.v1.GcpWrappedKeyInfoH\000\022L\n"
+ "\024aws_wrapped_key_info\030\002 \001(\0132,.g"
- + "oogle.ads.datamanager.v1.AwsWrappedKeyInfoH\000B\r\n"
+ + "oogle.ads.datamanager.v1.AwsWrappedKeyInfoH\000\022M\n"
+ + "\024coordinator_key_info\030\003 \001(\0132-.goo"
+ + "gle.ads.datamanager.v1.CoordinatorKeyInfoH\000B\r\n"
+ "\013wrapped_key\"\352\001\n"
+ "\021GcpWrappedKeyInfo\022K\n"
- + "\010key_type\030\001 \001(\01624.google.ads.dataman"
- + "ager.v1.GcpWrappedKeyInfo.KeyTypeB\003\340A\002\022\031\n"
+ + "\010key_type\030\001"
+ + " \001(\01624.google.ads.datamanager.v1.GcpWrappedKeyInfo.KeyTypeB\003\340A\002\022\031\n"
+ "\014wip_provider\030\002 \001(\tB\003\340A\002\022\024\n"
+ "\007kek_uri\030\003 \001(\tB\003\340A\002\022\032\n\r"
+ "encrypted_dek\030\004 \001(\tB\003\340A\002\";\n"
@@ -87,12 +93,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "encrypted_dek\030\004 \001(\tB\003\340A\002\";\n"
+ "\007KeyType\022\030\n"
+ "\024KEY_TYPE_UNSPECIFIED\020\000\022\026\n"
- + "\022XCHACHA20_POLY1305\020\001B\320\001\n"
- + "\035com.google.ads.datamanager.v1B\023EncryptionInfoProtoP\001ZAcloud.google"
- + ".com/go/datamanager/apiv1/datamanagerpb;"
- + "datamanagerpb\252\002\031Google.Ads.DataManager.V"
- + "1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google::"
- + "Ads::DataManager::V1b\006proto3"
+ + "\022XCHACHA20_POLY1305\020\001\")\n"
+ + "\022CoordinatorKeyInfo\022\023\n"
+ + "\006key_id\030\001 \001(\tB\003\340A\002B\320\001\n"
+ + "\035com.google.ads.datamanager.v1B\023EncryptionInfoProtoP\001ZAcloud.goog"
+ + "le.com/go/datamanager/apiv1/datamanagerp"
+ + "b;datamanagerpb\252\002\031Google.Ads.DataManager"
+ + ".V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google"
+ + "::Ads::DataManager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -106,7 +114,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_ads_datamanager_v1_EncryptionInfo_descriptor,
new java.lang.String[] {
- "GcpWrappedKeyInfo", "AwsWrappedKeyInfo", "WrappedKey",
+ "GcpWrappedKeyInfo", "AwsWrappedKeyInfo", "CoordinatorKeyInfo", "WrappedKey",
});
internal_static_google_ads_datamanager_v1_GcpWrappedKeyInfo_descriptor =
getDescriptor().getMessageType(1);
@@ -124,6 +132,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"KeyType", "RoleArn", "KekUri", "EncryptedDek",
});
+ internal_static_google_ads_datamanager_v1_CoordinatorKeyInfo_descriptor =
+ getDescriptor().getMessageType(3);
+ internal_static_google_ads_datamanager_v1_CoordinatorKeyInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_ads_datamanager_v1_CoordinatorKeyInfo_descriptor,
+ new java.lang.String[] {
+ "KeyId",
+ });
descriptor.resolveAllFeaturesImmutable();
com.google.api.FieldBehaviorProto.getDescriptor();
com.google.protobuf.ExtensionRegistry registry =
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorReason.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorReason.java
index 0a382ea940f0..951020b8e456 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorReason.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorReason.java
@@ -431,6 +431,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* Events data contains no user identifiers or ad identifiers.
+ * For Floodlight Event ingestion this error indicates requests contains no ad
+ * identifiers.
*
*
* NO_IDENTIFIERS_PROVIDED = 39;
@@ -1732,6 +1734,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* Events data contains no user identifiers or ad identifiers.
+ * For Floodlight Event ingestion this error indicates requests contains no ad
+ * identifiers.
*
*
* NO_IDENTIFIERS_PROVIDED = 39;
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/FeatureSet.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/FeatureSet.java
new file mode 100644
index 000000000000..299d60c955e3
--- /dev/null
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/FeatureSet.java
@@ -0,0 +1,195 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/ads/datamanager/v1/partner_link_service.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.ads.datamanager.v1;
+
+/**
+ *
+ *
+ * + * The set of supported features for a partner link. + *+ * + * Protobuf enum {@code google.ads.datamanager.v1.FeatureSet} + */ +@com.google.protobuf.Generated +public enum FeatureSet implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified feature set. If unspecified, the system behavior defaults to + * [FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT]. + *+ * + *
FEATURE_SET_UNSPECIFIED = 0;
+ */
+ FEATURE_SET_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Indicates a link used for audience and event management. + *+ * + *
FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT = 1;
+ */
+ FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT(1),
+ /**
+ *
+ *
+ * + * Indicates a link used for ad event management. + *+ * + *
FEATURE_SET_AD_EVENT_MANAGEMENT = 2;
+ */
+ FEATURE_SET_AD_EVENT_MANAGEMENT(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "FeatureSet");
+ }
+
+ /**
+ *
+ *
+ * + * Unspecified feature set. If unspecified, the system behavior defaults to + * [FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT]. + *+ * + *
FEATURE_SET_UNSPECIFIED = 0;
+ */
+ public static final int FEATURE_SET_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * Indicates a link used for audience and event management. + *+ * + *
FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT = 1;
+ */
+ public static final int FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * Indicates a link used for ad event management. + *+ * + *
FEATURE_SET_AD_EVENT_MANAGEMENT = 2;
+ */
+ public static final int FEATURE_SET_AD_EVENT_MANAGEMENT_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static FeatureSet valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static FeatureSet forNumber(int value) {
+ switch (value) {
+ case 0:
+ return FEATURE_SET_UNSPECIFIED;
+ case 1:
+ return FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT;
+ case 2:
+ return FEATURE_SET_AD_EVENT_MANAGEMENT;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Request to upload ad events. + *+ * + * Protobuf type {@code google.ads.datamanager.v1.IngestAdEventsRequest} + */ +@com.google.protobuf.Generated +public final class IngestAdEventsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.IngestAdEventsRequest) + IngestAdEventsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IngestAdEventsRequest"); + } + + // Use IngestAdEventsRequest.newBuilder() to construct. + private IngestAdEventsRequest(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private IngestAdEventsRequest() { + adEvents_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.IngestionServiceProto + .internal_static_google_ads_datamanager_v1_IngestAdEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.IngestionServiceProto + .internal_static_google_ads_datamanager_v1_IngestAdEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.IngestAdEventsRequest.class, + com.google.ads.datamanager.v1.IngestAdEventsRequest.Builder.class); + } + + private int bitField0_; + public static final int AD_EVENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List
+ * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.ads.datamanager.v1.AdEventOrBuilder>
+ getAdEventsOrBuilderList() {
+ return adEvents_;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public int getAdEventsCount() {
+ return adEvents_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.AdEvent getAdEvents(int index) {
+ return adEvents_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.AdEventOrBuilder getAdEventsOrBuilder(int index) {
+ return adEvents_.get(index);
+ }
+
+ public static final int ENCRYPTION_INFO_FIELD_NUMBER = 2;
+ private com.google.ads.datamanager.v1.EncryptionInfo encryptionInfo_;
+
+ /**
+ *
+ *
+ * + * Optional. Information about encryption keys which are used to encrypt the + * data. + *+ * + *
+ * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the encryptionInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasEncryptionInfo() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Information about encryption keys which are used to encrypt the + * data. + *+ * + *
+ * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The encryptionInfo.
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.EncryptionInfo getEncryptionInfo() {
+ return encryptionInfo_ == null
+ ? com.google.ads.datamanager.v1.EncryptionInfo.getDefaultInstance()
+ : encryptionInfo_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Information about encryption keys which are used to encrypt the + * data. + *+ * + *
+ * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder() {
+ return encryptionInfo_ == null
+ ? com.google.ads.datamanager.v1.EncryptionInfo.getDefaultInstance()
+ : encryptionInfo_;
+ }
+
+ public static final int VALIDATE_ONLY_FIELD_NUMBER = 3;
+ private boolean validateOnly_ = false;
+
+ /**
+ *
+ *
+ * + * Optional. If true, the request is validated, but not executed. + *+ * + *
bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The validateOnly.
+ */
+ @java.lang.Override
+ public boolean getValidateOnly() {
+ return validateOnly_;
+ }
+
+ 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 < adEvents_.size(); i++) {
+ output.writeMessage(1, adEvents_.get(i));
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getEncryptionInfo());
+ }
+ if (validateOnly_ != false) {
+ output.writeBool(3, validateOnly_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < adEvents_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, adEvents_.get(i));
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEncryptionInfo());
+ }
+ if (validateOnly_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_);
+ }
+ 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.datamanager.v1.IngestAdEventsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.ads.datamanager.v1.IngestAdEventsRequest other =
+ (com.google.ads.datamanager.v1.IngestAdEventsRequest) obj;
+
+ if (!getAdEventsList().equals(other.getAdEventsList())) return false;
+ if (hasEncryptionInfo() != other.hasEncryptionInfo()) return false;
+ if (hasEncryptionInfo()) {
+ if (!getEncryptionInfo().equals(other.getEncryptionInfo())) return false;
+ }
+ if (getValidateOnly() != other.getValidateOnly()) 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 (getAdEventsCount() > 0) {
+ hash = (37 * hash) + AD_EVENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getAdEventsList().hashCode();
+ }
+ if (hasEncryptionInfo()) {
+ hash = (37 * hash) + ENCRYPTION_INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getEncryptionInfo().hashCode();
+ }
+ hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.ads.datamanager.v1.IngestAdEventsRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.datamanager.v1.IngestAdEventsRequest 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.datamanager.v1.IngestAdEventsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.datamanager.v1.IngestAdEventsRequest 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.datamanager.v1.IngestAdEventsRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.datamanager.v1.IngestAdEventsRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.ads.datamanager.v1.IngestAdEventsRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.datamanager.v1.IngestAdEventsRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.datamanager.v1.IngestAdEventsRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.datamanager.v1.IngestAdEventsRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.datamanager.v1.IngestAdEventsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.datamanager.v1.IngestAdEventsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.datamanager.v1.IngestAdEventsRequest 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Request to upload ad events. + *+ * + * Protobuf type {@code google.ads.datamanager.v1.IngestAdEventsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List+ * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public int getAdEventsCount() {
+ if (adEventsBuilder_ == null) {
+ return adEvents_.size();
+ } else {
+ return adEventsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.ads.datamanager.v1.AdEvent getAdEvents(int index) {
+ if (adEventsBuilder_ == null) {
+ return adEvents_.get(index);
+ } else {
+ return adEventsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setAdEvents(int index, com.google.ads.datamanager.v1.AdEvent value) {
+ if (adEventsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAdEventsIsMutable();
+ adEvents_.set(index, value);
+ onChanged();
+ } else {
+ adEventsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setAdEvents(
+ int index, com.google.ads.datamanager.v1.AdEvent.Builder builderForValue) {
+ if (adEventsBuilder_ == null) {
+ ensureAdEventsIsMutable();
+ adEvents_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ adEventsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addAdEvents(com.google.ads.datamanager.v1.AdEvent value) {
+ if (adEventsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAdEventsIsMutable();
+ adEvents_.add(value);
+ onChanged();
+ } else {
+ adEventsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addAdEvents(int index, com.google.ads.datamanager.v1.AdEvent value) {
+ if (adEventsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAdEventsIsMutable();
+ adEvents_.add(index, value);
+ onChanged();
+ } else {
+ adEventsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addAdEvents(com.google.ads.datamanager.v1.AdEvent.Builder builderForValue) {
+ if (adEventsBuilder_ == null) {
+ ensureAdEventsIsMutable();
+ adEvents_.add(builderForValue.build());
+ onChanged();
+ } else {
+ adEventsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addAdEvents(
+ int index, com.google.ads.datamanager.v1.AdEvent.Builder builderForValue) {
+ if (adEventsBuilder_ == null) {
+ ensureAdEventsIsMutable();
+ adEvents_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ adEventsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addAllAdEvents(
+ java.lang.Iterable extends com.google.ads.datamanager.v1.AdEvent> values) {
+ if (adEventsBuilder_ == null) {
+ ensureAdEventsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, adEvents_);
+ onChanged();
+ } else {
+ adEventsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearAdEvents() {
+ if (adEventsBuilder_ == null) {
+ adEvents_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ adEventsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder removeAdEvents(int index) {
+ if (adEventsBuilder_ == null) {
+ ensureAdEventsIsMutable();
+ adEvents_.remove(index);
+ onChanged();
+ } else {
+ adEventsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.ads.datamanager.v1.AdEvent.Builder getAdEventsBuilder(int index) {
+ return internalGetAdEventsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.ads.datamanager.v1.AdEventOrBuilder getAdEventsOrBuilder(int index) {
+ if (adEventsBuilder_ == null) {
+ return adEvents_.get(index);
+ } else {
+ return adEventsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List extends com.google.ads.datamanager.v1.AdEventOrBuilder>
+ getAdEventsOrBuilderList() {
+ if (adEventsBuilder_ != null) {
+ return adEventsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(adEvents_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.ads.datamanager.v1.AdEvent.Builder addAdEventsBuilder() {
+ return internalGetAdEventsFieldBuilder()
+ .addBuilder(com.google.ads.datamanager.v1.AdEvent.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.ads.datamanager.v1.AdEvent.Builder addAdEventsBuilder(int index) {
+ return internalGetAdEventsFieldBuilder()
+ .addBuilder(index, com.google.ads.datamanager.v1.AdEvent.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List+ * Optional. Information about encryption keys which are used to encrypt the + * data. + *+ * + *
+ * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the encryptionInfo field is set.
+ */
+ public boolean hasEncryptionInfo() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Information about encryption keys which are used to encrypt the + * data. + *+ * + *
+ * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The encryptionInfo.
+ */
+ public com.google.ads.datamanager.v1.EncryptionInfo getEncryptionInfo() {
+ if (encryptionInfoBuilder_ == null) {
+ return encryptionInfo_ == null
+ ? com.google.ads.datamanager.v1.EncryptionInfo.getDefaultInstance()
+ : encryptionInfo_;
+ } else {
+ return encryptionInfoBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Information about encryption keys which are used to encrypt the + * data. + *+ * + *
+ * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setEncryptionInfo(com.google.ads.datamanager.v1.EncryptionInfo value) {
+ if (encryptionInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ encryptionInfo_ = value;
+ } else {
+ encryptionInfoBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Information about encryption keys which are used to encrypt the + * data. + *+ * + *
+ * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setEncryptionInfo(
+ com.google.ads.datamanager.v1.EncryptionInfo.Builder builderForValue) {
+ if (encryptionInfoBuilder_ == null) {
+ encryptionInfo_ = builderForValue.build();
+ } else {
+ encryptionInfoBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Information about encryption keys which are used to encrypt the + * data. + *+ * + *
+ * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeEncryptionInfo(com.google.ads.datamanager.v1.EncryptionInfo value) {
+ if (encryptionInfoBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && encryptionInfo_ != null
+ && encryptionInfo_
+ != com.google.ads.datamanager.v1.EncryptionInfo.getDefaultInstance()) {
+ getEncryptionInfoBuilder().mergeFrom(value);
+ } else {
+ encryptionInfo_ = value;
+ }
+ } else {
+ encryptionInfoBuilder_.mergeFrom(value);
+ }
+ if (encryptionInfo_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Information about encryption keys which are used to encrypt the + * data. + *+ * + *
+ * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearEncryptionInfo() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ encryptionInfo_ = null;
+ if (encryptionInfoBuilder_ != null) {
+ encryptionInfoBuilder_.dispose();
+ encryptionInfoBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Information about encryption keys which are used to encrypt the + * data. + *+ * + *
+ * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.ads.datamanager.v1.EncryptionInfo.Builder getEncryptionInfoBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return internalGetEncryptionInfoFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Information about encryption keys which are used to encrypt the + * data. + *+ * + *
+ * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.ads.datamanager.v1.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder() {
+ if (encryptionInfoBuilder_ != null) {
+ return encryptionInfoBuilder_.getMessageOrBuilder();
+ } else {
+ return encryptionInfo_ == null
+ ? com.google.ads.datamanager.v1.EncryptionInfo.getDefaultInstance()
+ : encryptionInfo_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Information about encryption keys which are used to encrypt the + * data. + *+ * + *
+ * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.datamanager.v1.EncryptionInfo,
+ com.google.ads.datamanager.v1.EncryptionInfo.Builder,
+ com.google.ads.datamanager.v1.EncryptionInfoOrBuilder>
+ internalGetEncryptionInfoFieldBuilder() {
+ if (encryptionInfoBuilder_ == null) {
+ encryptionInfoBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.datamanager.v1.EncryptionInfo,
+ com.google.ads.datamanager.v1.EncryptionInfo.Builder,
+ com.google.ads.datamanager.v1.EncryptionInfoOrBuilder>(
+ getEncryptionInfo(), getParentForChildren(), isClean());
+ encryptionInfo_ = null;
+ }
+ return encryptionInfoBuilder_;
+ }
+
+ private boolean validateOnly_;
+
+ /**
+ *
+ *
+ * + * Optional. If true, the request is validated, but not executed. + *+ * + *
bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The validateOnly.
+ */
+ @java.lang.Override
+ public boolean getValidateOnly() {
+ return validateOnly_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. If true, the request is validated, but not executed. + *+ * + *
bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The validateOnly to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValidateOnly(boolean value) {
+
+ validateOnly_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. If true, the request is validated, but not executed. + *+ * + *
bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearValidateOnly() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ validateOnly_ = false;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.IngestAdEventsRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.IngestAdEventsRequest)
+ private static final com.google.ads.datamanager.v1.IngestAdEventsRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.ads.datamanager.v1.IngestAdEventsRequest();
+ }
+
+ public static com.google.ads.datamanager.v1.IngestAdEventsRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ java.util.List+ * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.ads.datamanager.v1.AdEvent getAdEvents(int index);
+
+ /**
+ *
+ *
+ * + * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ int getAdEventsCount();
+
+ /**
+ *
+ *
+ * + * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ java.util.List extends com.google.ads.datamanager.v1.AdEventOrBuilder>
+ getAdEventsOrBuilderList();
+
+ /**
+ *
+ *
+ * + * Required. Required (at least 1). A list of ad events. + *+ * + *
+ * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.ads.datamanager.v1.AdEventOrBuilder getAdEventsOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * Optional. Information about encryption keys which are used to encrypt the + * data. + *+ * + *
+ * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the encryptionInfo field is set.
+ */
+ boolean hasEncryptionInfo();
+
+ /**
+ *
+ *
+ * + * Optional. Information about encryption keys which are used to encrypt the + * data. + *+ * + *
+ * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The encryptionInfo.
+ */
+ com.google.ads.datamanager.v1.EncryptionInfo getEncryptionInfo();
+
+ /**
+ *
+ *
+ * + * Optional. Information about encryption keys which are used to encrypt the + * data. + *+ * + *
+ * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.ads.datamanager.v1.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. If true, the request is validated, but not executed. + *+ * + *
bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The validateOnly.
+ */
+ boolean getValidateOnly();
+}
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsResponse.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsResponse.java
new file mode 100644
index 000000000000..9225ce909a1e
--- /dev/null
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsResponse.java
@@ -0,0 +1,396 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/ads/datamanager/v1/ingestion_service.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.ads.datamanager.v1;
+
+/**
+ *
+ *
+ * + * Response from an ad event ingestion operation. + *+ * + * Protobuf type {@code google.ads.datamanager.v1.IngestAdEventsResponse} + */ +@com.google.protobuf.Generated +public final class IngestAdEventsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.IngestAdEventsResponse) + IngestAdEventsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IngestAdEventsResponse"); + } + + // Use IngestAdEventsResponse.newBuilder() to construct. + private IngestAdEventsResponse(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private IngestAdEventsResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.IngestionServiceProto + .internal_static_google_ads_datamanager_v1_IngestAdEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.IngestionServiceProto + .internal_static_google_ads_datamanager_v1_IngestAdEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.IngestAdEventsResponse.class, + com.google.ads.datamanager.v1.IngestAdEventsResponse.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.datamanager.v1.IngestAdEventsResponse)) { + return super.equals(obj); + } + com.google.ads.datamanager.v1.IngestAdEventsResponse other = + (com.google.ads.datamanager.v1.IngestAdEventsResponse) obj; + + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.datamanager.v1.IngestAdEventsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsResponse 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.datamanager.v1.IngestAdEventsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsResponse 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.datamanager.v1.IngestAdEventsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.datamanager.v1.IngestAdEventsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+ * Response from an ad event ingestion operation. + *+ * + * Protobuf type {@code google.ads.datamanager.v1.IngestAdEventsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * The amount of the media that was played as discrete quartiles. + *+ * + * Protobuf enum {@code google.ads.datamanager.v1.MediaQuartile} + */ +@com.google.protobuf.Generated +public enum MediaQuartile implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified media quartile. + *+ * + *
MEDIA_QUARTILE_UNSPECIFIED = 0;
+ */
+ MEDIA_QUARTILE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Start. + *+ * + *
MEDIA_QUARTILE_START = 1;
+ */
+ MEDIA_QUARTILE_START(1),
+ /**
+ *
+ *
+ * + * First quartile. + *+ * + *
MEDIA_QUARTILE_FIRST_QUARTILE = 2;
+ */
+ MEDIA_QUARTILE_FIRST_QUARTILE(2),
+ /**
+ *
+ *
+ * + * Midpoint. + *+ * + *
MEDIA_QUARTILE_MIDPOINT = 3;
+ */
+ MEDIA_QUARTILE_MIDPOINT(3),
+ /**
+ *
+ *
+ * + * Third quartile. + *+ * + *
MEDIA_QUARTILE_THIRD_QUARTILE = 4;
+ */
+ MEDIA_QUARTILE_THIRD_QUARTILE(4),
+ /**
+ *
+ *
+ * + * Complete. + *+ * + *
MEDIA_QUARTILE_COMPLETE = 5;
+ */
+ MEDIA_QUARTILE_COMPLETE(5),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "MediaQuartile");
+ }
+
+ /**
+ *
+ *
+ * + * Unspecified media quartile. + *+ * + *
MEDIA_QUARTILE_UNSPECIFIED = 0;
+ */
+ public static final int MEDIA_QUARTILE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * Start. + *+ * + *
MEDIA_QUARTILE_START = 1;
+ */
+ public static final int MEDIA_QUARTILE_START_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * First quartile. + *+ * + *
MEDIA_QUARTILE_FIRST_QUARTILE = 2;
+ */
+ public static final int MEDIA_QUARTILE_FIRST_QUARTILE_VALUE = 2;
+
+ /**
+ *
+ *
+ * + * Midpoint. + *+ * + *
MEDIA_QUARTILE_MIDPOINT = 3;
+ */
+ public static final int MEDIA_QUARTILE_MIDPOINT_VALUE = 3;
+
+ /**
+ *
+ *
+ * + * Third quartile. + *+ * + *
MEDIA_QUARTILE_THIRD_QUARTILE = 4;
+ */
+ public static final int MEDIA_QUARTILE_THIRD_QUARTILE_VALUE = 4;
+
+ /**
+ *
+ *
+ * + * Complete. + *+ * + *
MEDIA_QUARTILE_COMPLETE = 5;
+ */
+ public static final int MEDIA_QUARTILE_COMPLETE_VALUE = 5;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static MediaQuartile valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static MediaQuartile forNumber(int value) {
+ switch (value) {
+ case 0:
+ return MEDIA_QUARTILE_UNSPECIFIED;
+ case 1:
+ return MEDIA_QUARTILE_START;
+ case 2:
+ return MEDIA_QUARTILE_FIRST_QUARTILE;
+ case 3:
+ return MEDIA_QUARTILE_MIDPOINT;
+ case 4:
+ return MEDIA_QUARTILE_THIRD_QUARTILE;
+ case 5:
+ return MEDIA_QUARTILE_COMPLETE;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Represents a customer account in the partner's system. + *+ * + * Protobuf type {@code google.ads.datamanager.v1.PartnerCustomerAccount} + */ +@com.google.protobuf.Generated +public final class PartnerCustomerAccount extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.PartnerCustomerAccount) + PartnerCustomerAccountOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PartnerCustomerAccount"); + } + + // Use PartnerCustomerAccount.newBuilder() to construct. + private PartnerCustomerAccount(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private PartnerCustomerAccount() { + accountId_ = ""; + accountName_ = ""; + accountType_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.PartnerLinkServiceProto + .internal_static_google_ads_datamanager_v1_PartnerCustomerAccount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.PartnerLinkServiceProto + .internal_static_google_ads_datamanager_v1_PartnerCustomerAccount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.PartnerCustomerAccount.class, + com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder.class); + } + + public static final int ACCOUNT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object accountId_ = ""; + + /** + * + * + *
+ * Required. The identifier of the customer account in the partner's ID space. + *+ * + *
string account_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The accountId.
+ */
+ @java.lang.Override
+ public java.lang.String getAccountId() {
+ java.lang.Object ref = accountId_;
+ 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();
+ accountId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The identifier of the customer account in the partner's ID space. + *+ * + *
string account_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for accountId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAccountIdBytes() {
+ java.lang.Object ref = accountId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ accountId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ACCOUNT_NAME_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object accountName_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. The name of the account. + *+ * + *
string account_name = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The accountName.
+ */
+ @java.lang.Override
+ public java.lang.String getAccountName() {
+ java.lang.Object ref = accountName_;
+ 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();
+ accountName_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The name of the account. + *+ * + *
string account_name = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for accountName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAccountNameBytes() {
+ java.lang.Object ref = accountName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ accountName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ACCOUNT_TYPE_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object accountType_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. The type of the account. Can be used to distinguish between + * advertiser accounts and business level accounts, for example. + *+ * + *
string account_type = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The accountType.
+ */
+ @java.lang.Override
+ public java.lang.String getAccountType() {
+ java.lang.Object ref = accountType_;
+ 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();
+ accountType_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The type of the account. Can be used to distinguish between + * advertiser accounts and business level accounts, for example. + *+ * + *
string account_type = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for accountType.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAccountTypeBytes() {
+ java.lang.Object ref = accountType_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ accountType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(accountId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, accountId_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(accountName_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, accountName_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(accountType_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, accountType_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(accountId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, accountId_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(accountName_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, accountName_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(accountType_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, accountType_);
+ }
+ 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.datamanager.v1.PartnerCustomerAccount)) {
+ return super.equals(obj);
+ }
+ com.google.ads.datamanager.v1.PartnerCustomerAccount other =
+ (com.google.ads.datamanager.v1.PartnerCustomerAccount) obj;
+
+ if (!getAccountId().equals(other.getAccountId())) return false;
+ if (!getAccountName().equals(other.getAccountName())) return false;
+ if (!getAccountType().equals(other.getAccountType())) 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) + ACCOUNT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getAccountId().hashCode();
+ hash = (37 * hash) + ACCOUNT_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getAccountName().hashCode();
+ hash = (37 * hash) + ACCOUNT_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getAccountType().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.ads.datamanager.v1.PartnerCustomerAccount parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.datamanager.v1.PartnerCustomerAccount 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.datamanager.v1.PartnerCustomerAccount parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.datamanager.v1.PartnerCustomerAccount 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.datamanager.v1.PartnerCustomerAccount parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.datamanager.v1.PartnerCustomerAccount parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.ads.datamanager.v1.PartnerCustomerAccount parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.datamanager.v1.PartnerCustomerAccount parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.datamanager.v1.PartnerCustomerAccount parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.datamanager.v1.PartnerCustomerAccount parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.datamanager.v1.PartnerCustomerAccount parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.datamanager.v1.PartnerCustomerAccount parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.datamanager.v1.PartnerCustomerAccount 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Represents a customer account in the partner's system. + *+ * + * Protobuf type {@code google.ads.datamanager.v1.PartnerCustomerAccount} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Required. The identifier of the customer account in the partner's ID space. + *+ * + *
string account_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The accountId.
+ */
+ public java.lang.String getAccountId() {
+ java.lang.Object ref = accountId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ accountId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The identifier of the customer account in the partner's ID space. + *+ * + *
string account_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for accountId.
+ */
+ public com.google.protobuf.ByteString getAccountIdBytes() {
+ java.lang.Object ref = accountId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ accountId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The identifier of the customer account in the partner's ID space. + *+ * + *
string account_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The accountId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAccountId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ accountId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The identifier of the customer account in the partner's ID space. + *+ * + *
string account_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAccountId() {
+ accountId_ = getDefaultInstance().getAccountId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The identifier of the customer account in the partner's ID space. + *+ * + *
string account_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for accountId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAccountIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ accountId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object accountName_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. The name of the account. + *+ * + *
string account_name = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The accountName.
+ */
+ public java.lang.String getAccountName() {
+ java.lang.Object ref = accountName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ accountName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The name of the account. + *+ * + *
string account_name = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for accountName.
+ */
+ public com.google.protobuf.ByteString getAccountNameBytes() {
+ java.lang.Object ref = accountName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ accountName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The name of the account. + *+ * + *
string account_name = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The accountName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAccountName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ accountName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The name of the account. + *+ * + *
string account_name = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAccountName() {
+ accountName_ = getDefaultInstance().getAccountName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The name of the account. + *+ * + *
string account_name = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for accountName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAccountNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ accountName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object accountType_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. The type of the account. Can be used to distinguish between + * advertiser accounts and business level accounts, for example. + *+ * + *
string account_type = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The accountType.
+ */
+ public java.lang.String getAccountType() {
+ java.lang.Object ref = accountType_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ accountType_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The type of the account. Can be used to distinguish between + * advertiser accounts and business level accounts, for example. + *+ * + *
string account_type = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for accountType.
+ */
+ public com.google.protobuf.ByteString getAccountTypeBytes() {
+ java.lang.Object ref = accountType_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ accountType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The type of the account. Can be used to distinguish between + * advertiser accounts and business level accounts, for example. + *+ * + *
string account_type = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The accountType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAccountType(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ accountType_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The type of the account. Can be used to distinguish between + * advertiser accounts and business level accounts, for example. + *+ * + *
string account_type = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAccountType() {
+ accountType_ = getDefaultInstance().getAccountType();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The type of the account. Can be used to distinguish between + * advertiser accounts and business level accounts, for example. + *+ * + *
string account_type = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for accountType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAccountTypeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ accountType_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.PartnerCustomerAccount)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.PartnerCustomerAccount)
+ private static final com.google.ads.datamanager.v1.PartnerCustomerAccount DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.ads.datamanager.v1.PartnerCustomerAccount();
+ }
+
+ public static com.google.ads.datamanager.v1.PartnerCustomerAccount getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The identifier of the customer account in the partner's ID space. + *+ * + *
string account_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The accountId.
+ */
+ java.lang.String getAccountId();
+
+ /**
+ *
+ *
+ * + * Required. The identifier of the customer account in the partner's ID space. + *+ * + *
string account_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for accountId.
+ */
+ com.google.protobuf.ByteString getAccountIdBytes();
+
+ /**
+ *
+ *
+ * + * Optional. The name of the account. + *+ * + *
string account_name = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The accountName.
+ */
+ java.lang.String getAccountName();
+
+ /**
+ *
+ *
+ * + * Optional. The name of the account. + *+ * + *
string account_name = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for accountName.
+ */
+ com.google.protobuf.ByteString getAccountNameBytes();
+
+ /**
+ *
+ *
+ * + * Optional. The type of the account. Can be used to distinguish between + * advertiser accounts and business level accounts, for example. + *+ * + *
string account_type = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The accountType.
+ */
+ java.lang.String getAccountType();
+
+ /**
+ *
+ *
+ * + * Optional. The type of the account. Can be used to distinguish between + * advertiser accounts and business level accounts, for example. + *+ * + *
string account_type = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for accountType.
+ */
+ com.google.protobuf.ByteString getAccountTypeBytes();
+}
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLink.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLink.java
index 82f4198373d2..fc0e66ccd452 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLink.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLink.java
@@ -54,6 +54,7 @@ private PartnerLink(com.google.protobuf.GeneratedMessage.Builder> builder) {
private PartnerLink() {
name_ = "";
partnerLinkId_ = "";
+ featureSet_ = 0;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@@ -300,6 +301,186 @@ public com.google.ads.datamanager.v1.ProductAccountOrBuilder getPartnerAccountOr
: partnerAccount_;
}
+ public static final int FEATURE_SET_FIELD_NUMBER = 5;
+ private int featureSet_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. The set of features supported for the partner link. + * If not specified, the system behavior defaults to + * [FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT]. + *+ * + *
+ * .google.ads.datamanager.v1.FeatureSet feature_set = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The enum numeric value on the wire for featureSet.
+ */
+ @java.lang.Override
+ public int getFeatureSetValue() {
+ return featureSet_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. The set of features supported for the partner link. + * If not specified, the system behavior defaults to + * [FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT]. + *+ * + *
+ * .google.ads.datamanager.v1.FeatureSet feature_set = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The featureSet.
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.FeatureSet getFeatureSet() {
+ com.google.ads.datamanager.v1.FeatureSet result =
+ com.google.ads.datamanager.v1.FeatureSet.forNumber(featureSet_);
+ return result == null ? com.google.ads.datamanager.v1.FeatureSet.UNRECOGNIZED : result;
+ }
+
+ public static final int PARTNER_CUSTOMER_ACCOUNT_FIELD_NUMBER = 6;
+ private com.google.ads.datamanager.v1.PartnerCustomerAccount partnerCustomerAccount_;
+
+ /**
+ *
+ *
+ * + * Optional. The customer account in the partner system. + * This is required for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT] + * feature set. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the partnerCustomerAccount field is set.
+ */
+ @java.lang.Override
+ public boolean hasPartnerCustomerAccount() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The customer account in the partner system. + * This is required for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT] + * feature set. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The partnerCustomerAccount.
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.PartnerCustomerAccount getPartnerCustomerAccount() {
+ return partnerCustomerAccount_ == null
+ ? com.google.ads.datamanager.v1.PartnerCustomerAccount.getDefaultInstance()
+ : partnerCustomerAccount_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The customer account in the partner system. + * This is required for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT] + * feature set. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder
+ getPartnerCustomerAccountOrBuilder() {
+ return partnerCustomerAccount_ == null
+ ? com.google.ads.datamanager.v1.PartnerCustomerAccount.getDefaultInstance()
+ : partnerCustomerAccount_;
+ }
+
+ public static final int PARTNER_LINK_METADATA_FIELD_NUMBER = 7;
+ private com.google.ads.datamanager.v1.PartnerLinkMetadata partnerLinkMetadata_;
+
+ /**
+ *
+ *
+ * + * Optional. Metadata associated with the partner link. + * This is optional and only accepted for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the partnerLinkMetadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasPartnerLinkMetadata() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Metadata associated with the partner link. + * This is optional and only accepted for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The partnerLinkMetadata.
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.PartnerLinkMetadata getPartnerLinkMetadata() {
+ return partnerLinkMetadata_ == null
+ ? com.google.ads.datamanager.v1.PartnerLinkMetadata.getDefaultInstance()
+ : partnerLinkMetadata_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Metadata associated with the partner link. + * This is optional and only accepted for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.PartnerLinkMetadataOrBuilder
+ getPartnerLinkMetadataOrBuilder() {
+ return partnerLinkMetadata_ == null
+ ? com.google.ads.datamanager.v1.PartnerLinkMetadata.getDefaultInstance()
+ : partnerLinkMetadata_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -326,6 +507,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getPartnerAccount());
}
+ if (featureSet_
+ != com.google.ads.datamanager.v1.FeatureSet.FEATURE_SET_UNSPECIFIED.getNumber()) {
+ output.writeEnum(5, featureSet_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeMessage(6, getPartnerCustomerAccount());
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(7, getPartnerLinkMetadata());
+ }
getUnknownFields().writeTo(output);
}
@@ -347,6 +538,17 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPartnerAccount());
}
+ if (featureSet_
+ != com.google.ads.datamanager.v1.FeatureSet.FEATURE_SET_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, featureSet_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPartnerCustomerAccount());
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getPartnerLinkMetadata());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -373,6 +575,15 @@ public boolean equals(final java.lang.Object obj) {
if (hasPartnerAccount()) {
if (!getPartnerAccount().equals(other.getPartnerAccount())) return false;
}
+ if (featureSet_ != other.featureSet_) return false;
+ if (hasPartnerCustomerAccount() != other.hasPartnerCustomerAccount()) return false;
+ if (hasPartnerCustomerAccount()) {
+ if (!getPartnerCustomerAccount().equals(other.getPartnerCustomerAccount())) return false;
+ }
+ if (hasPartnerLinkMetadata() != other.hasPartnerLinkMetadata()) return false;
+ if (hasPartnerLinkMetadata()) {
+ if (!getPartnerLinkMetadata().equals(other.getPartnerLinkMetadata())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -396,6 +607,16 @@ public int hashCode() {
hash = (37 * hash) + PARTNER_ACCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getPartnerAccount().hashCode();
}
+ hash = (37 * hash) + FEATURE_SET_FIELD_NUMBER;
+ hash = (53 * hash) + featureSet_;
+ if (hasPartnerCustomerAccount()) {
+ hash = (37 * hash) + PARTNER_CUSTOMER_ACCOUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getPartnerCustomerAccount().hashCode();
+ }
+ if (hasPartnerLinkMetadata()) {
+ hash = (37 * hash) + PARTNER_LINK_METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + getPartnerLinkMetadata().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -539,6 +760,8 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
internalGetOwningAccountFieldBuilder();
internalGetPartnerAccountFieldBuilder();
+ internalGetPartnerCustomerAccountFieldBuilder();
+ internalGetPartnerLinkMetadataFieldBuilder();
}
}
@@ -558,6 +781,17 @@ public Builder clear() {
partnerAccountBuilder_.dispose();
partnerAccountBuilder_ = null;
}
+ featureSet_ = 0;
+ partnerCustomerAccount_ = null;
+ if (partnerCustomerAccountBuilder_ != null) {
+ partnerCustomerAccountBuilder_.dispose();
+ partnerCustomerAccountBuilder_ = null;
+ }
+ partnerLinkMetadata_ = null;
+ if (partnerLinkMetadataBuilder_ != null) {
+ partnerLinkMetadataBuilder_.dispose();
+ partnerLinkMetadataBuilder_ = null;
+ }
return this;
}
@@ -611,6 +845,23 @@ private void buildPartial0(com.google.ads.datamanager.v1.PartnerLink result) {
partnerAccountBuilder_ == null ? partnerAccount_ : partnerAccountBuilder_.build();
to_bitField0_ |= 0x00000002;
}
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.featureSet_ = featureSet_;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.partnerCustomerAccount_ =
+ partnerCustomerAccountBuilder_ == null
+ ? partnerCustomerAccount_
+ : partnerCustomerAccountBuilder_.build();
+ to_bitField0_ |= 0x00000004;
+ }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.partnerLinkMetadata_ =
+ partnerLinkMetadataBuilder_ == null
+ ? partnerLinkMetadata_
+ : partnerLinkMetadataBuilder_.build();
+ to_bitField0_ |= 0x00000008;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -642,6 +893,15 @@ public Builder mergeFrom(com.google.ads.datamanager.v1.PartnerLink other) {
if (other.hasPartnerAccount()) {
mergePartnerAccount(other.getPartnerAccount());
}
+ if (other.featureSet_ != 0) {
+ setFeatureSetValue(other.getFeatureSetValue());
+ }
+ if (other.hasPartnerCustomerAccount()) {
+ mergePartnerCustomerAccount(other.getPartnerCustomerAccount());
+ }
+ if (other.hasPartnerLinkMetadata()) {
+ mergePartnerLinkMetadata(other.getPartnerLinkMetadata());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -694,6 +954,27 @@ public Builder mergeFrom(
bitField0_ |= 0x00000008;
break;
} // case 34
+ case 40:
+ {
+ featureSet_ = input.readEnum();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 40
+ case 50:
+ {
+ input.readMessage(
+ internalGetPartnerCustomerAccountFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 50
+ case 58:
+ {
+ input.readMessage(
+ internalGetPartnerLinkMetadataFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 58
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1373,6 +1654,601 @@ public com.google.ads.datamanager.v1.ProductAccountOrBuilder getPartnerAccountOr
return partnerAccountBuilder_;
}
+ private int featureSet_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. The set of features supported for the partner link. + * If not specified, the system behavior defaults to + * [FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT]. + *+ * + *
+ * .google.ads.datamanager.v1.FeatureSet feature_set = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The enum numeric value on the wire for featureSet.
+ */
+ @java.lang.Override
+ public int getFeatureSetValue() {
+ return featureSet_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. The set of features supported for the partner link. + * If not specified, the system behavior defaults to + * [FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT]. + *+ * + *
+ * .google.ads.datamanager.v1.FeatureSet feature_set = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @param value The enum numeric value on the wire for featureSet to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFeatureSetValue(int value) {
+ featureSet_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. The set of features supported for the partner link. + * If not specified, the system behavior defaults to + * [FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT]. + *+ * + *
+ * .google.ads.datamanager.v1.FeatureSet feature_set = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The featureSet.
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.FeatureSet getFeatureSet() {
+ com.google.ads.datamanager.v1.FeatureSet result =
+ com.google.ads.datamanager.v1.FeatureSet.forNumber(featureSet_);
+ return result == null ? com.google.ads.datamanager.v1.FeatureSet.UNRECOGNIZED : result;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. The set of features supported for the partner link. + * If not specified, the system behavior defaults to + * [FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT]. + *+ * + *
+ * .google.ads.datamanager.v1.FeatureSet feature_set = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @param value The featureSet to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFeatureSet(com.google.ads.datamanager.v1.FeatureSet value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000010;
+ featureSet_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. The set of features supported for the partner link. + * If not specified, the system behavior defaults to + * [FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT]. + *+ * + *
+ * .google.ads.datamanager.v1.FeatureSet feature_set = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFeatureSet() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ featureSet_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.ads.datamanager.v1.PartnerCustomerAccount partnerCustomerAccount_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.datamanager.v1.PartnerCustomerAccount,
+ com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder,
+ com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder>
+ partnerCustomerAccountBuilder_;
+
+ /**
+ *
+ *
+ * + * Optional. The customer account in the partner system. + * This is required for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT] + * feature set. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the partnerCustomerAccount field is set.
+ */
+ public boolean hasPartnerCustomerAccount() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The customer account in the partner system. + * This is required for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT] + * feature set. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The partnerCustomerAccount.
+ */
+ public com.google.ads.datamanager.v1.PartnerCustomerAccount getPartnerCustomerAccount() {
+ if (partnerCustomerAccountBuilder_ == null) {
+ return partnerCustomerAccount_ == null
+ ? com.google.ads.datamanager.v1.PartnerCustomerAccount.getDefaultInstance()
+ : partnerCustomerAccount_;
+ } else {
+ return partnerCustomerAccountBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The customer account in the partner system. + * This is required for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT] + * feature set. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setPartnerCustomerAccount(
+ com.google.ads.datamanager.v1.PartnerCustomerAccount value) {
+ if (partnerCustomerAccountBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ partnerCustomerAccount_ = value;
+ } else {
+ partnerCustomerAccountBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The customer account in the partner system. + * This is required for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT] + * feature set. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setPartnerCustomerAccount(
+ com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder builderForValue) {
+ if (partnerCustomerAccountBuilder_ == null) {
+ partnerCustomerAccount_ = builderForValue.build();
+ } else {
+ partnerCustomerAccountBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The customer account in the partner system. + * This is required for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT] + * feature set. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergePartnerCustomerAccount(
+ com.google.ads.datamanager.v1.PartnerCustomerAccount value) {
+ if (partnerCustomerAccountBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0)
+ && partnerCustomerAccount_ != null
+ && partnerCustomerAccount_
+ != com.google.ads.datamanager.v1.PartnerCustomerAccount.getDefaultInstance()) {
+ getPartnerCustomerAccountBuilder().mergeFrom(value);
+ } else {
+ partnerCustomerAccount_ = value;
+ }
+ } else {
+ partnerCustomerAccountBuilder_.mergeFrom(value);
+ }
+ if (partnerCustomerAccount_ != null) {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The customer account in the partner system. + * This is required for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT] + * feature set. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearPartnerCustomerAccount() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ partnerCustomerAccount_ = null;
+ if (partnerCustomerAccountBuilder_ != null) {
+ partnerCustomerAccountBuilder_.dispose();
+ partnerCustomerAccountBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The customer account in the partner system. + * This is required for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT] + * feature set. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder
+ getPartnerCustomerAccountBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return internalGetPartnerCustomerAccountFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The customer account in the partner system. + * This is required for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT] + * feature set. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder
+ getPartnerCustomerAccountOrBuilder() {
+ if (partnerCustomerAccountBuilder_ != null) {
+ return partnerCustomerAccountBuilder_.getMessageOrBuilder();
+ } else {
+ return partnerCustomerAccount_ == null
+ ? com.google.ads.datamanager.v1.PartnerCustomerAccount.getDefaultInstance()
+ : partnerCustomerAccount_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The customer account in the partner system. + * This is required for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT] + * feature set. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.datamanager.v1.PartnerCustomerAccount,
+ com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder,
+ com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder>
+ internalGetPartnerCustomerAccountFieldBuilder() {
+ if (partnerCustomerAccountBuilder_ == null) {
+ partnerCustomerAccountBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.datamanager.v1.PartnerCustomerAccount,
+ com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder,
+ com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder>(
+ getPartnerCustomerAccount(), getParentForChildren(), isClean());
+ partnerCustomerAccount_ = null;
+ }
+ return partnerCustomerAccountBuilder_;
+ }
+
+ private com.google.ads.datamanager.v1.PartnerLinkMetadata partnerLinkMetadata_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.datamanager.v1.PartnerLinkMetadata,
+ com.google.ads.datamanager.v1.PartnerLinkMetadata.Builder,
+ com.google.ads.datamanager.v1.PartnerLinkMetadataOrBuilder>
+ partnerLinkMetadataBuilder_;
+
+ /**
+ *
+ *
+ * + * Optional. Metadata associated with the partner link. + * This is optional and only accepted for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the partnerLinkMetadata field is set.
+ */
+ public boolean hasPartnerLinkMetadata() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Metadata associated with the partner link. + * This is optional and only accepted for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The partnerLinkMetadata.
+ */
+ public com.google.ads.datamanager.v1.PartnerLinkMetadata getPartnerLinkMetadata() {
+ if (partnerLinkMetadataBuilder_ == null) {
+ return partnerLinkMetadata_ == null
+ ? com.google.ads.datamanager.v1.PartnerLinkMetadata.getDefaultInstance()
+ : partnerLinkMetadata_;
+ } else {
+ return partnerLinkMetadataBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Metadata associated with the partner link. + * This is optional and only accepted for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setPartnerLinkMetadata(com.google.ads.datamanager.v1.PartnerLinkMetadata value) {
+ if (partnerLinkMetadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ partnerLinkMetadata_ = value;
+ } else {
+ partnerLinkMetadataBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Metadata associated with the partner link. + * This is optional and only accepted for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setPartnerLinkMetadata(
+ com.google.ads.datamanager.v1.PartnerLinkMetadata.Builder builderForValue) {
+ if (partnerLinkMetadataBuilder_ == null) {
+ partnerLinkMetadata_ = builderForValue.build();
+ } else {
+ partnerLinkMetadataBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Metadata associated with the partner link. + * This is optional and only accepted for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergePartnerLinkMetadata(
+ com.google.ads.datamanager.v1.PartnerLinkMetadata value) {
+ if (partnerLinkMetadataBuilder_ == null) {
+ if (((bitField0_ & 0x00000040) != 0)
+ && partnerLinkMetadata_ != null
+ && partnerLinkMetadata_
+ != com.google.ads.datamanager.v1.PartnerLinkMetadata.getDefaultInstance()) {
+ getPartnerLinkMetadataBuilder().mergeFrom(value);
+ } else {
+ partnerLinkMetadata_ = value;
+ }
+ } else {
+ partnerLinkMetadataBuilder_.mergeFrom(value);
+ }
+ if (partnerLinkMetadata_ != null) {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Metadata associated with the partner link. + * This is optional and only accepted for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearPartnerLinkMetadata() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ partnerLinkMetadata_ = null;
+ if (partnerLinkMetadataBuilder_ != null) {
+ partnerLinkMetadataBuilder_.dispose();
+ partnerLinkMetadataBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Metadata associated with the partner link. + * This is optional and only accepted for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.ads.datamanager.v1.PartnerLinkMetadata.Builder
+ getPartnerLinkMetadataBuilder() {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return internalGetPartnerLinkMetadataFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Metadata associated with the partner link. + * This is optional and only accepted for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.ads.datamanager.v1.PartnerLinkMetadataOrBuilder
+ getPartnerLinkMetadataOrBuilder() {
+ if (partnerLinkMetadataBuilder_ != null) {
+ return partnerLinkMetadataBuilder_.getMessageOrBuilder();
+ } else {
+ return partnerLinkMetadata_ == null
+ ? com.google.ads.datamanager.v1.PartnerLinkMetadata.getDefaultInstance()
+ : partnerLinkMetadata_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Metadata associated with the partner link. + * This is optional and only accepted for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.datamanager.v1.PartnerLinkMetadata,
+ com.google.ads.datamanager.v1.PartnerLinkMetadata.Builder,
+ com.google.ads.datamanager.v1.PartnerLinkMetadataOrBuilder>
+ internalGetPartnerLinkMetadataFieldBuilder() {
+ if (partnerLinkMetadataBuilder_ == null) {
+ partnerLinkMetadataBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.datamanager.v1.PartnerLinkMetadata,
+ com.google.ads.datamanager.v1.PartnerLinkMetadata.Builder,
+ com.google.ads.datamanager.v1.PartnerLinkMetadataOrBuilder>(
+ getPartnerLinkMetadata(), getParentForChildren(), isClean());
+ partnerLinkMetadata_ = null;
+ }
+ return partnerLinkMetadataBuilder_;
+ }
+
// @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.PartnerLink)
}
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkMetadata.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkMetadata.java
new file mode 100644
index 000000000000..de1f2c56297e
--- /dev/null
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkMetadata.java
@@ -0,0 +1,985 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/ads/datamanager/v1/partner_link_service.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.ads.datamanager.v1;
+
+/**
+ *
+ *
+ * + * Represents metadata associated with a partner link. + *+ * + * Protobuf type {@code google.ads.datamanager.v1.PartnerLinkMetadata} + */ +@com.google.protobuf.Generated +public final class PartnerLinkMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.PartnerLinkMetadata) + PartnerLinkMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PartnerLinkMetadata"); + } + + // Use PartnerLinkMetadata.newBuilder() to construct. + private PartnerLinkMetadata(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private PartnerLinkMetadata() { + implicitAccounts_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.PartnerLinkServiceProto + .internal_static_google_ads_datamanager_v1_PartnerLinkMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.PartnerLinkServiceProto + .internal_static_google_ads_datamanager_v1_PartnerLinkMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.PartnerLinkMetadata.class, + com.google.ads.datamanager.v1.PartnerLinkMetadata.Builder.class); + } + + public static final int IMPLICIT_ACCOUNTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List
+ * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder>
+ getImplicitAccountsOrBuilderList() {
+ return implicitAccounts_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public int getImplicitAccountsCount() {
+ return implicitAccounts_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.PartnerCustomerAccount getImplicitAccounts(int index) {
+ return implicitAccounts_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder getImplicitAccountsOrBuilder(
+ int index) {
+ return implicitAccounts_.get(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 < implicitAccounts_.size(); i++) {
+ output.writeMessage(1, implicitAccounts_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < implicitAccounts_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, implicitAccounts_.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.datamanager.v1.PartnerLinkMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.ads.datamanager.v1.PartnerLinkMetadata other =
+ (com.google.ads.datamanager.v1.PartnerLinkMetadata) obj;
+
+ if (!getImplicitAccountsList().equals(other.getImplicitAccountsList())) 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 (getImplicitAccountsCount() > 0) {
+ hash = (37 * hash) + IMPLICIT_ACCOUNTS_FIELD_NUMBER;
+ hash = (53 * hash) + getImplicitAccountsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.ads.datamanager.v1.PartnerLinkMetadata parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.datamanager.v1.PartnerLinkMetadata 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.datamanager.v1.PartnerLinkMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.datamanager.v1.PartnerLinkMetadata 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.datamanager.v1.PartnerLinkMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.datamanager.v1.PartnerLinkMetadata parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.ads.datamanager.v1.PartnerLinkMetadata parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.datamanager.v1.PartnerLinkMetadata parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.datamanager.v1.PartnerLinkMetadata parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.datamanager.v1.PartnerLinkMetadata parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.datamanager.v1.PartnerLinkMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.datamanager.v1.PartnerLinkMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.datamanager.v1.PartnerLinkMetadata 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Represents metadata associated with a partner link. + *+ * + * Protobuf type {@code google.ads.datamanager.v1.PartnerLinkMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getImplicitAccountsCount() {
+ if (implicitAccountsBuilder_ == null) {
+ return implicitAccounts_.size();
+ } else {
+ return implicitAccountsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.ads.datamanager.v1.PartnerCustomerAccount getImplicitAccounts(int index) {
+ if (implicitAccountsBuilder_ == null) {
+ return implicitAccounts_.get(index);
+ } else {
+ return implicitAccountsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setImplicitAccounts(
+ int index, com.google.ads.datamanager.v1.PartnerCustomerAccount value) {
+ if (implicitAccountsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureImplicitAccountsIsMutable();
+ implicitAccounts_.set(index, value);
+ onChanged();
+ } else {
+ implicitAccountsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setImplicitAccounts(
+ int index, com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder builderForValue) {
+ if (implicitAccountsBuilder_ == null) {
+ ensureImplicitAccountsIsMutable();
+ implicitAccounts_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ implicitAccountsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addImplicitAccounts(com.google.ads.datamanager.v1.PartnerCustomerAccount value) {
+ if (implicitAccountsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureImplicitAccountsIsMutable();
+ implicitAccounts_.add(value);
+ onChanged();
+ } else {
+ implicitAccountsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addImplicitAccounts(
+ int index, com.google.ads.datamanager.v1.PartnerCustomerAccount value) {
+ if (implicitAccountsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureImplicitAccountsIsMutable();
+ implicitAccounts_.add(index, value);
+ onChanged();
+ } else {
+ implicitAccountsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addImplicitAccounts(
+ com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder builderForValue) {
+ if (implicitAccountsBuilder_ == null) {
+ ensureImplicitAccountsIsMutable();
+ implicitAccounts_.add(builderForValue.build());
+ onChanged();
+ } else {
+ implicitAccountsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addImplicitAccounts(
+ int index, com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder builderForValue) {
+ if (implicitAccountsBuilder_ == null) {
+ ensureImplicitAccountsIsMutable();
+ implicitAccounts_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ implicitAccountsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAllImplicitAccounts(
+ java.lang.Iterable extends com.google.ads.datamanager.v1.PartnerCustomerAccount> values) {
+ if (implicitAccountsBuilder_ == null) {
+ ensureImplicitAccountsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, implicitAccounts_);
+ onChanged();
+ } else {
+ implicitAccountsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearImplicitAccounts() {
+ if (implicitAccountsBuilder_ == null) {
+ implicitAccounts_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ implicitAccountsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeImplicitAccounts(int index) {
+ if (implicitAccountsBuilder_ == null) {
+ ensureImplicitAccountsIsMutable();
+ implicitAccounts_.remove(index);
+ onChanged();
+ } else {
+ implicitAccountsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder getImplicitAccountsBuilder(
+ int index) {
+ return internalGetImplicitAccountsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder
+ getImplicitAccountsOrBuilder(int index) {
+ if (implicitAccountsBuilder_ == null) {
+ return implicitAccounts_.get(index);
+ } else {
+ return implicitAccountsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List extends com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder>
+ getImplicitAccountsOrBuilderList() {
+ if (implicitAccountsBuilder_ != null) {
+ return implicitAccountsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(implicitAccounts_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder
+ addImplicitAccountsBuilder() {
+ return internalGetImplicitAccountsFieldBuilder()
+ .addBuilder(com.google.ads.datamanager.v1.PartnerCustomerAccount.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder addImplicitAccountsBuilder(
+ int index) {
+ return internalGetImplicitAccountsFieldBuilder()
+ .addBuilder(
+ index, com.google.ads.datamanager.v1.PartnerCustomerAccount.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List+ * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.ads.datamanager.v1.PartnerCustomerAccount getImplicitAccounts(int index);
+
+ /**
+ *
+ *
+ * + * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getImplicitAccountsCount();
+
+ /**
+ *
+ *
+ * + * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List extends com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder>
+ getImplicitAccountsOrBuilderList();
+
+ /**
+ *
+ *
+ * + * Optional. The list of implicit accounts. + *+ * + *
+ * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder getImplicitAccountsOrBuilder(
+ int index);
+}
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkOrBuilder.java
index ba31e2586cb5..56ff11b12874 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkOrBuilder.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkOrBuilder.java
@@ -167,4 +167,140 @@ public interface PartnerLinkOrBuilder
*
*/
com.google.ads.datamanager.v1.ProductAccountOrBuilder getPartnerAccountOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. The set of features supported for the partner link. + * If not specified, the system behavior defaults to + * [FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT]. + *+ * + *
+ * .google.ads.datamanager.v1.FeatureSet feature_set = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The enum numeric value on the wire for featureSet.
+ */
+ int getFeatureSetValue();
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. The set of features supported for the partner link. + * If not specified, the system behavior defaults to + * [FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT]. + *+ * + *
+ * .google.ads.datamanager.v1.FeatureSet feature_set = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The featureSet.
+ */
+ com.google.ads.datamanager.v1.FeatureSet getFeatureSet();
+
+ /**
+ *
+ *
+ * + * Optional. The customer account in the partner system. + * This is required for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT] + * feature set. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the partnerCustomerAccount field is set.
+ */
+ boolean hasPartnerCustomerAccount();
+
+ /**
+ *
+ *
+ * + * Optional. The customer account in the partner system. + * This is required for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT] + * feature set. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The partnerCustomerAccount.
+ */
+ com.google.ads.datamanager.v1.PartnerCustomerAccount getPartnerCustomerAccount();
+
+ /**
+ *
+ *
+ * + * Optional. The customer account in the partner system. + * This is required for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT] + * feature set. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder
+ getPartnerCustomerAccountOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. Metadata associated with the partner link. + * This is optional and only accepted for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the partnerLinkMetadata field is set.
+ */
+ boolean hasPartnerLinkMetadata();
+
+ /**
+ *
+ *
+ * + * Optional. Metadata associated with the partner link. + * This is optional and only accepted for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The partnerLinkMetadata.
+ */
+ com.google.ads.datamanager.v1.PartnerLinkMetadata getPartnerLinkMetadata();
+
+ /**
+ *
+ *
+ * + * Optional. Metadata associated with the partner link. + * This is optional and only accepted for partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]. + *+ * + *
+ * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.ads.datamanager.v1.PartnerLinkMetadataOrBuilder getPartnerLinkMetadataOrBuilder();
}
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkServiceProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkServiceProto.java
index 9767dd1e026c..c85fd546c55a 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkServiceProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkServiceProto.java
@@ -60,6 +60,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_ads_datamanager_v1_PartnerLink_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_ads_datamanager_v1_PartnerLink_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_ads_datamanager_v1_PartnerCustomerAccount_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_ads_datamanager_v1_PartnerCustomerAccount_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_ads_datamanager_v1_PartnerLinkMetadata_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_ads_datamanager_v1_PartnerLinkMetadata_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -69,59 +77,75 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
- "\n4google/ads/datamanager/v1/partner_link"
- + "_service.proto\022\031google.ads.datamanager.v"
+ "\n"
+ + "4google/ads/datamanager/v1/partner_link_service.proto\022\031google.ads.datamanager.v"
+ "1\032+google/ads/datamanager/v1/destination"
+ ".proto\032\034google/api/annotations.proto\032\027go"
+ "ogle/api/client.proto\032\037google/api/field_"
- + "behavior.proto\032\031google/api/resource.prot"
- + "o\032\033google/protobuf/empty.proto\"\235\001\n\030Creat"
- + "ePartnerLinkRequest\022>\n\006parent\030\001 \001(\tB.\340A\002"
- + "\372A(\022&datamanager.googleapis.com/PartnerL"
- + "ink\022A\n\014partner_link\030\002 \001(\0132&.google.ads.d"
- + "atamanager.v1.PartnerLinkB\003\340A\002\"X\n\030Delete"
- + "PartnerLinkRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A("
- + "\n&datamanager.googleapis.com/PartnerLink"
- + "\"\227\001\n\031SearchPartnerLinksRequest\022>\n\006parent"
- + "\030\001 \001(\tB.\340A\002\372A(\022&datamanager.googleapis.c"
- + "om/PartnerLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag"
- + "e_token\030\003 \001(\t\022\023\n\006filter\030\004 \001(\tB\003\340A\001\"t\n\032Se"
- + "archPartnerLinksResponse\022=\n\rpartner_link"
- + "s\030\001 \003(\0132&.google.ads.datamanager.v1.Part"
- + "nerLink\022\027\n\017next_page_token\030\002 \001(\t\"\345\002\n\013Par"
- + "tnerLink\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\034\n\017partner_l"
- + "ink_id\030\002 \001(\tB\003\340A\003\022F\n\016owning_account\030\003 \001("
- + "\0132).google.ads.datamanager.v1.ProductAcc"
- + "ountB\003\340A\002\022G\n\017partner_account\030\004 \001(\0132).goo"
- + "gle.ads.datamanager.v1.ProductAccountB\003\340"
- + "A\002:\223\001\352A\217\001\n&datamanager.googleapis.com/Pa"
- + "rtnerLink\022JaccountTypes/{account_type}/a"
- + "ccounts/{account}/partnerLinks/{partner_"
- + "link}*\014partnerLinks2\013partnerLink2\346\005\n\022Par"
- + "tnerLinkService\022\321\001\n\021CreatePartnerLink\0223."
- + "google.ads.datamanager.v1.CreatePartnerL"
- + "inkRequest\032&.google.ads.datamanager.v1.P"
- + "artnerLink\"_\332A\023parent,partner_link\202\323\344\223\002C"
- + "\"3/v1/{parent=accountTypes/*/accounts/*}"
- + "/partnerLinks:\014partner_link\022\244\001\n\021DeletePa"
- + "rtnerLink\0223.google.ads.datamanager.v1.De"
- + "letePartnerLinkRequest\032\026.google.protobuf"
- + ".Empty\"B\332A\004name\202\323\344\223\0025*3/v1/{name=account"
- + "Types/*/accounts/*/partnerLinks/*}\022\316\001\n\022S"
- + "earchPartnerLinks\0224.google.ads.datamanag"
- + "er.v1.SearchPartnerLinksRequest\0325.google"
- + ".ads.datamanager.v1.SearchPartnerLinksRe"
- + "sponse\"K\332A\006parent\202\323\344\223\002<\022:/v1/{parent=acc"
- + "ountTypes/*/accounts/*}/partnerLinks:sea"
- + "rch\032\203\001\312A\032datamanager.googleapis.com\322Acht"
- + "tps://www.googleapis.com/auth/datamanage"
- + "r,https://www.googleapis.com/auth/datama"
- + "nager.partnerlinkB\324\001\n\035com.google.ads.dat"
- + "amanager.v1B\027PartnerLinkServiceProtoP\001ZA"
- + "cloud.google.com/go/datamanager/apiv1/da"
- + "tamanagerpb;datamanagerpb\252\002\031Google.Ads.D"
- + "ataManager.V1\312\002\031Google\\Ads\\DataManager\\V"
- + "1\352\002\034Google::Ads::DataManager::V1b\006proto3"
+ + "behavior.proto\032\031google/api/resource.proto\032\033google/protobuf/empty.proto\"\235\001\n"
+ + "\030CreatePartnerLinkRequest\022>\n"
+ + "\006parent\030\001 \001(\tB.\340A\002"
+ + "\372A(\022&datamanager.googleapis.com/PartnerLink\022A\n"
+ + "\014partner_link\030\002"
+ + " \001(\0132&.google.ads.datamanager.v1.PartnerLinkB\003\340A\002\"X\n"
+ + "\030DeletePartnerLinkRequest\022<\n"
+ + "\004name\030\001 \001(\tB.\340A\002\372A(\n"
+ + "&datamanager.googleapis.com/PartnerLink\"\227\001\n"
+ + "\031SearchPartnerLinksRequest\022>\n"
+ + "\006parent\030\001 \001("
+ + "\tB.\340A\002\372A(\022&datamanager.googleapis.com/PartnerLink\022\021\n"
+ + "\tpage_size\030\002 \001(\005\022\022\n\n"
+ + "page_token\030\003 \001(\t\022\023\n"
+ + "\006filter\030\004 \001(\tB\003\340A\001\"t\n"
+ + "\032SearchPartnerLinksResponse\022=\n\r"
+ + "partner_links\030\001 \003(\0132&.google.ads.datamanager.v1.PartnerLink\022\027\n"
+ + "\017next_page_token\030\002 \001(\t\"\327\004\n"
+ + "\013PartnerLink\022\021\n"
+ + "\004name\030\001 \001(\tB\003\340A\010\022\034\n"
+ + "\017partner_link_id\030\002 \001(\tB\003\340A\003\022F\n"
+ + "\016owning_account\030\003 \001("
+ + "\0132).google.ads.datamanager.v1.ProductAccountB\003\340A\002\022G\n"
+ + "\017partner_account\030\004 \001(\0132).goo"
+ + "gle.ads.datamanager.v1.ProductAccountB\003\340A\002\022B\n"
+ + "\013feature_set\030\005"
+ + " \001(\0162%.google.ads.datamanager.v1.FeatureSetB\006\340A\001\340A\005\022X\n"
+ + "\030partner_customer_account\030\006 \001(\01321.google.ads.da"
+ + "tamanager.v1.PartnerCustomerAccountB\003\340A\001\022R\n"
+ + "\025partner_link_metadata\030\007 \001(\0132..google"
+ + ".ads.datamanager.v1.PartnerLinkMetadataB\003\340A\001:\223\001\352A\217\001\n"
+ + "&datamanager.googleapis.com/PartnerLink\022JaccountTypes/{account_type}"
+ + "/accounts/{account}/partnerLinks/{partner_link}*\014partnerLinks2\013partnerLink\"g\n"
+ + "\026PartnerCustomerAccount\022\027\n\n"
+ + "account_id\030\001 \001(\tB\003\340A\002\022\031\n"
+ + "\014account_name\030\002 \001(\tB\003\340A\001\022\031\n"
+ + "\014account_type\030\003 \001(\tB\003\340A\001\"h\n"
+ + "\023PartnerLinkMetadata\022Q\n"
+ + "\021implicit_accounts\030\001 \003(\01321.google.a"
+ + "ds.datamanager.v1.PartnerCustomerAccountB\003\340A\001*}\n\n"
+ + "FeatureSet\022\033\n"
+ + "\027FEATURE_SET_UNSPECIFIED\020\000\022-\n"
+ + ")FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT\020\001\022#\n"
+ + "\037FEATURE_SET_AD_EVENT_MANAGEMENT\020\0022\346\005\n"
+ + "\022PartnerLinkService\022\321\001\n"
+ + "\021CreatePartnerLink\0223.google.ads.datamanag"
+ + "er.v1.CreatePartnerLinkRequest\032&.google."
+ + "ads.datamanager.v1.PartnerLink\"_\332A\023paren"
+ + "t,partner_link\202\323\344\223\002C\"3/v1/{parent=accoun"
+ + "tTypes/*/accounts/*}/partnerLinks:\014partner_link\022\244\001\n"
+ + "\021DeletePartnerLink\0223.google.ads.datamanager.v1.DeletePartnerLinkReque"
+ + "st\032\026.google.protobuf.Empty\"B\332A\004name\202\323\344\223\002"
+ + "5*3/v1/{name=accountTypes/*/accounts/*/partnerLinks/*}\022\316\001\n"
+ + "\022SearchPartnerLinks\0224.google.ads.datamanager.v1.SearchPartnerL"
+ + "inksRequest\0325.google.ads.datamanager.v1."
+ + "SearchPartnerLinksResponse\"K\332A\006parent\202\323\344"
+ + "\223\002<\022:/v1/{parent=accountTypes/*/accounts"
+ + "/*}/partnerLinks:search\032\203\001\312A\032datamanager"
+ + ".googleapis.com\322Achttps://www.googleapis.com/auth/datamanager,https://www.google"
+ + "apis.com/auth/datamanager.partnerlinkB\324\001\n"
+ + "\035com.google.ads.datamanager.v1B\027Partner"
+ + "LinkServiceProtoP\001ZAcloud.google.com/go/datamanager/apiv1/datamanagerpb;datamana"
+ + "gerpb\252\002\031Google.Ads.DataManager.V1\312\002\031Goog"
+ + "le\\Ads\\DataManager\\V1\352\002\034Google::Ads::DataManager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -172,7 +196,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_ads_datamanager_v1_PartnerLink_descriptor,
new java.lang.String[] {
- "Name", "PartnerLinkId", "OwningAccount", "PartnerAccount",
+ "Name",
+ "PartnerLinkId",
+ "OwningAccount",
+ "PartnerAccount",
+ "FeatureSet",
+ "PartnerCustomerAccount",
+ "PartnerLinkMetadata",
+ });
+ internal_static_google_ads_datamanager_v1_PartnerCustomerAccount_descriptor =
+ getDescriptor().getMessageType(5);
+ internal_static_google_ads_datamanager_v1_PartnerCustomerAccount_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_ads_datamanager_v1_PartnerCustomerAccount_descriptor,
+ new java.lang.String[] {
+ "AccountId", "AccountName", "AccountType",
+ });
+ internal_static_google_ads_datamanager_v1_PartnerLinkMetadata_descriptor =
+ getDescriptor().getMessageType(6);
+ internal_static_google_ads_datamanager_v1_PartnerLinkMetadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_ads_datamanager_v1_PartnerLinkMetadata_descriptor,
+ new java.lang.String[] {
+ "ImplicitAccounts",
});
descriptor.resolveAllFeaturesImmutable();
com.google.ads.datamanager.v1.DestinationProto.getDescriptor();
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/Platform.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/Platform.java
new file mode 100644
index 000000000000..254b89d681d5
--- /dev/null
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/Platform.java
@@ -0,0 +1,214 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/ads/datamanager/v1/ad_event.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.ads.datamanager.v1;
+
+/**
+ *
+ *
+ * + * Further detail of the platform on which the ad was served. + *+ * + * Protobuf enum {@code google.ads.datamanager.v1.Platform} + */ +@com.google.protobuf.Generated +public enum Platform implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified platform. + *+ * + *
PLATFORM_UNSPECIFIED = 0;
+ */
+ PLATFORM_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * iOS platform. + *+ * + *
PLATFORM_IOS = 1;
+ */
+ PLATFORM_IOS(1),
+ /**
+ *
+ *
+ * + * Android platform. + *+ * + *
PLATFORM_ANDROID = 2;
+ */
+ PLATFORM_ANDROID(2),
+ /**
+ *
+ *
+ * + * Web platform. + *+ * + *
PLATFORM_WEB = 3;
+ */
+ PLATFORM_WEB(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "Platform");
+ }
+
+ /**
+ *
+ *
+ * + * Unspecified platform. + *+ * + *
PLATFORM_UNSPECIFIED = 0;
+ */
+ public static final int PLATFORM_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * iOS platform. + *+ * + *
PLATFORM_IOS = 1;
+ */
+ public static final int PLATFORM_IOS_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * Android platform. + *+ * + *
PLATFORM_ANDROID = 2;
+ */
+ public static final int PLATFORM_ANDROID_VALUE = 2;
+
+ /**
+ *
+ *
+ * + * Web platform. + *+ * + *
PLATFORM_WEB = 3;
+ */
+ public static final int PLATFORM_WEB_VALUE = 3;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static Platform valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static Platform forNumber(int value) {
+ switch (value) {
+ case 0:
+ return PLATFORM_UNSPECIFIED;
+ case 1:
+ return PLATFORM_IOS;
+ case 2:
+ return PLATFORM_ANDROID;
+ case 3:
+ return PLATFORM_WEB;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * The type of the platform on which the ad was served. + *+ * + * Protobuf enum {@code google.ads.datamanager.v1.PlatformType} + */ +@com.google.protobuf.Generated +public enum PlatformType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified platform type. + *+ * + *
PLATFORM_TYPE_UNSPECIFIED = 0;
+ */
+ PLATFORM_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Mobile platform. + *+ * + *
PLATFORM_TYPE_MOBILE = 1;
+ */
+ PLATFORM_TYPE_MOBILE(1),
+ /**
+ *
+ *
+ * + * Desktop platform. + *+ * + *
PLATFORM_TYPE_DESKTOP = 2;
+ */
+ PLATFORM_TYPE_DESKTOP(2),
+ /**
+ *
+ *
+ * + * CTV platform. + *+ * + *
PLATFORM_TYPE_CTV = 3;
+ */
+ PLATFORM_TYPE_CTV(3),
+ /**
+ *
+ *
+ * + * Phone platform. + *+ * + *
PLATFORM_TYPE_PHONE = 4;
+ */
+ PLATFORM_TYPE_PHONE(4),
+ /**
+ *
+ *
+ * + * Tablet platform. + *+ * + *
PLATFORM_TYPE_TABLET = 5;
+ */
+ PLATFORM_TYPE_TABLET(5),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "PlatformType");
+ }
+
+ /**
+ *
+ *
+ * + * Unspecified platform type. + *+ * + *
PLATFORM_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int PLATFORM_TYPE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * Mobile platform. + *+ * + *
PLATFORM_TYPE_MOBILE = 1;
+ */
+ public static final int PLATFORM_TYPE_MOBILE_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * Desktop platform. + *+ * + *
PLATFORM_TYPE_DESKTOP = 2;
+ */
+ public static final int PLATFORM_TYPE_DESKTOP_VALUE = 2;
+
+ /**
+ *
+ *
+ * + * CTV platform. + *+ * + *
PLATFORM_TYPE_CTV = 3;
+ */
+ public static final int PLATFORM_TYPE_CTV_VALUE = 3;
+
+ /**
+ *
+ *
+ * + * Phone platform. + *+ * + *
PLATFORM_TYPE_PHONE = 4;
+ */
+ public static final int PLATFORM_TYPE_PHONE_VALUE = 4;
+
+ /**
+ *
+ *
+ * + * Tablet platform. + *+ * + *
PLATFORM_TYPE_TABLET = 5;
+ */
+ public static final int PLATFORM_TYPE_TABLET_VALUE = 5;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static PlatformType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static PlatformType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return PLATFORM_TYPE_UNSPECIFIED;
+ case 1:
+ return PLATFORM_TYPE_MOBILE;
+ case 2:
+ return PLATFORM_TYPE_DESKTOP;
+ case 3:
+ return PLATFORM_TYPE_CTV;
+ case 4:
+ return PLATFORM_TYPE_PHONE;
+ case 5:
+ return PLATFORM_TYPE_TABLET;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
- * Optional. The type of the account. For example, `GOOGLE_ADS`.
+ * Required. The type of the account. For example, `GOOGLE_ADS`.
* Either `account_type` or the deprecated `product` is required.
* If both are set, the values must match.
*
*
*
- * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The enum numeric value on the wire for accountType.
@@ -484,13 +484,13 @@ public int getAccountTypeValue() {
*
*
*
- * Optional. The type of the account. For example, `GOOGLE_ADS`.
+ * Required. The type of the account. For example, `GOOGLE_ADS`.
* Either `account_type` or the deprecated `product` is required.
* If both are set, the values must match.
*
*
*
- * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The accountType.
@@ -1098,13 +1098,13 @@ public Builder setAccountIdBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Optional. The type of the account. For example, `GOOGLE_ADS`.
+ * Required. The type of the account. For example, `GOOGLE_ADS`.
* Either `account_type` or the deprecated `product` is required.
* If both are set, the values must match.
*
*
*
- * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The enum numeric value on the wire for accountType.
@@ -1118,13 +1118,13 @@ public int getAccountTypeValue() {
*
*
*
- * Optional. The type of the account. For example, `GOOGLE_ADS`.
+ * Required. The type of the account. For example, `GOOGLE_ADS`.
* Either `account_type` or the deprecated `product` is required.
* If both are set, the values must match.
*
*
*
- * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = REQUIRED];
*
*
* @param value The enum numeric value on the wire for accountType to set.
@@ -1141,13 +1141,13 @@ public Builder setAccountTypeValue(int value) {
*
*
*
- * Optional. The type of the account. For example, `GOOGLE_ADS`.
+ * Required. The type of the account. For example, `GOOGLE_ADS`.
* Either `account_type` or the deprecated `product` is required.
* If both are set, the values must match.
*
*
*
- * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The accountType.
@@ -1165,13 +1165,13 @@ public com.google.ads.datamanager.v1.ProductAccount.AccountType getAccountType()
*
*
*
- * Optional. The type of the account. For example, `GOOGLE_ADS`.
+ * Required. The type of the account. For example, `GOOGLE_ADS`.
* Either `account_type` or the deprecated `product` is required.
* If both are set, the values must match.
*
*
*
- * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = REQUIRED];
*
*
* @param value The accountType to set.
@@ -1191,13 +1191,13 @@ public Builder setAccountType(com.google.ads.datamanager.v1.ProductAccount.Accou
*
*
*
- * Optional. The type of the account. For example, `GOOGLE_ADS`.
+ * Required. The type of the account. For example, `GOOGLE_ADS`.
* Either `account_type` or the deprecated `product` is required.
* If both are set, the values must match.
*
*
*
- * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return This builder for chaining.
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProductAccountOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProductAccountOrBuilder.java
index 90ce9ceab24d..36392b288c03 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProductAccountOrBuilder.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProductAccountOrBuilder.java
@@ -92,13 +92,13 @@ public interface ProductAccountOrBuilder
*
*
*
- * Optional. The type of the account. For example, `GOOGLE_ADS`.
+ * Required. The type of the account. For example, `GOOGLE_ADS`.
* Either `account_type` or the deprecated `product` is required.
* If both are set, the values must match.
*
*
*
- * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The enum numeric value on the wire for accountType.
@@ -109,13 +109,13 @@ public interface ProductAccountOrBuilder
*
*
*
- * Optional. The type of the account. For example, `GOOGLE_ADS`.
+ * Required. The type of the account. For example, `GOOGLE_ADS`.
* Either `account_type` or the deprecated `product` is required.
* If both are set, the values must match.
*
*
*
- * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The accountType.
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/TargetingType.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/TargetingType.java
new file mode 100644
index 000000000000..aa96b85fd6c0
--- /dev/null
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/TargetingType.java
@@ -0,0 +1,329 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/ads/datamanager/v1/ad_event.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.ads.datamanager.v1;
+
+/**
+ *
+ *
+ * + * The type of targeting used to serve the ad. + *+ * + * Protobuf enum {@code google.ads.datamanager.v1.TargetingType} + */ +@com.google.protobuf.Generated +public enum TargetingType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified targeting type. + *+ * + *
TARGETING_TYPE_UNSPECIFIED = 0;
+ */
+ TARGETING_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Audience targeting. + *+ * + *
TARGETING_TYPE_AUDIENCE = 1;
+ */
+ TARGETING_TYPE_AUDIENCE(1),
+ /**
+ *
+ *
+ * + * Contextual targeting. + *+ * + *
TARGETING_TYPE_CONTEXTUAL = 2;
+ */
+ TARGETING_TYPE_CONTEXTUAL(2),
+ /**
+ *
+ *
+ * + * Demographic targeting. + *+ * + *
TARGETING_TYPE_DEMOGRAPHIC = 3;
+ */
+ TARGETING_TYPE_DEMOGRAPHIC(3),
+ /**
+ *
+ *
+ * + * Device targeting. + *+ * + *
TARGETING_TYPE_DEVICE = 4;
+ */
+ TARGETING_TYPE_DEVICE(4),
+ /**
+ *
+ *
+ * + * Geo targeting. + *+ * + *
TARGETING_TYPE_GEO = 5;
+ */
+ TARGETING_TYPE_GEO(5),
+ /**
+ *
+ *
+ * + * Interest targeting. + *+ * + *
TARGETING_TYPE_INTEREST = 6;
+ */
+ TARGETING_TYPE_INTEREST(6),
+ /**
+ *
+ *
+ * + * Purchase intent targeting. + *+ * + *
TARGETING_TYPE_PURCHASE_INTENT = 7;
+ */
+ TARGETING_TYPE_PURCHASE_INTENT(7),
+ /**
+ *
+ *
+ * + * Remarketing targeting. + *+ * + *
TARGETING_TYPE_REMARKETING = 8;
+ */
+ TARGETING_TYPE_REMARKETING(8),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "TargetingType");
+ }
+
+ /**
+ *
+ *
+ * + * Unspecified targeting type. + *+ * + *
TARGETING_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int TARGETING_TYPE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * Audience targeting. + *+ * + *
TARGETING_TYPE_AUDIENCE = 1;
+ */
+ public static final int TARGETING_TYPE_AUDIENCE_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * Contextual targeting. + *+ * + *
TARGETING_TYPE_CONTEXTUAL = 2;
+ */
+ public static final int TARGETING_TYPE_CONTEXTUAL_VALUE = 2;
+
+ /**
+ *
+ *
+ * + * Demographic targeting. + *+ * + *
TARGETING_TYPE_DEMOGRAPHIC = 3;
+ */
+ public static final int TARGETING_TYPE_DEMOGRAPHIC_VALUE = 3;
+
+ /**
+ *
+ *
+ * + * Device targeting. + *+ * + *
TARGETING_TYPE_DEVICE = 4;
+ */
+ public static final int TARGETING_TYPE_DEVICE_VALUE = 4;
+
+ /**
+ *
+ *
+ * + * Geo targeting. + *+ * + *
TARGETING_TYPE_GEO = 5;
+ */
+ public static final int TARGETING_TYPE_GEO_VALUE = 5;
+
+ /**
+ *
+ *
+ * + * Interest targeting. + *+ * + *
TARGETING_TYPE_INTEREST = 6;
+ */
+ public static final int TARGETING_TYPE_INTEREST_VALUE = 6;
+
+ /**
+ *
+ *
+ * + * Purchase intent targeting. + *+ * + *
TARGETING_TYPE_PURCHASE_INTENT = 7;
+ */
+ public static final int TARGETING_TYPE_PURCHASE_INTENT_VALUE = 7;
+
+ /**
+ *
+ *
+ * + * Remarketing targeting. + *+ * + *
TARGETING_TYPE_REMARKETING = 8;
+ */
+ public static final int TARGETING_TYPE_REMARKETING_VALUE = 8;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static TargetingType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static TargetingType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return TARGETING_TYPE_UNSPECIFIED;
+ case 1:
+ return TARGETING_TYPE_AUDIENCE;
+ case 2:
+ return TARGETING_TYPE_CONTEXTUAL;
+ case 3:
+ return TARGETING_TYPE_DEMOGRAPHIC;
+ case 4:
+ return TARGETING_TYPE_DEVICE;
+ case 5:
+ return TARGETING_TYPE_GEO;
+ case 6:
+ return TARGETING_TYPE_INTEREST;
+ case 7:
+ return TARGETING_TYPE_PURCHASE_INTENT;
+ case 8:
+ return TARGETING_TYPE_REMARKETING;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * The type of the event. + *+ * + * Protobuf enum {@code google.ads.datamanager.v1.ViewType} + */ +@com.google.protobuf.Generated +public enum ViewType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified view type. + *+ * + *
VIEW_TYPE_UNSPECIFIED = 0;
+ */
+ VIEW_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * MRC viewed. + *+ * + *
VIEW_TYPE_MRC_VIEWED = 1;
+ */
+ VIEW_TYPE_MRC_VIEWED(1),
+ /**
+ *
+ *
+ * + * MRC rendered. + *+ * + *
VIEW_TYPE_MRC_RENDERED = 2;
+ */
+ VIEW_TYPE_MRC_RENDERED(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "ViewType");
+ }
+
+ /**
+ *
+ *
+ * + * Unspecified view type. + *+ * + *
VIEW_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int VIEW_TYPE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * MRC viewed. + *+ * + *
VIEW_TYPE_MRC_VIEWED = 1;
+ */
+ public static final int VIEW_TYPE_MRC_VIEWED_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * MRC rendered. + *+ * + *
VIEW_TYPE_MRC_RENDERED = 2;
+ */
+ public static final int VIEW_TYPE_MRC_RENDERED_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static ViewType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static ViewType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return VIEW_TYPE_UNSPECIFIED;
+ case 1:
+ return VIEW_TYPE_MRC_VIEWED;
+ case 2:
+ return VIEW_TYPE_MRC_RENDERED;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Details of the viewability of the ad served. + *+ * + * Protobuf type {@code google.ads.datamanager.v1.ViewabilityInfo} + */ +@com.google.protobuf.Generated +public final class ViewabilityInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.ViewabilityInfo) + ViewabilityInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ViewabilityInfo"); + } + + // Use ViewabilityInfo.newBuilder() to construct. + private ViewabilityInfo(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private ViewabilityInfo() { + viewType_ = 0; + mediaQuartile_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.ViewabilityInfoProto + .internal_static_google_ads_datamanager_v1_ViewabilityInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.ViewabilityInfoProto + .internal_static_google_ads_datamanager_v1_ViewabilityInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.ViewabilityInfo.class, + com.google.ads.datamanager.v1.ViewabilityInfo.Builder.class); + } + + private int bitField0_; + public static final int VIEW_TYPE_FIELD_NUMBER = 1; + private int viewType_ = 0; + + /** + * + * + *
+ * Required. The type of the event. + *+ * + *
+ * .google.ads.datamanager.v1.ViewType view_type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The enum numeric value on the wire for viewType.
+ */
+ @java.lang.Override
+ public int getViewTypeValue() {
+ return viewType_;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The type of the event. + *+ * + *
+ * .google.ads.datamanager.v1.ViewType view_type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The viewType.
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.ViewType getViewType() {
+ com.google.ads.datamanager.v1.ViewType result =
+ com.google.ads.datamanager.v1.ViewType.forNumber(viewType_);
+ return result == null ? com.google.ads.datamanager.v1.ViewType.UNRECOGNIZED : result;
+ }
+
+ public static final int VIEWABLE_PERCENT_FIELD_NUMBER = 2;
+ private int viewablePercent_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. The numerical percent (0-100) of the pixels that were viewable. + *+ * + *
int32 viewable_percent = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The viewablePercent.
+ */
+ @java.lang.Override
+ public int getViewablePercent() {
+ return viewablePercent_;
+ }
+
+ public static final int VIEWABLE_DURATION_FIELD_NUMBER = 3;
+ private com.google.protobuf.Duration viewableDuration_;
+
+ /**
+ *
+ *
+ * + * Optional. The amount of time the ad was viewable for. + *+ * + *
+ * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the viewableDuration field is set.
+ */
+ @java.lang.Override
+ public boolean hasViewableDuration() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The amount of time the ad was viewable for. + *+ * + *
+ * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The viewableDuration.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getViewableDuration() {
+ return viewableDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : viewableDuration_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The amount of time the ad was viewable for. + *+ * + *
+ * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getViewableDurationOrBuilder() {
+ return viewableDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : viewableDuration_;
+ }
+
+ public static final int MEDIA_SKIPPABLE_FIELD_NUMBER = 4;
+ private boolean mediaSkippable_ = false;
+
+ /**
+ *
+ *
+ * + * Optional. Whether the ad media was skippable or not. + *+ * + *
bool media_skippable = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The mediaSkippable.
+ */
+ @java.lang.Override
+ public boolean getMediaSkippable() {
+ return mediaSkippable_;
+ }
+
+ public static final int MEDIA_QUARTILE_FIELD_NUMBER = 5;
+ private int mediaQuartile_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. The amount of the media that was played as discrete quartiles. + *+ * + *
+ * .google.ads.datamanager.v1.MediaQuartile media_quartile = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for mediaQuartile.
+ */
+ @java.lang.Override
+ public int getMediaQuartileValue() {
+ return mediaQuartile_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The amount of the media that was played as discrete quartiles. + *+ * + *
+ * .google.ads.datamanager.v1.MediaQuartile media_quartile = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The mediaQuartile.
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.MediaQuartile getMediaQuartile() {
+ com.google.ads.datamanager.v1.MediaQuartile result =
+ com.google.ads.datamanager.v1.MediaQuartile.forNumber(mediaQuartile_);
+ return result == null ? com.google.ads.datamanager.v1.MediaQuartile.UNRECOGNIZED : result;
+ }
+
+ public static final int MEDIA_DURATION_FIELD_NUMBER = 6;
+ private com.google.protobuf.Duration mediaDuration_;
+
+ /**
+ *
+ *
+ * + * Optional. The duration of the ad media. + *+ * + *
.google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the mediaDuration field is set.
+ */
+ @java.lang.Override
+ public boolean hasMediaDuration() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The duration of the ad media. + *+ * + *
.google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The mediaDuration.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getMediaDuration() {
+ return mediaDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : mediaDuration_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The duration of the ad media. + *+ * + *
.google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getMediaDurationOrBuilder() {
+ return mediaDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : mediaDuration_;
+ }
+
+ public static final int MEDIA_VOLUME_PERCENT_FIELD_NUMBER = 7;
+ private int mediaVolumePercent_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. The numerical percent (0-100) of the volume of the media + * playback. + *+ * + *
int32 media_volume_percent = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The mediaVolumePercent.
+ */
+ @java.lang.Override
+ public int getMediaVolumePercent() {
+ return mediaVolumePercent_;
+ }
+
+ public static final int PLAYBACK_DURATION_FIELD_NUMBER = 8;
+ private com.google.protobuf.Duration playbackDuration_;
+
+ /**
+ *
+ *
+ * + * Optional. The duration of playback of the ad media, regardless of whether + * it was viewable or not. + *+ * + *
+ * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the playbackDuration field is set.
+ */
+ @java.lang.Override
+ public boolean hasPlaybackDuration() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The duration of playback of the ad media, regardless of whether + * it was viewable or not. + *+ * + *
+ * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The playbackDuration.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getPlaybackDuration() {
+ return playbackDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : playbackDuration_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The duration of playback of the ad media, regardless of whether + * it was viewable or not. + *+ * + *
+ * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getPlaybackDurationOrBuilder() {
+ return playbackDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : playbackDuration_;
+ }
+
+ 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 (viewType_ != com.google.ads.datamanager.v1.ViewType.VIEW_TYPE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(1, viewType_);
+ }
+ if (viewablePercent_ != 0) {
+ output.writeInt32(2, viewablePercent_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(3, getViewableDuration());
+ }
+ if (mediaSkippable_ != false) {
+ output.writeBool(4, mediaSkippable_);
+ }
+ if (mediaQuartile_
+ != com.google.ads.datamanager.v1.MediaQuartile.MEDIA_QUARTILE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(5, mediaQuartile_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(6, getMediaDuration());
+ }
+ if (mediaVolumePercent_ != 0) {
+ output.writeInt32(7, mediaVolumePercent_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeMessage(8, getPlaybackDuration());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (viewType_ != com.google.ads.datamanager.v1.ViewType.VIEW_TYPE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, viewType_);
+ }
+ if (viewablePercent_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, viewablePercent_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getViewableDuration());
+ }
+ if (mediaSkippable_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, mediaSkippable_);
+ }
+ if (mediaQuartile_
+ != com.google.ads.datamanager.v1.MediaQuartile.MEDIA_QUARTILE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, mediaQuartile_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMediaDuration());
+ }
+ if (mediaVolumePercent_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, mediaVolumePercent_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getPlaybackDuration());
+ }
+ 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.datamanager.v1.ViewabilityInfo)) {
+ return super.equals(obj);
+ }
+ com.google.ads.datamanager.v1.ViewabilityInfo other =
+ (com.google.ads.datamanager.v1.ViewabilityInfo) obj;
+
+ if (viewType_ != other.viewType_) return false;
+ if (getViewablePercent() != other.getViewablePercent()) return false;
+ if (hasViewableDuration() != other.hasViewableDuration()) return false;
+ if (hasViewableDuration()) {
+ if (!getViewableDuration().equals(other.getViewableDuration())) return false;
+ }
+ if (getMediaSkippable() != other.getMediaSkippable()) return false;
+ if (mediaQuartile_ != other.mediaQuartile_) return false;
+ if (hasMediaDuration() != other.hasMediaDuration()) return false;
+ if (hasMediaDuration()) {
+ if (!getMediaDuration().equals(other.getMediaDuration())) return false;
+ }
+ if (getMediaVolumePercent() != other.getMediaVolumePercent()) return false;
+ if (hasPlaybackDuration() != other.hasPlaybackDuration()) return false;
+ if (hasPlaybackDuration()) {
+ if (!getPlaybackDuration().equals(other.getPlaybackDuration())) 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) + VIEW_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + viewType_;
+ hash = (37 * hash) + VIEWABLE_PERCENT_FIELD_NUMBER;
+ hash = (53 * hash) + getViewablePercent();
+ if (hasViewableDuration()) {
+ hash = (37 * hash) + VIEWABLE_DURATION_FIELD_NUMBER;
+ hash = (53 * hash) + getViewableDuration().hashCode();
+ }
+ hash = (37 * hash) + MEDIA_SKIPPABLE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMediaSkippable());
+ hash = (37 * hash) + MEDIA_QUARTILE_FIELD_NUMBER;
+ hash = (53 * hash) + mediaQuartile_;
+ if (hasMediaDuration()) {
+ hash = (37 * hash) + MEDIA_DURATION_FIELD_NUMBER;
+ hash = (53 * hash) + getMediaDuration().hashCode();
+ }
+ hash = (37 * hash) + MEDIA_VOLUME_PERCENT_FIELD_NUMBER;
+ hash = (53 * hash) + getMediaVolumePercent();
+ if (hasPlaybackDuration()) {
+ hash = (37 * hash) + PLAYBACK_DURATION_FIELD_NUMBER;
+ hash = (53 * hash) + getPlaybackDuration().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.ads.datamanager.v1.ViewabilityInfo parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.datamanager.v1.ViewabilityInfo 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.datamanager.v1.ViewabilityInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.datamanager.v1.ViewabilityInfo 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.datamanager.v1.ViewabilityInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.datamanager.v1.ViewabilityInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.ads.datamanager.v1.ViewabilityInfo parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.datamanager.v1.ViewabilityInfo parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.datamanager.v1.ViewabilityInfo parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.datamanager.v1.ViewabilityInfo parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.datamanager.v1.ViewabilityInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.datamanager.v1.ViewabilityInfo parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.datamanager.v1.ViewabilityInfo 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Details of the viewability of the ad served. + *+ * + * Protobuf type {@code google.ads.datamanager.v1.ViewabilityInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Required. The type of the event. + *+ * + *
+ * .google.ads.datamanager.v1.ViewType view_type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The enum numeric value on the wire for viewType.
+ */
+ @java.lang.Override
+ public int getViewTypeValue() {
+ return viewType_;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The type of the event. + *+ * + *
+ * .google.ads.datamanager.v1.ViewType view_type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @param value The enum numeric value on the wire for viewType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setViewTypeValue(int value) {
+ viewType_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The type of the event. + *+ * + *
+ * .google.ads.datamanager.v1.ViewType view_type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The viewType.
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.ViewType getViewType() {
+ com.google.ads.datamanager.v1.ViewType result =
+ com.google.ads.datamanager.v1.ViewType.forNumber(viewType_);
+ return result == null ? com.google.ads.datamanager.v1.ViewType.UNRECOGNIZED : result;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The type of the event. + *+ * + *
+ * .google.ads.datamanager.v1.ViewType view_type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @param value The viewType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setViewType(com.google.ads.datamanager.v1.ViewType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ viewType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The type of the event. + *+ * + *
+ * .google.ads.datamanager.v1.ViewType view_type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearViewType() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ viewType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int viewablePercent_;
+
+ /**
+ *
+ *
+ * + * Optional. The numerical percent (0-100) of the pixels that were viewable. + *+ * + *
int32 viewable_percent = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The viewablePercent.
+ */
+ @java.lang.Override
+ public int getViewablePercent() {
+ return viewablePercent_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The numerical percent (0-100) of the pixels that were viewable. + *+ * + *
int32 viewable_percent = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The viewablePercent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setViewablePercent(int value) {
+
+ viewablePercent_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The numerical percent (0-100) of the pixels that were viewable. + *+ * + *
int32 viewable_percent = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearViewablePercent() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ viewablePercent_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Duration viewableDuration_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ viewableDurationBuilder_;
+
+ /**
+ *
+ *
+ * + * Optional. The amount of time the ad was viewable for. + *+ * + *
+ * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the viewableDuration field is set.
+ */
+ public boolean hasViewableDuration() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The amount of time the ad was viewable for. + *+ * + *
+ * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The viewableDuration.
+ */
+ public com.google.protobuf.Duration getViewableDuration() {
+ if (viewableDurationBuilder_ == null) {
+ return viewableDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : viewableDuration_;
+ } else {
+ return viewableDurationBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The amount of time the ad was viewable for. + *+ * + *
+ * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setViewableDuration(com.google.protobuf.Duration value) {
+ if (viewableDurationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ viewableDuration_ = value;
+ } else {
+ viewableDurationBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The amount of time the ad was viewable for. + *+ * + *
+ * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setViewableDuration(com.google.protobuf.Duration.Builder builderForValue) {
+ if (viewableDurationBuilder_ == null) {
+ viewableDuration_ = builderForValue.build();
+ } else {
+ viewableDurationBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The amount of time the ad was viewable for. + *+ * + *
+ * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeViewableDuration(com.google.protobuf.Duration value) {
+ if (viewableDurationBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && viewableDuration_ != null
+ && viewableDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getViewableDurationBuilder().mergeFrom(value);
+ } else {
+ viewableDuration_ = value;
+ }
+ } else {
+ viewableDurationBuilder_.mergeFrom(value);
+ }
+ if (viewableDuration_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The amount of time the ad was viewable for. + *+ * + *
+ * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearViewableDuration() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ viewableDuration_ = null;
+ if (viewableDurationBuilder_ != null) {
+ viewableDurationBuilder_.dispose();
+ viewableDurationBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The amount of time the ad was viewable for. + *+ * + *
+ * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.Duration.Builder getViewableDurationBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return internalGetViewableDurationFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The amount of time the ad was viewable for. + *+ * + *
+ * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.DurationOrBuilder getViewableDurationOrBuilder() {
+ if (viewableDurationBuilder_ != null) {
+ return viewableDurationBuilder_.getMessageOrBuilder();
+ } else {
+ return viewableDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : viewableDuration_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The amount of time the ad was viewable for. + *+ * + *
+ * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ internalGetViewableDurationFieldBuilder() {
+ if (viewableDurationBuilder_ == null) {
+ viewableDurationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getViewableDuration(), getParentForChildren(), isClean());
+ viewableDuration_ = null;
+ }
+ return viewableDurationBuilder_;
+ }
+
+ private boolean mediaSkippable_;
+
+ /**
+ *
+ *
+ * + * Optional. Whether the ad media was skippable or not. + *+ * + *
bool media_skippable = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The mediaSkippable.
+ */
+ @java.lang.Override
+ public boolean getMediaSkippable() {
+ return mediaSkippable_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Whether the ad media was skippable or not. + *+ * + *
bool media_skippable = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The mediaSkippable to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMediaSkippable(boolean value) {
+
+ mediaSkippable_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Whether the ad media was skippable or not. + *+ * + *
bool media_skippable = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMediaSkippable() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ mediaSkippable_ = false;
+ onChanged();
+ return this;
+ }
+
+ private int mediaQuartile_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. The amount of the media that was played as discrete quartiles. + *+ * + *
+ * .google.ads.datamanager.v1.MediaQuartile media_quartile = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for mediaQuartile.
+ */
+ @java.lang.Override
+ public int getMediaQuartileValue() {
+ return mediaQuartile_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The amount of the media that was played as discrete quartiles. + *+ * + *
+ * .google.ads.datamanager.v1.MediaQuartile media_quartile = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for mediaQuartile to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMediaQuartileValue(int value) {
+ mediaQuartile_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The amount of the media that was played as discrete quartiles. + *+ * + *
+ * .google.ads.datamanager.v1.MediaQuartile media_quartile = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The mediaQuartile.
+ */
+ @java.lang.Override
+ public com.google.ads.datamanager.v1.MediaQuartile getMediaQuartile() {
+ com.google.ads.datamanager.v1.MediaQuartile result =
+ com.google.ads.datamanager.v1.MediaQuartile.forNumber(mediaQuartile_);
+ return result == null ? com.google.ads.datamanager.v1.MediaQuartile.UNRECOGNIZED : result;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The amount of the media that was played as discrete quartiles. + *+ * + *
+ * .google.ads.datamanager.v1.MediaQuartile media_quartile = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The mediaQuartile to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMediaQuartile(com.google.ads.datamanager.v1.MediaQuartile value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000010;
+ mediaQuartile_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The amount of the media that was played as discrete quartiles. + *+ * + *
+ * .google.ads.datamanager.v1.MediaQuartile media_quartile = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMediaQuartile() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ mediaQuartile_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Duration mediaDuration_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ mediaDurationBuilder_;
+
+ /**
+ *
+ *
+ * + * Optional. The duration of the ad media. + *+ * + *
.google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the mediaDuration field is set.
+ */
+ public boolean hasMediaDuration() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The duration of the ad media. + *+ * + *
.google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The mediaDuration.
+ */
+ public com.google.protobuf.Duration getMediaDuration() {
+ if (mediaDurationBuilder_ == null) {
+ return mediaDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : mediaDuration_;
+ } else {
+ return mediaDurationBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The duration of the ad media. + *+ * + *
.google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setMediaDuration(com.google.protobuf.Duration value) {
+ if (mediaDurationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ mediaDuration_ = value;
+ } else {
+ mediaDurationBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The duration of the ad media. + *+ * + *
.google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setMediaDuration(com.google.protobuf.Duration.Builder builderForValue) {
+ if (mediaDurationBuilder_ == null) {
+ mediaDuration_ = builderForValue.build();
+ } else {
+ mediaDurationBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The duration of the ad media. + *+ * + *
.google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeMediaDuration(com.google.protobuf.Duration value) {
+ if (mediaDurationBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0)
+ && mediaDuration_ != null
+ && mediaDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getMediaDurationBuilder().mergeFrom(value);
+ } else {
+ mediaDuration_ = value;
+ }
+ } else {
+ mediaDurationBuilder_.mergeFrom(value);
+ }
+ if (mediaDuration_ != null) {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The duration of the ad media. + *+ * + *
.google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearMediaDuration() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ mediaDuration_ = null;
+ if (mediaDurationBuilder_ != null) {
+ mediaDurationBuilder_.dispose();
+ mediaDurationBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The duration of the ad media. + *+ * + *
.google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.Duration.Builder getMediaDurationBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return internalGetMediaDurationFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The duration of the ad media. + *+ * + *
.google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.DurationOrBuilder getMediaDurationOrBuilder() {
+ if (mediaDurationBuilder_ != null) {
+ return mediaDurationBuilder_.getMessageOrBuilder();
+ } else {
+ return mediaDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : mediaDuration_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The duration of the ad media. + *+ * + *
.google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ internalGetMediaDurationFieldBuilder() {
+ if (mediaDurationBuilder_ == null) {
+ mediaDurationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getMediaDuration(), getParentForChildren(), isClean());
+ mediaDuration_ = null;
+ }
+ return mediaDurationBuilder_;
+ }
+
+ private int mediaVolumePercent_;
+
+ /**
+ *
+ *
+ * + * Optional. The numerical percent (0-100) of the volume of the media + * playback. + *+ * + *
int32 media_volume_percent = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The mediaVolumePercent.
+ */
+ @java.lang.Override
+ public int getMediaVolumePercent() {
+ return mediaVolumePercent_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The numerical percent (0-100) of the volume of the media + * playback. + *+ * + *
int32 media_volume_percent = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The mediaVolumePercent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMediaVolumePercent(int value) {
+
+ mediaVolumePercent_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The numerical percent (0-100) of the volume of the media + * playback. + *+ * + *
int32 media_volume_percent = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMediaVolumePercent() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ mediaVolumePercent_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Duration playbackDuration_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ playbackDurationBuilder_;
+
+ /**
+ *
+ *
+ * + * Optional. The duration of playback of the ad media, regardless of whether + * it was viewable or not. + *+ * + *
+ * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the playbackDuration field is set.
+ */
+ public boolean hasPlaybackDuration() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The duration of playback of the ad media, regardless of whether + * it was viewable or not. + *+ * + *
+ * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The playbackDuration.
+ */
+ public com.google.protobuf.Duration getPlaybackDuration() {
+ if (playbackDurationBuilder_ == null) {
+ return playbackDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : playbackDuration_;
+ } else {
+ return playbackDurationBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The duration of playback of the ad media, regardless of whether + * it was viewable or not. + *+ * + *
+ * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setPlaybackDuration(com.google.protobuf.Duration value) {
+ if (playbackDurationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ playbackDuration_ = value;
+ } else {
+ playbackDurationBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The duration of playback of the ad media, regardless of whether + * it was viewable or not. + *+ * + *
+ * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setPlaybackDuration(com.google.protobuf.Duration.Builder builderForValue) {
+ if (playbackDurationBuilder_ == null) {
+ playbackDuration_ = builderForValue.build();
+ } else {
+ playbackDurationBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The duration of playback of the ad media, regardless of whether + * it was viewable or not. + *+ * + *
+ * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergePlaybackDuration(com.google.protobuf.Duration value) {
+ if (playbackDurationBuilder_ == null) {
+ if (((bitField0_ & 0x00000080) != 0)
+ && playbackDuration_ != null
+ && playbackDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getPlaybackDurationBuilder().mergeFrom(value);
+ } else {
+ playbackDuration_ = value;
+ }
+ } else {
+ playbackDurationBuilder_.mergeFrom(value);
+ }
+ if (playbackDuration_ != null) {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The duration of playback of the ad media, regardless of whether + * it was viewable or not. + *+ * + *
+ * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearPlaybackDuration() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ playbackDuration_ = null;
+ if (playbackDurationBuilder_ != null) {
+ playbackDurationBuilder_.dispose();
+ playbackDurationBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The duration of playback of the ad media, regardless of whether + * it was viewable or not. + *+ * + *
+ * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.Duration.Builder getPlaybackDurationBuilder() {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return internalGetPlaybackDurationFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The duration of playback of the ad media, regardless of whether + * it was viewable or not. + *+ * + *
+ * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.DurationOrBuilder getPlaybackDurationOrBuilder() {
+ if (playbackDurationBuilder_ != null) {
+ return playbackDurationBuilder_.getMessageOrBuilder();
+ } else {
+ return playbackDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : playbackDuration_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The duration of playback of the ad media, regardless of whether + * it was viewable or not. + *+ * + *
+ * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ internalGetPlaybackDurationFieldBuilder() {
+ if (playbackDurationBuilder_ == null) {
+ playbackDurationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getPlaybackDuration(), getParentForChildren(), isClean());
+ playbackDuration_ = null;
+ }
+ return playbackDurationBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.ViewabilityInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.ViewabilityInfo)
+ private static final com.google.ads.datamanager.v1.ViewabilityInfo DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.ads.datamanager.v1.ViewabilityInfo();
+ }
+
+ public static com.google.ads.datamanager.v1.ViewabilityInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The type of the event. + *+ * + *
+ * .google.ads.datamanager.v1.ViewType view_type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The enum numeric value on the wire for viewType.
+ */
+ int getViewTypeValue();
+
+ /**
+ *
+ *
+ * + * Required. The type of the event. + *+ * + *
+ * .google.ads.datamanager.v1.ViewType view_type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The viewType.
+ */
+ com.google.ads.datamanager.v1.ViewType getViewType();
+
+ /**
+ *
+ *
+ * + * Optional. The numerical percent (0-100) of the pixels that were viewable. + *+ * + *
int32 viewable_percent = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The viewablePercent.
+ */
+ int getViewablePercent();
+
+ /**
+ *
+ *
+ * + * Optional. The amount of time the ad was viewable for. + *+ * + *
+ * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the viewableDuration field is set.
+ */
+ boolean hasViewableDuration();
+
+ /**
+ *
+ *
+ * + * Optional. The amount of time the ad was viewable for. + *+ * + *
+ * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The viewableDuration.
+ */
+ com.google.protobuf.Duration getViewableDuration();
+
+ /**
+ *
+ *
+ * + * Optional. The amount of time the ad was viewable for. + *+ * + *
+ * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.protobuf.DurationOrBuilder getViewableDurationOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. Whether the ad media was skippable or not. + *+ * + *
bool media_skippable = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The mediaSkippable.
+ */
+ boolean getMediaSkippable();
+
+ /**
+ *
+ *
+ * + * Optional. The amount of the media that was played as discrete quartiles. + *+ * + *
+ * .google.ads.datamanager.v1.MediaQuartile media_quartile = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for mediaQuartile.
+ */
+ int getMediaQuartileValue();
+
+ /**
+ *
+ *
+ * + * Optional. The amount of the media that was played as discrete quartiles. + *+ * + *
+ * .google.ads.datamanager.v1.MediaQuartile media_quartile = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The mediaQuartile.
+ */
+ com.google.ads.datamanager.v1.MediaQuartile getMediaQuartile();
+
+ /**
+ *
+ *
+ * + * Optional. The duration of the ad media. + *+ * + *
.google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the mediaDuration field is set.
+ */
+ boolean hasMediaDuration();
+
+ /**
+ *
+ *
+ * + * Optional. The duration of the ad media. + *+ * + *
.google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The mediaDuration.
+ */
+ com.google.protobuf.Duration getMediaDuration();
+
+ /**
+ *
+ *
+ * + * Optional. The duration of the ad media. + *+ * + *
.google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.protobuf.DurationOrBuilder getMediaDurationOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. The numerical percent (0-100) of the volume of the media + * playback. + *+ * + *
int32 media_volume_percent = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The mediaVolumePercent.
+ */
+ int getMediaVolumePercent();
+
+ /**
+ *
+ *
+ * + * Optional. The duration of playback of the ad media, regardless of whether + * it was viewable or not. + *+ * + *
+ * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the playbackDuration field is set.
+ */
+ boolean hasPlaybackDuration();
+
+ /**
+ *
+ *
+ * + * Optional. The duration of playback of the ad media, regardless of whether + * it was viewable or not. + *+ * + *
+ * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The playbackDuration.
+ */
+ com.google.protobuf.Duration getPlaybackDuration();
+
+ /**
+ *
+ *
+ * + * Optional. The duration of playback of the ad media, regardless of whether + * it was viewable or not. + *+ * + *
+ * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.protobuf.DurationOrBuilder getPlaybackDurationOrBuilder();
+}
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewabilityInfoProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewabilityInfoProto.java
new file mode 100644
index 000000000000..412db6191407
--- /dev/null
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewabilityInfoProto.java
@@ -0,0 +1,118 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/ads/datamanager/v1/viewability_info.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.ads.datamanager.v1;
+
+@com.google.protobuf.Generated
+public final class ViewabilityInfoProto extends com.google.protobuf.GeneratedFile {
+ private ViewabilityInfoProto() {}
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "ViewabilityInfoProto");
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_ads_datamanager_v1_ViewabilityInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_ads_datamanager_v1_ViewabilityInfo_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n0google/ads/datamanager/v1/viewability_"
+ + "info.proto\022\031google.ads.datamanager.v1\032\037g"
+ + "oogle/api/field_behavior.proto\032\036google/p"
+ + "rotobuf/duration.proto\"\243\003\n\017ViewabilityIn"
+ + "fo\022;\n\tview_type\030\001 \001(\0162#.google.ads.datam"
+ + "anager.v1.ViewTypeB\003\340A\002\022\035\n\020viewable_perc"
+ + "ent\030\002 \001(\005B\003\340A\001\0229\n\021viewable_duration\030\003 \001("
+ + "\0132\031.google.protobuf.DurationB\003\340A\001\022\034\n\017med"
+ + "ia_skippable\030\004 \001(\010B\003\340A\001\022E\n\016media_quartil"
+ + "e\030\005 \001(\0162(.google.ads.datamanager.v1.Medi"
+ + "aQuartileB\003\340A\001\0226\n\016media_duration\030\006 \001(\0132\031"
+ + ".google.protobuf.DurationB\003\340A\001\022!\n\024media_"
+ + "volume_percent\030\007 \001(\005B\003\340A\001\0229\n\021playback_du"
+ + "ration\030\010 \001(\0132\031.google.protobuf.DurationB"
+ + "\003\340A\001*[\n\010ViewType\022\031\n\025VIEW_TYPE_UNSPECIFIE"
+ + "D\020\000\022\030\n\024VIEW_TYPE_MRC_VIEWED\020\001\022\032\n\026VIEW_TY"
+ + "PE_MRC_RENDERED\020\002*\311\001\n\rMediaQuartile\022\036\n\032M"
+ + "EDIA_QUARTILE_UNSPECIFIED\020\000\022\030\n\024MEDIA_QUA"
+ + "RTILE_START\020\001\022!\n\035MEDIA_QUARTILE_FIRST_QU"
+ + "ARTILE\020\002\022\033\n\027MEDIA_QUARTILE_MIDPOINT\020\003\022!\n"
+ + "\035MEDIA_QUARTILE_THIRD_QUARTILE\020\004\022\033\n\027MEDI"
+ + "A_QUARTILE_COMPLETE\020\005B\321\001\n\035com.google.ads"
+ + ".datamanager.v1B\024ViewabilityInfoProtoP\001Z"
+ + "Acloud.google.com/go/datamanager/apiv1/d"
+ + "atamanagerpb;datamanagerpb\252\002\031Google.Ads."
+ + "DataManager.V1\312\002\031Google\\Ads\\DataManager\\"
+ + "V1\352\002\034Google::Ads::DataManager::V1b\006proto"
+ + "3"
+ };
+ descriptor =
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.FieldBehaviorProto.getDescriptor(),
+ com.google.protobuf.DurationProto.getDescriptor(),
+ });
+ internal_static_google_ads_datamanager_v1_ViewabilityInfo_descriptor =
+ getDescriptor().getMessageType(0);
+ internal_static_google_ads_datamanager_v1_ViewabilityInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_ads_datamanager_v1_ViewabilityInfo_descriptor,
+ new java.lang.String[] {
+ "ViewType",
+ "ViewablePercent",
+ "ViewableDuration",
+ "MediaSkippable",
+ "MediaQuartile",
+ "MediaDuration",
+ "MediaVolumePercent",
+ "PlaybackDuration",
+ });
+ descriptor.resolveAllFeaturesImmutable();
+ com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.protobuf.DurationProto.getDescriptor();
+ com.google.protobuf.ExtensionRegistry registry =
+ com.google.protobuf.ExtensionRegistry.newInstance();
+ registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+ com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+ descriptor, registry);
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ad_event.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ad_event.proto
new file mode 100644
index 000000000000..12f3c58dcd34
--- /dev/null
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ad_event.proto
@@ -0,0 +1,425 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.ads.datamanager.v1;
+
+import "google/ads/datamanager/v1/device_info.proto";
+import "google/ads/datamanager/v1/user_data.proto";
+import "google/ads/datamanager/v1/viewability_info.proto";
+import "google/api/field_behavior.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Ads.DataManager.V1";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
+option java_multiple_files = true;
+option java_outer_classname = "AdEventProto";
+option java_package = "com.google.ads.datamanager.v1";
+option php_namespace = "Google\\Ads\\DataManager\\V1";
+option ruby_package = "Google::Ads::DataManager::V1";
+
+// An ad event.
+message AdEvent {
+ // The type of the event.
+ enum EventType {
+ // Unspecified event type.
+ EVENT_TYPE_UNSPECIFIED = 0;
+
+ // View event.
+ EVENT_TYPE_VIEW = 1;
+
+ // Click event.
+ EVENT_TYPE_CLICK = 2;
+ }
+
+ // Additional classification about the type of ad event.
+ enum EventSubtype {
+ // Unspecified event subtype.
+ EVENT_SUBTYPE_UNSPECIFIED = 0;
+
+ // Impression event.
+ EVENT_SUBTYPE_IMPRESSION = 1;
+
+ // Engaged view event.
+ EVENT_SUBTYPE_ENGAGED_VIEW = 2;
+
+ // Onsite click event.
+ EVENT_SUBTYPE_ONSITE_CLICK = 3;
+
+ // Outbound click event.
+ EVENT_SUBTYPE_OUTBOUND_CLICK = 4;
+ }
+
+ // Required. The ID of the advertiser for the ad event.
+ //
+ // This must match the ID sent in the linking flow.
+ string advertiser_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The type of the event.
+ EventType event_type = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Additional classification about the type of ad event.
+ //
+ // A raw string is accepted to handle values other than the pure enums.
+ // The enum is preferred if possible.
+ oneof event_subtype_oneof {
+ // Enum value for event subtype.
+ EventSubtype event_subtype = 3;
+
+ // String value for event subtype.
+ string event_subtype_string = 4;
+ }
+
+ // Required. The time the event occurred.
+ google.protobuf.Timestamp timestamp = 5
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. An ID created and managed by the caller that uniquely identifies
+ // this event.
+ //
+ // Required if you want to deduplicate ad events that are included
+ // in multiple requests. Otherwise, this field is optional.
+ string event_id = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Multiple pieces of user-provided data, representing the user the
+ // event is associated with.
+ //
+ // It is possible to provide multiple instances of the same type of data (e.g.
+ // email address). The more data provided, the more likely a match will be
+ // found.
+ UserData user_data = 7 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Information gathered about the device being used when the ad
+ // event happened.
+ DeviceInfo device_info = 8 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The device ID of the device that the ad was served to.
+ string mobile_device_id = 9 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. The ID of the associated campaign.
+ string campaign_id = 10 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The name of the associated campaign.
+ string campaign_name = 11 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The ID of the associated ad group.
+ string ad_group_id = 12 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The ID of the associated ad within the group.
+ string ad_id = 13 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The type of the ad served.
+ //
+ // A raw string is accepted to handle values other than the pure enums.
+ // The enum is preferred if possible.
+ oneof ad_type_oneof {
+ // Enum value for ad type.
+ AdType ad_type = 14;
+
+ // String value for ad type.
+ string ad_type_string = 15;
+ }
+
+ // Optional. The type of the ad served.
+ //
+ // A raw string is accepted to handle values other than the pure enums.
+ // The enum is preferred if possible.
+ oneof ad_format_oneof {
+ // Enum value for ad format.
+ AdFormat ad_format = 16;
+
+ // String value for ad format.
+ string ad_format_string = 17;
+ }
+
+ // Optional. The placement of the ad served.
+ //
+ // A raw string is accepted to handle values other than the pure enums.
+ // The enum is preferred if possible.
+ oneof ad_placement_oneof {
+ // Enum value for ad placement.
+ AdPlacement ad_placement = 18;
+
+ // String value for ad placement.
+ string ad_placement_string = 19;
+ }
+
+ // Optional. The height of the ad in pixels.
+ int32 ad_height = 20 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The width of the ad in pixels.
+ int32 ad_width = 21 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. The ISO 3166-2 country plus subdivision.
+ string region_code = 22 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The platform source of the ad, akin to the Google Analytics
+ // source.
+ string source = 23 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The medium of the ad, akin to the Google Analytics medium.
+ string medium = 24 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The type of targeting used to serve the ad.
+ //
+ // A raw string is accepted to handle values other than the pure enums.
+ // The enum is preferred if possible.
+ oneof targeting_type_oneof {
+ // Enum value for targeting type.
+ TargetingType targeting_type = 25;
+
+ // String value for targeting type.
+ string targeting_type_string = 26;
+ }
+
+ // Optional. The type of the platform on which the ad was served.
+ //
+ // A raw string is accepted to handle values other than the pure enums.
+ // The enum is preferred if possible.
+ oneof platform_type_oneof {
+ // Enum value for platform type.
+ PlatformType platform_type = 27;
+
+ // String value for platform type.
+ string platform_type_string = 28;
+ }
+
+ // Optional. Further detail of the platform on which the ad was served.
+ //
+ // A raw string is accepted to handle values other than the pure enums.
+ // The enum is preferred if possible.
+ oneof platform_oneof {
+ // Enum value for platform.
+ Platform platform = 29;
+
+ // String value for platform.
+ string platform_string = 30;
+ }
+
+ // Optional. The partner-assumed attribution status for this ad event.
+ //
+ // This acts only as a signal for how the partner assumed attribution played
+ // out, and does not force an end result in final reports.
+ AttributionHint attribution_hint = 31
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. Details of the viewability of the ad served.
+ ViewabilityInfo viewability_info = 32
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Represents if the row is allowed to be used for measurement
+ // purposes, as governed by applicable privacy laws within regional
+ // jurisdiction.
+ optional bool measurement_allowed = 33
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// The type of the ad served.
+enum AdType {
+ // Unspecified ad type.
+ AD_TYPE_UNSPECIFIED = 0;
+
+ // Display ad.
+ AD_TYPE_DISPLAY = 1;
+
+ // Text ad.
+ AD_TYPE_TEXT = 2;
+
+ // Image ad.
+ AD_TYPE_IMAGE = 3;
+
+ // Rich media ad.
+ AD_TYPE_RICH_MEDIA = 4;
+
+ // HTML ad.
+ AD_TYPE_HTML = 5;
+
+ // Audio ad.
+ AD_TYPE_AUDIO = 6;
+
+ // Video ad.
+ AD_TYPE_VIDEO = 7;
+}
+
+// The format of the ad served.
+enum AdFormat {
+ // Unspecified ad format.
+ AD_FORMAT_UNSPECIFIED = 0;
+
+ // AR ad.
+ AD_FORMAT_AR = 1;
+
+ // Audio ad.
+ AD_FORMAT_AUDIO = 2;
+
+ // Banner ad.
+ AD_FORMAT_BANNER = 3;
+
+ // Bumper ad.
+ AD_FORMAT_BUMPER = 4;
+
+ // Carousel ad.
+ AD_FORMAT_CAROUSEL = 5;
+
+ // Collection ad.
+ AD_FORMAT_COLLECTION = 6;
+
+ // Image ad.
+ AD_FORMAT_IMAGE = 7;
+
+ // Interactive ad.
+ AD_FORMAT_INTERACTIVE = 8;
+
+ // Interstitial ad.
+ AD_FORMAT_INTERSTITIAL = 9;
+
+ // In-feed ad.
+ AD_FORMAT_IN_FEED = 10;
+
+ // In-stream ad.
+ AD_FORMAT_IN_STREAM = 11;
+
+ // In-stream skippable ad.
+ AD_FORMAT_IN_STREAM_SKIPPABLE = 12;
+
+ // In-stream non-skippable ad.
+ AD_FORMAT_IN_STREAM_NON_SKIPPABLE = 13;
+
+ // Native ad.
+ AD_FORMAT_NATIVE = 14;
+
+ // Shorts ad.
+ AD_FORMAT_SHORTS = 15;
+
+ // Story ad.
+ AD_FORMAT_STORY = 16;
+
+ // Sponsored ad.
+ AD_FORMAT_SPONSORED = 17;
+
+ // Video ad.
+ AD_FORMAT_VIDEO = 18;
+}
+
+// The placement of the ad served.
+enum AdPlacement {
+ // Unspecified ad placement.
+ AD_PLACEMENT_UNSPECIFIED = 0;
+
+ // Discover placement.
+ AD_PLACEMENT_DISCOVER = 1;
+
+ // Feed placement.
+ AD_PLACEMENT_FEED = 2;
+
+ // Footer placement.
+ AD_PLACEMENT_FOOTER = 3;
+
+ // Header placement.
+ AD_PLACEMENT_HEADER = 4;
+
+ // Home placement.
+ AD_PLACEMENT_HOME = 5;
+
+ // In-content placement.
+ AD_PLACEMENT_IN_CONTENT = 6;
+
+ // Promoted placement.
+ AD_PLACEMENT_PROMOTED = 7;
+
+ // Search placement.
+ AD_PLACEMENT_SEARCH = 8;
+
+ // Story placement.
+ AD_PLACEMENT_STORY = 9;
+}
+
+// The type of targeting used to serve the ad.
+enum TargetingType {
+ // Unspecified targeting type.
+ TARGETING_TYPE_UNSPECIFIED = 0;
+
+ // Audience targeting.
+ TARGETING_TYPE_AUDIENCE = 1;
+
+ // Contextual targeting.
+ TARGETING_TYPE_CONTEXTUAL = 2;
+
+ // Demographic targeting.
+ TARGETING_TYPE_DEMOGRAPHIC = 3;
+
+ // Device targeting.
+ TARGETING_TYPE_DEVICE = 4;
+
+ // Geo targeting.
+ TARGETING_TYPE_GEO = 5;
+
+ // Interest targeting.
+ TARGETING_TYPE_INTEREST = 6;
+
+ // Purchase intent targeting.
+ TARGETING_TYPE_PURCHASE_INTENT = 7;
+
+ // Remarketing targeting.
+ TARGETING_TYPE_REMARKETING = 8;
+}
+
+// The type of the platform on which the ad was served.
+enum PlatformType {
+ // Unspecified platform type.
+ PLATFORM_TYPE_UNSPECIFIED = 0;
+
+ // Mobile platform.
+ PLATFORM_TYPE_MOBILE = 1;
+
+ // Desktop platform.
+ PLATFORM_TYPE_DESKTOP = 2;
+
+ // CTV platform.
+ PLATFORM_TYPE_CTV = 3;
+
+ // Phone platform.
+ PLATFORM_TYPE_PHONE = 4;
+
+ // Tablet platform.
+ PLATFORM_TYPE_TABLET = 5;
+}
+
+// Further detail of the platform on which the ad was served.
+enum Platform {
+ // Unspecified platform.
+ PLATFORM_UNSPECIFIED = 0;
+
+ // iOS platform.
+ PLATFORM_IOS = 1;
+
+ // Android platform.
+ PLATFORM_ANDROID = 2;
+
+ // Web platform.
+ PLATFORM_WEB = 3;
+}
+
+// The partner-assumed attribution status for this ad event.
+enum AttributionHint {
+ // Unknown attribution status.
+ ATTRIBUTION_HINT_UNSPECIFIED = 0;
+
+ // Converted status.
+ ATTRIBUTION_HINT_CONVERTED = 1;
+
+ // Not converted status.
+ ATTRIBUTION_HINT_NOT_CONVERTED = 2;
+}
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/destination.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/destination.proto
index 069d1fd31fb7..f345a1174815 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/destination.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/destination.proto
@@ -104,10 +104,10 @@ message ProductAccount {
// Required. The ID of the account. For example, your Google Ads account ID.
string account_id = 2 [(google.api.field_behavior) = REQUIRED];
- // Optional. The type of the account. For example, `GOOGLE_ADS`.
+ // Required. The type of the account. For example, `GOOGLE_ADS`.
// Either `account_type` or the deprecated `product` is required.
// If both are set, the values must match.
- AccountType account_type = 3 [(google.api.field_behavior) = OPTIONAL];
+ AccountType account_type = 3 [(google.api.field_behavior) = REQUIRED];
}
// Deprecated. Use
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.proto
index 48067f839c1e..1f4f4a4cb324 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.proto
@@ -17,6 +17,7 @@ syntax = "proto3";
package google.ads.datamanager.v1;
import "google/api/field_behavior.proto";
+import "google/api/field_info.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
@@ -42,7 +43,10 @@ message DeviceInfo {
// applicable Google policies. See the [About offline conversion
// imports](https://support.google.com/google-ads/answer/2998031) page for
// more details.
- string ip_address = 2 [(google.api.field_behavior) = OPTIONAL];
+ string ip_address = 2 [
+ (google.api.field_info).format = IPV4_OR_IPV6,
+ (google.api.field_behavior) = OPTIONAL
+ ];
// Optional. The category of device. For example, “desktop”, “tablet”,
// “mobile”, “smart TV”.
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/encryption_info.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/encryption_info.proto
index 365e5cd12e05..58ee7eac9919 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/encryption_info.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/encryption_info.proto
@@ -36,6 +36,16 @@ message EncryptionInfo {
// Amazon Web Services wrapped key information.
AwsWrappedKeyInfo aws_wrapped_key_info = 2;
+
+ // Key information for the chosen coordinator key.
+ //
+ // This is not supported for the
+ // [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents],
+ // [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers],
+ // and
+ // [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers]
+ // methods.
+ CoordinatorKeyInfo coordinator_key_info = 3;
}
}
@@ -98,3 +108,9 @@ message AwsWrappedKeyInfo {
// Required. The base64 encoded encrypted data encryption key.
string encrypted_dek = 4 [(google.api.field_behavior) = REQUIRED];
}
+
+// Information about the coordinator key.
+message CoordinatorKeyInfo {
+ // Required. The ID of the chosen coordinator key.
+ string key_id = 1 [(google.api.field_behavior) = REQUIRED];
+}
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto
index 9295d9374933..98d6ae724528 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto
@@ -148,6 +148,8 @@ enum ErrorReason {
UNSUPPORTED_LINKED_ACCOUNT_FOR_DATA_PARTNER = 38;
// Events data contains no user identifiers or ad identifiers.
+ // For Floodlight Event ingestion this error indicates requests contains no ad
+ // identifiers.
NO_IDENTIFIERS_PROVIDED = 39;
// The property type is not supported.
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_service.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_service.proto
index d388f7691b90..538e2d2ff472 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_service.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_service.proto
@@ -16,6 +16,7 @@ syntax = "proto3";
package google.ads.datamanager.v1;
+import "google/ads/datamanager/v1/ad_event.proto";
import "google/ads/datamanager/v1/audience.proto";
import "google/ads/datamanager/v1/consent.proto";
import "google/ads/datamanager/v1/destination.proto";
@@ -73,6 +74,18 @@ service IngestionService {
};
}
+ // Uploads a list of
+ // [AdEvent][google.ads.datamanager.v1.AdEvent] resources to Google
+ // Analytics.
+ //
+ // This feature is only available to accounts on an allowlist.
+ rpc IngestAdEvents(IngestAdEventsRequest) returns (IngestAdEventsResponse) {
+ option (google.api.http) = {
+ post: "/v1/adEvents:ingest"
+ body: "*"
+ };
+ }
+
// Gets the status of a request given request id.
rpc RetrieveRequestStatus(RetrieveRequestStatusRequest)
returns (RetrieveRequestStatusResponse) {
@@ -210,6 +223,22 @@ message IngestEventsResponse {
string request_id = 1;
}
+// Request to upload ad events.
+message IngestAdEventsRequest {
+ // Required. Required (at least 1). A list of ad events.
+ repeated AdEvent ad_events = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Information about encryption keys which are used to encrypt the
+ // data.
+ EncryptionInfo encryption_info = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If true, the request is validated, but not executed.
+ bool validate_only = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response from an ad event ingestion operation.
+message IngestAdEventsResponse {}
+
// Request to get the status of request made to the DM API for a given request
// ID. Returns a
// [RetrieveRequestStatusResponse][google.ads.datamanager.v1.RetrieveRequestStatusResponse].
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/partner_link_service.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/partner_link_service.proto
index 3e37a1c00841..9148b1366832 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/partner_link_service.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/partner_link_service.proto
@@ -216,4 +216,58 @@ message PartnerLink {
// Required. The partner account granted access by the owning account.
ProductAccount partner_account = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Immutable. The set of features supported for the partner link.
+ // If not specified, the system behavior defaults to
+ // [FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT].
+ FeatureSet feature_set = 5 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.field_behavior) = IMMUTABLE
+ ];
+
+ // Optional. The customer account in the partner system.
+ // This is required for partner links with the
+ // [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]
+ // feature set.
+ PartnerCustomerAccount partner_customer_account = 6
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Metadata associated with the partner link.
+ // This is optional and only accepted for partner links with the
+ // [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT].
+ PartnerLinkMetadata partner_link_metadata = 7
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Represents a customer account in the partner's system.
+message PartnerCustomerAccount {
+ // Required. The identifier of the customer account in the partner's ID space.
+ string account_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The name of the account.
+ string account_name = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The type of the account. Can be used to distinguish between
+ // advertiser accounts and business level accounts, for example.
+ string account_type = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Represents metadata associated with a partner link.
+message PartnerLinkMetadata {
+ // Optional. The list of implicit accounts.
+ repeated PartnerCustomerAccount implicit_accounts = 1
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// The set of supported features for a partner link.
+enum FeatureSet {
+ // Unspecified feature set. If unspecified, the system behavior defaults to
+ // [FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT].
+ FEATURE_SET_UNSPECIFIED = 0;
+
+ // Indicates a link used for audience and event management.
+ FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT = 1;
+
+ // Indicates a link used for ad event management.
+ FEATURE_SET_AD_EVENT_MANAGEMENT = 2;
}
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/viewability_info.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/viewability_info.proto
new file mode 100644
index 000000000000..b1b87791a415
--- /dev/null
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/viewability_info.proto
@@ -0,0 +1,93 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.ads.datamanager.v1;
+
+import "google/api/field_behavior.proto";
+import "google/protobuf/duration.proto";
+
+option csharp_namespace = "Google.Ads.DataManager.V1";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
+option java_multiple_files = true;
+option java_outer_classname = "ViewabilityInfoProto";
+option java_package = "com.google.ads.datamanager.v1";
+option php_namespace = "Google\\Ads\\DataManager\\V1";
+option ruby_package = "Google::Ads::DataManager::V1";
+
+// Details of the viewability of the ad served.
+message ViewabilityInfo {
+ // Required. The type of the event.
+ ViewType view_type = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The numerical percent (0-100) of the pixels that were viewable.
+ int32 viewable_percent = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The amount of time the ad was viewable for.
+ google.protobuf.Duration viewable_duration = 3
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Whether the ad media was skippable or not.
+ bool media_skippable = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The amount of the media that was played as discrete quartiles.
+ MediaQuartile media_quartile = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The duration of the ad media.
+ google.protobuf.Duration media_duration = 6
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The numerical percent (0-100) of the volume of the media
+ // playback.
+ int32 media_volume_percent = 7 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The duration of playback of the ad media, regardless of whether
+ // it was viewable or not.
+ google.protobuf.Duration playback_duration = 8
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// The type of the event.
+enum ViewType {
+ // Unspecified view type.
+ VIEW_TYPE_UNSPECIFIED = 0;
+
+ // MRC viewed.
+ VIEW_TYPE_MRC_VIEWED = 1;
+
+ // MRC rendered.
+ VIEW_TYPE_MRC_RENDERED = 2;
+}
+
+// The amount of the media that was played as discrete quartiles.
+enum MediaQuartile {
+ // Unspecified media quartile.
+ MEDIA_QUARTILE_UNSPECIFIED = 0;
+
+ // Start.
+ MEDIA_QUARTILE_START = 1;
+
+ // First quartile.
+ MEDIA_QUARTILE_FIRST_QUARTILE = 2;
+
+ // Midpoint.
+ MEDIA_QUARTILE_MIDPOINT = 3;
+
+ // Third quartile.
+ MEDIA_QUARTILE_THIRD_QUARTILE = 4;
+
+ // Complete.
+ MEDIA_QUARTILE_COMPLETE = 5;
+}
diff --git a/java-datamanager/samples/snippets/generated/com/google/ads/datamanager/v1/ingestionservice/ingestadevents/AsyncIngestAdEvents.java b/java-datamanager/samples/snippets/generated/com/google/ads/datamanager/v1/ingestionservice/ingestadevents/AsyncIngestAdEvents.java
new file mode 100644
index 000000000000..986c8c327ec9
--- /dev/null
+++ b/java-datamanager/samples/snippets/generated/com/google/ads/datamanager/v1/ingestionservice/ingestadevents/AsyncIngestAdEvents.java
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.ads.datamanager.v1.samples;
+
+// [START datamanager_v1_generated_IngestionService_IngestAdEvents_async]
+import com.google.ads.datamanager.v1.AdEvent;
+import com.google.ads.datamanager.v1.EncryptionInfo;
+import com.google.ads.datamanager.v1.IngestAdEventsRequest;
+import com.google.ads.datamanager.v1.IngestAdEventsResponse;
+import com.google.ads.datamanager.v1.IngestionServiceClient;
+import com.google.api.core.ApiFuture;
+import java.util.ArrayList;
+
+public class AsyncIngestAdEvents {
+
+ public static void main(String[] args) throws Exception {
+ asyncIngestAdEvents();
+ }
+
+ public static void asyncIngestAdEvents() throws Exception {
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ try (IngestionServiceClient ingestionServiceClient = IngestionServiceClient.create()) {
+ IngestAdEventsRequest request =
+ IngestAdEventsRequest.newBuilder()
+ .addAllAdEvents(new ArrayListListAgentGateways
Lists AgentGateways in a given project and location.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *listAgentGateways(ListAgentGatewaysRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *listAgentGateways(LocationName parent) + *
listAgentGateways(String parent) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *listAgentGatewaysPagedCallable() + *
listAgentGatewaysCallable() + *
GetAgentGateway
Gets details of a single AgentGateway.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *getAgentGateway(GetAgentGatewayRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *getAgentGateway(AgentGatewayName name) + *
getAgentGateway(String name) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *getAgentGatewayCallable() + *
CreateAgentGateway
Creates a new AgentGateway in a given project and location.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *createAgentGatewayAsync(CreateAgentGatewayRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *createAgentGatewayAsync(LocationName parent, AgentGateway agentGateway, String agentGatewayId) + *
createAgentGatewayAsync(String parent, AgentGateway agentGateway, String agentGatewayId) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *createAgentGatewayOperationCallable() + *
createAgentGatewayCallable() + *
UpdateAgentGateway
Updates the parameters of a single AgentGateway.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *updateAgentGatewayAsync(UpdateAgentGatewayRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *updateAgentGatewayAsync(AgentGateway agentGateway, FieldMask updateMask) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *updateAgentGatewayOperationCallable() + *
updateAgentGatewayCallable() + *
DeleteAgentGateway
Deletes a single AgentGateway.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *deleteAgentGatewayAsync(DeleteAgentGatewayRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *deleteAgentGatewayAsync(AgentGatewayName name) + *
deleteAgentGatewayAsync(String name) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *deleteAgentGatewayOperationCallable() + *
deleteAgentGatewayCallable() + *
ListLocations
Lists information about the supported locations for this service.
Sample code: * @@ -9846,14 +9950,76 @@ public final ListMeshRouteViewsPagedResponse listMeshRouteViews( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (AgentGateway element : networkServicesClient.listAgentGateways(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * } + * + * @param parent Required. The project and location from which the AgentGateways should be listed, + * specified in the format `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAgentGatewaysPagedResponse listAgentGateways(LocationName parent) { + ListAgentGatewaysRequest request = + ListAgentGatewaysRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAgentGateways(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AgentGateways in a given project and location. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (AgentGateway element : networkServicesClient.listAgentGateways(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location from which the AgentGateways should be listed,
+ * specified in the format `projects/*/locations/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAgentGatewaysPagedResponse listAgentGateways(String parent) {
+ ListAgentGatewaysRequest request =
+ ListAgentGatewaysRequest.newBuilder().setParent(parent).build();
+ return listAgentGateways(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists AgentGateways in a given project and location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+ * ListAgentGatewaysRequest request =
+ * ListAgentGatewaysRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
+ * .setReturnPartialSuccess(true)
* .build();
- * for (Location element : networkServicesClient.listLocations(request).iterateAll()) {
+ * for (AgentGateway element : networkServicesClient.listAgentGateways(request).iterateAll()) {
* // doThingsWith(element);
* }
* }
@@ -9862,13 +10028,13 @@ public final ListMeshRouteViewsPagedResponse listMeshRouteViews(
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) {
- return listLocationsPagedCallable().call(request);
+ public final ListAgentGatewaysPagedResponse listAgentGateways(ListAgentGatewaysRequest request) {
+ return listAgentGatewaysPagedCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists information about the supported locations for this service.
+ * Lists AgentGateways in a given project and location.
*
* Sample code:
*
@@ -9879,30 +10045,30 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
- * ListLocationsRequest request =
- * ListLocationsRequest.newBuilder()
- * .setName("name3373707")
- * .setFilter("filter-1274492040")
+ * ListAgentGatewaysRequest request =
+ * ListAgentGatewaysRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
+ * .setReturnPartialSuccess(true)
* .build();
- * ApiFuture future =
- * networkServicesClient.listLocationsPagedCallable().futureCall(request);
+ * ApiFuture future =
+ * networkServicesClient.listAgentGatewaysPagedCallable().futureCall(request);
* // Do something.
- * for (Location element : future.get().iterateAll()) {
+ * for (AgentGateway element : future.get().iterateAll()) {
* // doThingsWith(element);
* }
* }
* }
*/
- public final UnaryCallableSample code:
*
@@ -9913,17 +10079,17 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
- * ListLocationsRequest request =
- * ListLocationsRequest.newBuilder()
- * .setName("name3373707")
- * .setFilter("filter-1274492040")
+ * ListAgentGatewaysRequest request =
+ * ListAgentGatewaysRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
+ * .setReturnPartialSuccess(true)
* .build();
* while (true) {
- * ListLocationsResponse response =
- * networkServicesClient.listLocationsCallable().call(request);
- * for (Location element : response.getLocationsList()) {
+ * ListAgentGatewaysResponse response =
+ * networkServicesClient.listAgentGatewaysCallable().call(request);
+ * for (AgentGateway element : response.getAgentGatewaysList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
@@ -9936,13 +10102,14 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
* }
* }
*/
- public final UnaryCallable Sample code:
*
@@ -9953,21 +10120,24 @@ public final UnaryCallable Sample code:
*
@@ -9978,22 +10148,23 @@ public final Location getLocation(GetLocationRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
- * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
- * ApiFuture Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.
+ * Gets details of a single AgentGateway.
*
* Sample code:
*
@@ -10004,29 +10175,24 @@ public final UnaryCallable Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.
+ * Gets details of a single AgentGateway.
*
* Sample code:
*
@@ -10037,27 +10203,24 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
- * SetIamPolicyRequest request =
- * SetIamPolicyRequest.newBuilder()
- * .setResource(
- * EndpointPolicyName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]").toString())
- * .setPolicy(Policy.newBuilder().build())
- * .setUpdateMask(FieldMask.newBuilder().build())
+ * GetAgentGatewayRequest request =
+ * GetAgentGatewayRequest.newBuilder()
+ * .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString())
* .build();
- * ApiFuture Sample code:
*
@@ -10068,27 +10231,34 @@ public final UnaryCallable Sample code:
*
@@ -10099,30 +10269,687 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
- * GetIamPolicyRequest request =
- * GetIamPolicyRequest.newBuilder()
- * .setResource(
- * EndpointPolicyName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]").toString())
- * .setOptions(GetPolicyOptions.newBuilder().build())
- * .build();
- * ApiFuture Note: This operation is designed to be used for buildingpermission-aware UIs and
- * command-line tools, not for authorizationchecking. This operation may "fail open" without
- * warning.
+ * Creates a new AgentGateway in a given project and location.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.
+ *
+ * Sample code:
+ *
+ * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Note: This operation is designed to be used for buildingpermission-aware UIs and
+ * command-line tools, not for authorizationchecking. This operation may "fail open" without
+ * warning.
*
* Sample code:
*
@@ -11249,6 +12076,86 @@ protected ListMeshRouteViewsFixedSizeCollection createCollection(
}
}
+ public static class ListAgentGatewaysPagedResponse
+ extends AbstractPagedListResponse<
+ ListAgentGatewaysRequest,
+ ListAgentGatewaysResponse,
+ AgentGateway,
+ ListAgentGatewaysPage,
+ ListAgentGatewaysFixedSizeCollection> {
+
+ public static ApiFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+ * CreateAgentGatewayRequest request =
+ * CreateAgentGatewayRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setAgentGatewayId("agentGatewayId1729577210")
+ * .setAgentGateway(AgentGateway.newBuilder().build())
+ * .build();
+ * AgentGateway response = networkServicesClient.createAgentGatewayAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+ * CreateAgentGatewayRequest request =
+ * CreateAgentGatewayRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setAgentGatewayId("agentGatewayId1729577210")
+ * .setAgentGateway(AgentGateway.newBuilder().build())
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+ * CreateAgentGatewayRequest request =
+ * CreateAgentGatewayRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setAgentGatewayId("agentGatewayId1729577210")
+ * .setAgentGateway(AgentGateway.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+ * AgentGateway agentGateway = AgentGateway.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * AgentGateway response =
+ * networkServicesClient.updateAgentGatewayAsync(agentGateway, updateMask).get();
+ * }
+ * }
+ *
+ * @param agentGateway Required. Updated AgentGateway resource.
+ * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the
+ * AgentGateway resource by the update. The fields specified in the update_mask are relative
+ * to the resource, not the full request. A field will be overwritten if it is in the mask. If
+ * the user does not provide a mask then all fields will be overwritten.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+ * UpdateAgentGatewayRequest request =
+ * UpdateAgentGatewayRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setAgentGateway(AgentGateway.newBuilder().build())
+ * .build();
+ * AgentGateway response = networkServicesClient.updateAgentGatewayAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+ * UpdateAgentGatewayRequest request =
+ * UpdateAgentGatewayRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setAgentGateway(AgentGateway.newBuilder().build())
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+ * UpdateAgentGatewayRequest request =
+ * UpdateAgentGatewayRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setAgentGateway(AgentGateway.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+ * AgentGatewayName name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]");
+ * networkServicesClient.deleteAgentGatewayAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. A name of the AgentGateway to delete. Must be in the format
+ * `projects/*/locations/*/agentGateways/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+ * String name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString();
+ * networkServicesClient.deleteAgentGatewayAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. A name of the AgentGateway to delete. Must be in the format
+ * `projects/*/locations/*/agentGateways/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+ * DeleteAgentGatewayRequest request =
+ * DeleteAgentGatewayRequest.newBuilder()
+ * .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString())
+ * .setEtag("etag3123477")
+ * .build();
+ * networkServicesClient.deleteAgentGatewayAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+ * DeleteAgentGatewayRequest request =
+ * DeleteAgentGatewayRequest.newBuilder()
+ * .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString())
+ * .setEtag("etag3123477")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+ * DeleteAgentGatewayRequest request =
+ * DeleteAgentGatewayRequest.newBuilder()
+ * .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString())
+ * .setEtag("etag3123477")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Location element : networkServicesClient.listLocations(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) {
+ return listLocationsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists information about the supported locations for this service.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListLocationsResponse response =
+ * networkServicesClient.listLocationsCallable().call(request);
+ * for (Location element : response.getLocationsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * Location response = networkServicesClient.getLocation(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Location getLocation(GetLocationRequest request) {
+ return getLocationCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets information about a location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+ * SetIamPolicyRequest request =
+ * SetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * EndpointPolicyName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]").toString())
+ * .setPolicy(Policy.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Policy response = networkServicesClient.setIamPolicy(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Policy setIamPolicy(SetIamPolicyRequest request) {
+ return setIamPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Sets the access control policy on the specified resource. Replacesany existing policy.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+ * SetIamPolicyRequest request =
+ * SetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * EndpointPolicyName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]").toString())
+ * .setPolicy(Policy.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+ * GetIamPolicyRequest request =
+ * GetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * EndpointPolicyName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]").toString())
+ * .setOptions(GetPolicyOptions.newBuilder().build())
+ * .build();
+ * Policy response = networkServicesClient.getIamPolicy(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Policy getIamPolicy(GetIamPolicyRequest request) {
+ return getIamPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the access control policy for a resource. Returns an empty policyif the resource exists
+ * and does not have a policy set.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+ * GetIamPolicyRequest request =
+ * GetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * EndpointPolicyName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]").toString())
+ * .setOptions(GetPolicyOptions.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable