diff --git a/generation_config.yaml b/generation_config.yaml index 10ab615e932c..e5add8939823 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,4 +1,4 @@ -googleapis_commitish: f7b17174725f43b5cb11b0b8c6bbad20a3dc5bd1 +googleapis_commitish: 7af3f2c7b8927cffb548fd2cf09b04c6371437ee libraries_bom_version: 26.83.0 is_monorepo: true libraries: diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json index 12b95a657341..fc7ab666763f 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json @@ -20789,6 +20789,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.PublisherModelConfig$ModelProvider", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.PublisherModelEulaAcceptance", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java index 992375bffeef..cf58a4cf796b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java @@ -224,10 +224,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024bigquery_destination\030\003 \001(\01324.googl" + "e.cloud.aiplatform.v1beta1.BigQueryDestination\0224\n" + "\'request_response_logging_schema_version\030\004 \001(\tB\003\340A\003\022\033\n" - + "\023enable_otel_logging\030\006 \001(\010\"t\n" + + "\023enable_otel_logging\030\006 \001(\010\"\245\002\n" + "\024PublisherModelConfig\022\\\n" - + "\016logging_config\030\003 \001(\0132D.google.cloud.aiplatf" - + "orm.v1beta1.PredictRequestResponseLoggingConfig\"N\n" + + "\016logging_config\030\003 \001(\0132D.google.cloud.aiplat" + + "form.v1beta1.PredictRequestResponseLoggingConfig\022o\n" + + "\035data_sharing_enabled_provider\030\004 \001(\0162C.google.cloud.aiplatform.v1beta" + + "1.PublisherModelConfig.ModelProviderB\003\340A\001\">\n\r" + + "ModelProvider\022\036\n" + + "\032MODEL_PROVIDER_UNSPECIFIED\020\000\022\r\n" + + "\tANTHROPIC\020\001\"N\n" + "\026ClientConnectionConfig\0224\n" + "\021inference_timeout\030\001 \001(\0132\031.google.protobuf.Duration\"5\n" + "\026FasterDeploymentConfig\022\033\n" @@ -242,15 +247,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017max_unavailableB\013\n" + "\tmax_surge\"\232\001\n" + "\033GenAiAdvancedFeaturesConfig\022Z\n\n" - + "rag_config\030\001" - + " \001(\0132F.google.cloud.aiplatform.v1beta1.GenAiAdvancedFeaturesConfig.RagConfig\032\037\n" + + "rag_config\030\001 \001(\0132F.google.cloud.ai" + + "platform.v1beta1.GenAiAdvancedFeaturesConfig.RagConfig\032\037\n" + "\tRagConfig\022\022\n\n" + "enable_rag\030\001 \001(\010\"\243\003\n" + "\027SpeculativeDecodingSpec\022q\n" - + "\027draft_model_speculation\030\002 \001(\0132N.google.cloud.aiplatform.v1b" - + "eta1.SpeculativeDecodingSpec.DraftModelSpeculationH\000\022f\n" - + "\021ngram_speculation\030\003 \001(\0132" - + "I.google.cloud.aiplatform.v1beta1.SpeculativeDecodingSpec.NgramSpeculationH\000\022\037\n" + + "\027draft_model_speculation\030\002 \001(\0132N.google.cl" + + "oud.aiplatform.v1beta1.SpeculativeDecodingSpec.DraftModelSpeculationH\000\022f\n" + + "\021ngram_speculation\030\003 \001(\0132I.google.cloud.aiplatf" + + "orm.v1beta1.SpeculativeDecodingSpec.NgramSpeculationH\000\022\037\n" + "\027speculative_token_count\030\001 \001(\005\032U\n" + "\025DraftModelSpeculation\022<\n" + "\013draft_model\030\001 \001(\tB\'\340A\002\372A!\n" @@ -259,10 +264,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ngram_size\030\001 \001(\005B\r\n" + "\013speculationB\344\001\n" + "#com.google.cloud.aiplatform.v1beta1B\r" - + "EndpointProtoP\001ZCcloud.google.com/go/aiplatform/apiv1beta1/aiplatfo" - + "rmpb;aiplatformpb\252\002\037Google.Cloud.AIPlatf" - + "orm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1" - + "beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" + + "EndpointProtoP\001ZCcloud.google.com/go/aiplatform/a" + + "piv1beta1/aiplatformpb;aiplatformpb\252\002\037Go" + + "ogle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\C" + + "loud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -395,7 +400,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_PublisherModelConfig_descriptor, new java.lang.String[] { - "LoggingConfig", + "LoggingConfig", "DataSharingEnabledProvider", }); internal_static_google_cloud_aiplatform_v1beta1_ClientConnectionConfig_descriptor = getDescriptor().getMessageType(5); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelConfig.java index a0edf1428ea6..8080af78367e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelConfig.java @@ -51,7 +51,9 @@ private PublisherModelConfig(com.google.protobuf.GeneratedMessage.Builder> bui super(builder); } - private PublisherModelConfig() {} + private PublisherModelConfig() { + dataSharingEnabledProvider_ = 0; + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.aiplatform.v1beta1.EndpointProto @@ -68,6 +70,154 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.PublisherModelConfig.Builder.class); } + /** + * + * + *
+ * A model provider (publisher) that prediction data may be shared with. + *+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider} + */ + public enum ModelProvider implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified model provider. + *+ * + *
MODEL_PROVIDER_UNSPECIFIED = 0;
+ */
+ MODEL_PROVIDER_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Anthropic. + *+ * + *
ANTHROPIC = 1;
+ */
+ ANTHROPIC(1),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "ModelProvider");
+ }
+
+ /**
+ *
+ *
+ * + * Unspecified model provider. + *+ * + *
MODEL_PROVIDER_UNSPECIFIED = 0;
+ */
+ public static final int MODEL_PROVIDER_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * Anthropic. + *+ * + *
ANTHROPIC = 1;
+ */
+ public static final int ANTHROPIC_VALUE = 1;
+
+ 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 ModelProvider 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 ModelProvider forNumber(int value) {
+ switch (value) {
+ case 0:
+ return MODEL_PROVIDER_UNSPECIFIED;
+ case 1:
+ return ANTHROPIC;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Optional. The model provider (publisher) for which the customer has enabled + * data sharing. For publisher models that are configured to require data + * sharing, a prediction request is only allowed when the model's publisher + * matches this provider. Otherwise, the request is rejected. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider data_sharing_enabled_provider = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for dataSharingEnabledProvider.
+ */
+ @java.lang.Override
+ public int getDataSharingEnabledProviderValue() {
+ return dataSharingEnabledProvider_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The model provider (publisher) for which the customer has enabled + * data sharing. For publisher models that are configured to require data + * sharing, a prediction request is only allowed when the model's publisher + * matches this provider. Otherwise, the request is rejected. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider data_sharing_enabled_provider = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The dataSharingEnabledProvider.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider
+ getDataSharingEnabledProvider() {
+ com.google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider result =
+ com.google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider.forNumber(
+ dataSharingEnabledProvider_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider.UNRECOGNIZED
+ : result;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -146,6 +347,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getLoggingConfig());
}
+ if (dataSharingEnabledProvider_
+ != com.google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider
+ .MODEL_PROVIDER_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(4, dataSharingEnabledProvider_);
+ }
getUnknownFields().writeTo(output);
}
@@ -158,6 +365,12 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLoggingConfig());
}
+ if (dataSharingEnabledProvider_
+ != com.google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider
+ .MODEL_PROVIDER_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, dataSharingEnabledProvider_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -178,6 +391,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasLoggingConfig()) {
if (!getLoggingConfig().equals(other.getLoggingConfig())) return false;
}
+ if (dataSharingEnabledProvider_ != other.dataSharingEnabledProvider_) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -193,6 +407,8 @@ public int hashCode() {
hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getLoggingConfig().hashCode();
}
+ hash = (37 * hash) + DATA_SHARING_ENABLED_PROVIDER_FIELD_NUMBER;
+ hash = (53 * hash) + dataSharingEnabledProvider_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -348,6 +564,7 @@ public Builder clear() {
loggingConfigBuilder_.dispose();
loggingConfigBuilder_ = null;
}
+ dataSharingEnabledProvider_ = 0;
return this;
}
@@ -390,6 +607,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PublisherModelCon
loggingConfigBuilder_ == null ? loggingConfig_ : loggingConfigBuilder_.build();
to_bitField0_ |= 0x00000001;
}
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.dataSharingEnabledProvider_ = dataSharingEnabledProvider_;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -409,6 +629,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PublisherModelConfi
if (other.hasLoggingConfig()) {
mergeLoggingConfig(other.getLoggingConfig());
}
+ if (other.dataSharingEnabledProvider_ != 0) {
+ setDataSharingEnabledProviderValue(other.getDataSharingEnabledProviderValue());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -442,6 +665,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000001;
break;
} // case 26
+ case 32:
+ {
+ dataSharingEnabledProvider_ = input.readEnum();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 32
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -684,6 +913,131 @@ public Builder clearLoggingConfig() {
return loggingConfigBuilder_;
}
+ private int dataSharingEnabledProvider_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. The model provider (publisher) for which the customer has enabled + * data sharing. For publisher models that are configured to require data + * sharing, a prediction request is only allowed when the model's publisher + * matches this provider. Otherwise, the request is rejected. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider data_sharing_enabled_provider = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for dataSharingEnabledProvider.
+ */
+ @java.lang.Override
+ public int getDataSharingEnabledProviderValue() {
+ return dataSharingEnabledProvider_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The model provider (publisher) for which the customer has enabled + * data sharing. For publisher models that are configured to require data + * sharing, a prediction request is only allowed when the model's publisher + * matches this provider. Otherwise, the request is rejected. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider data_sharing_enabled_provider = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for dataSharingEnabledProvider to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDataSharingEnabledProviderValue(int value) {
+ dataSharingEnabledProvider_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The model provider (publisher) for which the customer has enabled + * data sharing. For publisher models that are configured to require data + * sharing, a prediction request is only allowed when the model's publisher + * matches this provider. Otherwise, the request is rejected. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider data_sharing_enabled_provider = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The dataSharingEnabledProvider.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider
+ getDataSharingEnabledProvider() {
+ com.google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider result =
+ com.google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider.forNumber(
+ dataSharingEnabledProvider_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The model provider (publisher) for which the customer has enabled + * data sharing. For publisher models that are configured to require data + * sharing, a prediction request is only allowed when the model's publisher + * matches this provider. Otherwise, the request is rejected. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider data_sharing_enabled_provider = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The dataSharingEnabledProvider to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDataSharingEnabledProvider(
+ com.google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ dataSharingEnabledProvider_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The model provider (publisher) for which the customer has enabled + * data sharing. For publisher models that are configured to require data + * sharing, a prediction request is only allowed when the model's publisher + * matches this provider. Otherwise, the request is rejected. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider data_sharing_enabled_provider = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDataSharingEnabledProvider() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ dataSharingEnabledProvider_ = 0;
+ onChanged();
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.PublisherModelConfig)
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelConfigOrBuilder.java
index 7c9f94eea746..57eefa6cb536 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelConfigOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelConfigOrBuilder.java
@@ -66,4 +66,41 @@ public interface PublisherModelConfigOrBuilder
*/
com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfigOrBuilder
getLoggingConfigOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. The model provider (publisher) for which the customer has enabled + * data sharing. For publisher models that are configured to require data + * sharing, a prediction request is only allowed when the model's publisher + * matches this provider. Otherwise, the request is rejected. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider data_sharing_enabled_provider = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for dataSharingEnabledProvider.
+ */
+ int getDataSharingEnabledProviderValue();
+
+ /**
+ *
+ *
+ * + * Optional. The model provider (publisher) for which the customer has enabled + * data sharing. For publisher models that are configured to require data + * sharing, a prediction request is only allowed when the model's publisher + * matches this provider. Otherwise, the request is rejected. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider data_sharing_enabled_provider = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The dataSharingEnabledProvider.
+ */
+ com.google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider
+ getDataSharingEnabledProvider();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto
index 42fbeae165ea..a484031985e5 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto
@@ -400,8 +400,24 @@ message PredictRequestResponseLoggingConfig {
// This message contains configs of a publisher model.
message PublisherModelConfig {
+ // A model provider (publisher) that prediction data may be shared with.
+ enum ModelProvider {
+ // Unspecified model provider.
+ MODEL_PROVIDER_UNSPECIFIED = 0;
+
+ // Anthropic.
+ ANTHROPIC = 1;
+ }
+
// The prediction request/response logging config.
PredictRequestResponseLoggingConfig logging_config = 3;
+
+ // Optional. The model provider (publisher) for which the customer has enabled
+ // data sharing. For publisher models that are configured to require data
+ // sharing, a prediction request is only allowed when the model's publisher
+ // matches this provider. Otherwise, the request is rejected.
+ ModelProvider data_sharing_enabled_provider = 4
+ [(google.api.field_behavior) = OPTIONAL];
}
// Configurations (e.g. inference timeout) that are applied on your endpoints.
diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceClient.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceClient.java
index e6665dc956bc..88b5c6c5999b 100644
--- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceClient.java
+++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceClient.java
@@ -107,6 +107,21 @@
*
*
* 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 ArrayListThis class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *
{@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 (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
+ * UpdateAclConfigRequest request =
+ * UpdateAclConfigRequest.newBuilder().setAclConfig(AclConfig.newBuilder().build()).build();
+ * AclConfig response = aclConfigServiceClient.updateAclConfig(request);
+ * }
+ * }
+ *
+ * Note: close() needs to be called on the AclConfigServiceClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + *
| Method | + *Description | + *Method Variants | + *
|---|---|---|
UpdateAclConfig |
+ * Default ACL configuration for use in a location of a customer's project. Updates will only reflect to new data stores. Existing data stores will still use the old value. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetAclConfig |
+ * Gets the [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig]. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
See the individual methods for example code. + * + *
Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *
This class can be customized by passing in a custom instance of AclConfigServiceSettings to + * create(). For example: + * + *
To customize credentials: + * + *
{@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
+ * AclConfigServiceSettings aclConfigServiceSettings =
+ * AclConfigServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * AclConfigServiceClient aclConfigServiceClient =
+ * AclConfigServiceClient.create(aclConfigServiceSettings);
+ * }
+ *
+ * To customize the endpoint: + * + *
{@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
+ * AclConfigServiceSettings aclConfigServiceSettings =
+ * AclConfigServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * AclConfigServiceClient aclConfigServiceClient =
+ * AclConfigServiceClient.create(aclConfigServiceSettings);
+ * }
+ *
+ * To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *
{@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
+ * AclConfigServiceSettings aclConfigServiceSettings =
+ * AclConfigServiceSettings.newHttpJsonBuilder().build();
+ * AclConfigServiceClient aclConfigServiceClient =
+ * AclConfigServiceClient.create(aclConfigServiceSettings);
+ * }
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class AclConfigServiceClient implements BackgroundResource { + private final AclConfigServiceSettings settings; + private final AclConfigServiceStub stub; + + /** Constructs an instance of AclConfigServiceClient with default settings. */ + public static final AclConfigServiceClient create() throws IOException { + return create(AclConfigServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AclConfigServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final AclConfigServiceClient create(AclConfigServiceSettings settings) + throws IOException { + return new AclConfigServiceClient(settings); + } + + /** + * Constructs an instance of AclConfigServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(AclConfigServiceSettings). + */ + public static final AclConfigServiceClient create(AclConfigServiceStub stub) { + return new AclConfigServiceClient(stub); + } + + /** + * Constructs an instance of AclConfigServiceClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected AclConfigServiceClient(AclConfigServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((AclConfigServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected AclConfigServiceClient(AclConfigServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final AclConfigServiceSettings getSettings() { + return settings; + } + + public AclConfigServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Default ACL configuration for use in a location of a customer's project. Updates will only + * reflect to new data stores. Existing data stores will still use the old value. + * + *
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 (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
+ * UpdateAclConfigRequest request =
+ * UpdateAclConfigRequest.newBuilder().setAclConfig(AclConfig.newBuilder().build()).build();
+ * AclConfig response = aclConfigServiceClient.updateAclConfig(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 AclConfig updateAclConfig(UpdateAclConfigRequest request) {
+ return updateAclConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Default ACL configuration for use in a location of a customer's project. Updates will only
+ * reflect to new data stores. Existing data stores will still use the old value.
+ *
+ * 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 (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
+ * UpdateAclConfigRequest request =
+ * UpdateAclConfigRequest.newBuilder().setAclConfig(AclConfig.newBuilder().build()).build();
+ * ApiFuture future =
+ * aclConfigServiceClient.updateAclConfigCallable().futureCall(request);
+ * // Do something.
+ * AclConfig response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample 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 (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
+ * AclConfigName name = AclConfigName.of("[PROJECT]", "[LOCATION]");
+ * AclConfig response = aclConfigServiceClient.getAclConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. Resource name of
+ * [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], such as
+ * `projects/*/locations/*/aclConfig`.
+ * If the caller does not have permission to access the + * [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], regardless of whether or not it + * exists, a PERMISSION_DENIED error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AclConfig getAclConfig(AclConfigName name) { + GetAclConfigRequest request = + GetAclConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAclConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig]. + * + *
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 (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
+ * String name = AclConfigName.of("[PROJECT]", "[LOCATION]").toString();
+ * AclConfig response = aclConfigServiceClient.getAclConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. Resource name of
+ * [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], such as
+ * `projects/*/locations/*/aclConfig`.
+ * If the caller does not have permission to access the + * [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], regardless of whether or not it + * exists, a PERMISSION_DENIED error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AclConfig getAclConfig(String name) { + GetAclConfigRequest request = GetAclConfigRequest.newBuilder().setName(name).build(); + return getAclConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig]. + * + *
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 (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
+ * GetAclConfigRequest request =
+ * GetAclConfigRequest.newBuilder()
+ * .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString())
+ * .build();
+ * AclConfig response = aclConfigServiceClient.getAclConfig(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 AclConfig getAclConfig(GetAclConfigRequest request) {
+ return getAclConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig].
+ *
+ * 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 (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
+ * GetAclConfigRequest request =
+ * GetAclConfigRequest.newBuilder()
+ * .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString())
+ * .build();
+ * ApiFuture future =
+ * aclConfigServiceClient.getAclConfigCallable().futureCall(request);
+ * // Do something.
+ * AclConfig response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableThe default instance has everything set to sensible defaults: + * + *
The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *
For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of updateAclConfig: + * + *
{@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
+ * AclConfigServiceSettings.Builder aclConfigServiceSettingsBuilder =
+ * AclConfigServiceSettings.newBuilder();
+ * aclConfigServiceSettingsBuilder
+ * .updateAclConfigSettings()
+ * .setRetrySettings(
+ * aclConfigServiceSettingsBuilder
+ * .updateAclConfigSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * AclConfigServiceSettings aclConfigServiceSettings = aclConfigServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class AclConfigServiceSettings extends ClientSettingsNote: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the AssistantServiceClient object to clean up resources
+ * such as threads. In the example above, try-with-resources is used, which automatically calls
+ * close().
+ *
+ * StreamAssist Assists the user with a query in a streaming fashion. Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. streamAssistCallable()
+ * CreateAssistant Creates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Request object method variants only take one parameter, a request object, which must be constructed before the call. createAssistant(CreateAssistantRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createAssistantCallable()
+ * DeleteAssistant Deletes an [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteAssistant(DeleteAssistantRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. deleteAssistant(AssistantName name)
+ * deleteAssistant(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. deleteAssistantCallable()
+ * UpdateAssistant Updates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant] Request object method variants only take one parameter, a request object, which must be constructed before the call. updateAssistant(UpdateAssistantRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updateAssistant(Assistant assistant, 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. updateAssistantCallable()
+ * GetAssistant Gets an [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Request object method variants only take one parameter, a request object, which must be constructed before the call. getAssistant(GetAssistantRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getAssistant(AssistantName name)
+ * getAssistant(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. getAssistantCallable()
+ * ListAssistants Lists all [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s under an [Engine][google.cloud.discoveryengine.v1beta.Engine]. Request object method variants only take one parameter, a request object, which must be constructed before the call. listAssistants(ListAssistantsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listAssistants(EngineName parent)
+ * listAssistants(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. listAssistantsPagedCallable()
+ * listAssistantsCallable()
+ * See the individual methods for example code.
+ *
+ * Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ * This class can be customized by passing in a custom instance of AssistantServiceSettings to
+ * create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over
+ * the wire:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class AssistantServiceClient implements BackgroundResource {
+ private final AssistantServiceSettings settings;
+ private final AssistantServiceStub stub;
+
+ /** Constructs an instance of AssistantServiceClient with default settings. */
+ public static final AssistantServiceClient create() throws IOException {
+ return create(AssistantServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of AssistantServiceClient, using the given settings. The channels are
+ * created based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final AssistantServiceClient create(AssistantServiceSettings settings)
+ throws IOException {
+ return new AssistantServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of AssistantServiceClient, using the given stub for making calls. This
+ * is for advanced usage - prefer using create(AssistantServiceSettings).
+ */
+ public static final AssistantServiceClient create(AssistantServiceStub stub) {
+ return new AssistantServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of AssistantServiceClient, using the given settings. This is protected
+ * so that it is easy to make a subclass, but otherwise, the static factory methods should be
+ * preferred.
+ */
+ protected AssistantServiceClient(AssistantServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((AssistantServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected AssistantServiceClient(AssistantServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final AssistantServiceSettings getSettings() {
+ return settings;
+ }
+
+ public AssistantServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Assists the user with a query in a streaming fashion.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * If the caller does not have permission to delete the
+ * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of whether or not it
+ * exists, a PERMISSION_DENIED error is returned.
+ * If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to delete does not
+ * exist, a NOT_FOUND error is returned.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteAssistant(AssistantName name) {
+ DeleteAssistantRequest request =
+ DeleteAssistantRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ deleteAssistant(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
+ *
+ * Sample code:
+ *
+ * If the caller does not have permission to delete the
+ * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of whether or not it
+ * exists, a PERMISSION_DENIED error is returned.
+ * If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to delete does not
+ * exist, a NOT_FOUND error is returned.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteAssistant(String name) {
+ DeleteAssistantRequest request = DeleteAssistantRequest.newBuilder().setName(name).build();
+ deleteAssistant(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s `name` field is used to
+ * identify the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update. Format:
+ * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+ * If the caller does not have permission to update the
+ * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of whether or not it
+ * exists, a PERMISSION_DENIED error is returned.
+ * If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update does not
+ * exist, a NOT_FOUND error is returned.
+ * @param updateMask The list of fields to update.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Assistant updateAssistant(Assistant assistant, FieldMask updateMask) {
+ UpdateAssistantRequest request =
+ UpdateAssistantRequest.newBuilder()
+ .setAssistant(assistant)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateAssistant(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant]
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of createAssistant:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the CmekConfigServiceClient object to clean up resources
+ * such as threads. In the example above, try-with-resources is used, which automatically calls
+ * close().
+ *
+ * UpdateCmekConfig Provisions a CMEK key for use in a location of a customer's project. This method will also conduct location validation on the provided cmekConfig to make sure the key is valid and can be used in the selected location. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateCmekConfigAsync(UpdateCmekConfigRequest request)
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. updateCmekConfigAsync(CmekConfig config)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateCmekConfigOperationCallable()
+ * updateCmekConfigCallable()
+ * GetCmekConfig Gets the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]. Request object method variants only take one parameter, a request object, which must be constructed before the call. getCmekConfig(GetCmekConfigRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getCmekConfig(CmekConfigName name)
+ * getCmekConfig(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. getCmekConfigCallable()
+ * ListCmekConfigs Lists all the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s with the project. Request object method variants only take one parameter, a request object, which must be constructed before the call. listCmekConfigs(ListCmekConfigsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listCmekConfigs(LocationName parent)
+ * listCmekConfigs(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. listCmekConfigsCallable()
+ * DeleteCmekConfig De-provisions a CmekConfig. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteCmekConfigAsync(DeleteCmekConfigRequest request)
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteCmekConfigAsync(CmekConfigName name)
+ * deleteCmekConfigAsync(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. deleteCmekConfigOperationCallable()
+ * deleteCmekConfigCallable()
+ * See the individual methods for example code.
+ *
+ * Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ * This class can be customized by passing in a custom instance of CmekConfigServiceSettings to
+ * create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over
+ * the wire:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class CmekConfigServiceClient implements BackgroundResource {
+ private final CmekConfigServiceSettings settings;
+ private final CmekConfigServiceStub stub;
+ private final OperationsClient httpJsonOperationsClient;
+ private final com.google.longrunning.OperationsClient operationsClient;
+
+ /** Constructs an instance of CmekConfigServiceClient with default settings. */
+ public static final CmekConfigServiceClient create() throws IOException {
+ return create(CmekConfigServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of CmekConfigServiceClient, using the given settings. The channels are
+ * created based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final CmekConfigServiceClient create(CmekConfigServiceSettings settings)
+ throws IOException {
+ return new CmekConfigServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of CmekConfigServiceClient, using the given stub for making calls. This
+ * is for advanced usage - prefer using create(CmekConfigServiceSettings).
+ */
+ public static final CmekConfigServiceClient create(CmekConfigServiceStub stub) {
+ return new CmekConfigServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of CmekConfigServiceClient, using the given settings. This is protected
+ * so that it is easy to make a subclass, but otherwise, the static factory methods should be
+ * preferred.
+ */
+ protected CmekConfigServiceClient(CmekConfigServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((CmekConfigServiceStubSettings) settings.getStubSettings()).createStub();
+ this.operationsClient =
+ com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub());
+ this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
+ }
+
+ protected CmekConfigServiceClient(CmekConfigServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ this.operationsClient =
+ com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub());
+ this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
+ }
+
+ public final CmekConfigServiceSettings getSettings() {
+ return settings;
+ }
+
+ public CmekConfigServiceStub getStub() {
+ return stub;
+ }
+
+ /**
+ * Returns the OperationsClient that can be used to query the status of a long-running operation
+ * returned by another API method call.
+ */
+ public final com.google.longrunning.OperationsClient getOperationsClient() {
+ return operationsClient;
+ }
+
+ /**
+ * Returns the OperationsClient that can be used to query the status of a long-running operation
+ * returned by another API method call.
+ */
+ @BetaApi
+ public final OperationsClient getHttpJsonOperationsClient() {
+ return httpJsonOperationsClient;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Provisions a CMEK key for use in a location of a customer's project. This method will also
+ * conduct location validation on the provided cmekConfig to make sure the key is valid and can be
+ * used in the selected location.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * If the caller does not have permission to access the
+ * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], regardless of whether or not
+ * it exists, a PERMISSION_DENIED error is returned.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CmekConfig getCmekConfig(CmekConfigName name) {
+ GetCmekConfigRequest request =
+ GetCmekConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getCmekConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig].
+ *
+ * Sample code:
+ *
+ * If the caller does not have permission to access the
+ * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], regardless of whether or not
+ * it exists, a PERMISSION_DENIED error is returned.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CmekConfig getCmekConfig(String name) {
+ GetCmekConfigRequest request = GetCmekConfigRequest.newBuilder().setName(name).build();
+ return getCmekConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig].
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * If the caller does not have permission to list
+ * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s under this location,
+ * regardless of whether or not a CmekConfig exists, a PERMISSION_DENIED error is returned.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCmekConfigsResponse listCmekConfigs(LocationName parent) {
+ ListCmekConfigsRequest request =
+ ListCmekConfigsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listCmekConfigs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s with the project.
+ *
+ * Sample code:
+ *
+ * If the caller does not have permission to list
+ * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s under this location,
+ * regardless of whether or not a CmekConfig exists, a PERMISSION_DENIED error is returned.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCmekConfigsResponse listCmekConfigs(String parent) {
+ ListCmekConfigsRequest request = ListCmekConfigsRequest.newBuilder().setParent(parent).build();
+ return listCmekConfigs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s with the project.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of getCmekConfig:
+ *
+ * To configure the RetrySettings of a Long Running Operation method, create an
+ * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to
+ * configure the RetrySettings for updateCmekConfig:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction{@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 (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+ * CreateAssistantRequest request =
+ * CreateAssistantRequest.newBuilder()
+ * .setParent(
+ * EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
+ * .setAssistant(Assistant.newBuilder().build())
+ * .setAssistantId("assistantId-324518759")
+ * .build();
+ * Assistant response = assistantServiceClient.createAssistant(request);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ *
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * {@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
+ * AssistantServiceSettings assistantServiceSettings =
+ * AssistantServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * AssistantServiceClient assistantServiceClient =
+ * AssistantServiceClient.create(assistantServiceSettings);
+ * }
+ *
+ * {@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
+ * AssistantServiceSettings assistantServiceSettings =
+ * AssistantServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * AssistantServiceClient assistantServiceClient =
+ * AssistantServiceClient.create(assistantServiceSettings);
+ * }
+ *
+ * {@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
+ * AssistantServiceSettings assistantServiceSettings =
+ * AssistantServiceSettings.newHttpJsonBuilder().build();
+ * AssistantServiceClient assistantServiceClient =
+ * AssistantServiceClient.create(assistantServiceSettings);
+ * }
+ *
+ * {@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 (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+ * StreamAssistRequest request =
+ * StreamAssistRequest.newBuilder()
+ * .setName(
+ * AssistantName.of(
+ * "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]")
+ * .toString())
+ * .setQuery(Query.newBuilder().build())
+ * .setSession(
+ * SessionName.ofProjectLocationDataStoreSessionName(
+ * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]")
+ * .toString())
+ * .setUserMetadata(AssistUserMetadata.newBuilder().build())
+ * .setToolsSpec(StreamAssistRequest.ToolsSpec.newBuilder().build())
+ * .setGenerationSpec(StreamAssistRequest.GenerationSpec.newBuilder().build())
+ * .build();
+ * ServerStream
+ */
+ public final ServerStreamingCallable{@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 (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+ * CreateAssistantRequest request =
+ * CreateAssistantRequest.newBuilder()
+ * .setParent(
+ * EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
+ * .setAssistant(Assistant.newBuilder().build())
+ * .setAssistantId("assistantId-324518759")
+ * .build();
+ * Assistant response = assistantServiceClient.createAssistant(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 Assistant createAssistant(CreateAssistantRequest request) {
+ return createAssistantCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
+ *
+ * {@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 (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+ * CreateAssistantRequest request =
+ * CreateAssistantRequest.newBuilder()
+ * .setParent(
+ * EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
+ * .setAssistant(Assistant.newBuilder().build())
+ * .setAssistantId("assistantId-324518759")
+ * .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 (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+ * AssistantName name =
+ * AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]");
+ * assistantServiceClient.deleteAssistant(name);
+ * }
+ * }
+ *
+ * @param name Required. Resource name of
+ * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
+ * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+ * {@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 (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+ * String name =
+ * AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]")
+ * .toString();
+ * assistantServiceClient.deleteAssistant(name);
+ * }
+ * }
+ *
+ * @param name Required. Resource name of
+ * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
+ * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+ * {@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 (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+ * DeleteAssistantRequest request =
+ * DeleteAssistantRequest.newBuilder()
+ * .setName(
+ * AssistantName.of(
+ * "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]")
+ * .toString())
+ * .build();
+ * assistantServiceClient.deleteAssistant(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 void deleteAssistant(DeleteAssistantRequest request) {
+ deleteAssistantCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
+ *
+ * {@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 (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+ * DeleteAssistantRequest request =
+ * DeleteAssistantRequest.newBuilder()
+ * .setName(
+ * AssistantName.of(
+ * "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]")
+ * .toString())
+ * .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 (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+ * Assistant assistant = Assistant.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Assistant response = assistantServiceClient.updateAssistant(assistant, updateMask);
+ * }
+ * }
+ *
+ * @param assistant Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
+ * update.
+ * {@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 (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+ * UpdateAssistantRequest request =
+ * UpdateAssistantRequest.newBuilder()
+ * .setAssistant(Assistant.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Assistant response = assistantServiceClient.updateAssistant(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 Assistant updateAssistant(UpdateAssistantRequest request) {
+ return updateAssistantCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant]
+ *
+ * {@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 (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+ * UpdateAssistantRequest request =
+ * UpdateAssistantRequest.newBuilder()
+ * .setAssistant(Assistant.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 (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+ * AssistantName name =
+ * AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]");
+ * Assistant response = assistantServiceClient.getAssistant(name);
+ * }
+ * }
+ *
+ * @param name Required. Resource name of
+ * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
+ * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Assistant getAssistant(AssistantName name) {
+ GetAssistantRequest request =
+ GetAssistantRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getAssistant(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
+ *
+ * {@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 (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+ * String name =
+ * AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]")
+ * .toString();
+ * Assistant response = assistantServiceClient.getAssistant(name);
+ * }
+ * }
+ *
+ * @param name Required. Resource name of
+ * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
+ * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Assistant getAssistant(String name) {
+ GetAssistantRequest request = GetAssistantRequest.newBuilder().setName(name).build();
+ return getAssistant(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
+ *
+ * {@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 (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+ * GetAssistantRequest request =
+ * GetAssistantRequest.newBuilder()
+ * .setName(
+ * AssistantName.of(
+ * "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]")
+ * .toString())
+ * .build();
+ * Assistant response = assistantServiceClient.getAssistant(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 Assistant getAssistant(GetAssistantRequest request) {
+ return getAssistantCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
+ *
+ * {@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 (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+ * GetAssistantRequest request =
+ * GetAssistantRequest.newBuilder()
+ * .setName(
+ * AssistantName.of(
+ * "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]")
+ * .toString())
+ * .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 (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+ * EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]");
+ * for (Assistant element : assistantServiceClient.listAssistants(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource name. Format:
+ * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAssistantsPagedResponse listAssistants(EngineName parent) {
+ ListAssistantsRequest request =
+ ListAssistantsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listAssistants(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s under an
+ * [Engine][google.cloud.discoveryengine.v1beta.Engine].
+ *
+ * {@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 (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+ * String parent =
+ * EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString();
+ * for (Assistant element : assistantServiceClient.listAssistants(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource name. Format:
+ * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAssistantsPagedResponse listAssistants(String parent) {
+ ListAssistantsRequest request = ListAssistantsRequest.newBuilder().setParent(parent).build();
+ return listAssistants(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s under an
+ * [Engine][google.cloud.discoveryengine.v1beta.Engine].
+ *
+ * {@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 (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+ * ListAssistantsRequest request =
+ * ListAssistantsRequest.newBuilder()
+ * .setParent(
+ * EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Assistant element : assistantServiceClient.listAssistants(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 ListAssistantsPagedResponse listAssistants(ListAssistantsRequest request) {
+ return listAssistantsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s under an
+ * [Engine][google.cloud.discoveryengine.v1beta.Engine].
+ *
+ * {@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 (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+ * ListAssistantsRequest request =
+ * ListAssistantsRequest.newBuilder()
+ * .setParent(
+ * EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
+ * .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 (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+ * ListAssistantsRequest request =
+ * ListAssistantsRequest.newBuilder()
+ * .setParent(
+ * EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListAssistantsResponse response =
+ * assistantServiceClient.listAssistantsCallable().call(request);
+ * for (Assistant element : response.getAssistantsList()) {
+ * // 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
+ * AssistantServiceSettings.Builder assistantServiceSettingsBuilder =
+ * AssistantServiceSettings.newBuilder();
+ * assistantServiceSettingsBuilder
+ * .createAssistantSettings()
+ * .setRetrySettings(
+ * assistantServiceSettingsBuilder
+ * .createAssistantSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * AssistantServiceSettings assistantServiceSettings = assistantServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class AssistantServiceSettings extends ClientSettings{@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 (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+ * CmekConfigName name = CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]");
+ * CmekConfig response = cmekConfigServiceClient.getCmekConfig(name);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ *
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * {@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
+ * CmekConfigServiceSettings cmekConfigServiceSettings =
+ * CmekConfigServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * CmekConfigServiceClient cmekConfigServiceClient =
+ * CmekConfigServiceClient.create(cmekConfigServiceSettings);
+ * }
+ *
+ * {@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
+ * CmekConfigServiceSettings cmekConfigServiceSettings =
+ * CmekConfigServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * CmekConfigServiceClient cmekConfigServiceClient =
+ * CmekConfigServiceClient.create(cmekConfigServiceSettings);
+ * }
+ *
+ * {@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
+ * CmekConfigServiceSettings cmekConfigServiceSettings =
+ * CmekConfigServiceSettings.newHttpJsonBuilder().build();
+ * CmekConfigServiceClient cmekConfigServiceClient =
+ * CmekConfigServiceClient.create(cmekConfigServiceSettings);
+ * }
+ *
+ * {@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 (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+ * CmekConfig config = CmekConfig.newBuilder().build();
+ * CmekConfig response = cmekConfigServiceClient.updateCmekConfigAsync(config).get();
+ * }
+ * }
+ *
+ * @param config Required. The CmekConfig resource.
+ * @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 (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+ * UpdateCmekConfigRequest request =
+ * UpdateCmekConfigRequest.newBuilder()
+ * .setConfig(CmekConfig.newBuilder().build())
+ * .setSetDefault(true)
+ * .build();
+ * CmekConfig response = cmekConfigServiceClient.updateCmekConfigAsync(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 (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+ * UpdateCmekConfigRequest request =
+ * UpdateCmekConfigRequest.newBuilder()
+ * .setConfig(CmekConfig.newBuilder().build())
+ * .setSetDefault(true)
+ * .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 (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+ * UpdateCmekConfigRequest request =
+ * UpdateCmekConfigRequest.newBuilder()
+ * .setConfig(CmekConfig.newBuilder().build())
+ * .setSetDefault(true)
+ * .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 (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+ * CmekConfigName name = CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]");
+ * CmekConfig response = cmekConfigServiceClient.getCmekConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. Resource name of
+ * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], such as
+ * `projects/*/locations/*/cmekConfig` or
+ * `projects/*/locations/*/cmekConfigs/*`.
+ * {@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 (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+ * String name = CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]").toString();
+ * CmekConfig response = cmekConfigServiceClient.getCmekConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. Resource name of
+ * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], such as
+ * `projects/*/locations/*/cmekConfig` or
+ * `projects/*/locations/*/cmekConfigs/*`.
+ * {@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 (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+ * GetCmekConfigRequest request =
+ * GetCmekConfigRequest.newBuilder()
+ * .setName(CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]").toString())
+ * .build();
+ * CmekConfig response = cmekConfigServiceClient.getCmekConfig(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 CmekConfig getCmekConfig(GetCmekConfigRequest request) {
+ return getCmekConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig].
+ *
+ * {@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 (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+ * GetCmekConfigRequest request =
+ * GetCmekConfigRequest.newBuilder()
+ * .setName(CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]").toString())
+ * .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 (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * ListCmekConfigsResponse response = cmekConfigServiceClient.listCmekConfigs(parent);
+ * }
+ * }
+ *
+ * @param parent Required. The parent location resource name, such as
+ * `projects/{project}/locations/{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 (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * ListCmekConfigsResponse response = cmekConfigServiceClient.listCmekConfigs(parent);
+ * }
+ * }
+ *
+ * @param parent Required. The parent location resource name, such as
+ * `projects/{project}/locations/{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 (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+ * ListCmekConfigsRequest request =
+ * ListCmekConfigsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .build();
+ * ListCmekConfigsResponse response = cmekConfigServiceClient.listCmekConfigs(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 ListCmekConfigsResponse listCmekConfigs(ListCmekConfigsRequest request) {
+ return listCmekConfigsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s with the project.
+ *
+ * {@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 (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+ * ListCmekConfigsRequest request =
+ * ListCmekConfigsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .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 (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+ * CmekConfigName name =
+ * CmekConfigName.ofProjectLocationCmekConfigName(
+ * "[PROJECT]", "[LOCATION]", "[CMEK_CONFIG]");
+ * cmekConfigServiceClient.deleteCmekConfigAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the
+ * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig] to delete, such as
+ * `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`.
+ * @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 (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+ * String name = CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]").toString();
+ * cmekConfigServiceClient.deleteCmekConfigAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the
+ * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig] to delete, such as
+ * `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`.
+ * @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 (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+ * DeleteCmekConfigRequest request =
+ * DeleteCmekConfigRequest.newBuilder()
+ * .setName(
+ * CmekConfigName.ofProjectLocationCmekConfigName(
+ * "[PROJECT]", "[LOCATION]", "[CMEK_CONFIG]")
+ * .toString())
+ * .build();
+ * cmekConfigServiceClient.deleteCmekConfigAsync(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 (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+ * DeleteCmekConfigRequest request =
+ * DeleteCmekConfigRequest.newBuilder()
+ * .setName(
+ * CmekConfigName.ofProjectLocationCmekConfigName(
+ * "[PROJECT]", "[LOCATION]", "[CMEK_CONFIG]")
+ * .toString())
+ * .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 (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+ * DeleteCmekConfigRequest request =
+ * DeleteCmekConfigRequest.newBuilder()
+ * .setName(
+ * CmekConfigName.ofProjectLocationCmekConfigName(
+ * "[PROJECT]", "[LOCATION]", "[CMEK_CONFIG]")
+ * .toString())
+ * .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
+ * CmekConfigServiceSettings.Builder cmekConfigServiceSettingsBuilder =
+ * CmekConfigServiceSettings.newBuilder();
+ * cmekConfigServiceSettingsBuilder
+ * .getCmekConfigSettings()
+ * .setRetrySettings(
+ * cmekConfigServiceSettingsBuilder
+ * .getCmekConfigSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * CmekConfigServiceSettings cmekConfigServiceSettings = cmekConfigServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ *
+ * {@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
+ * CmekConfigServiceSettings.Builder cmekConfigServiceSettingsBuilder =
+ * CmekConfigServiceSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ * OperationalTimedPollAlgorithm.create(
+ * RetrySettings.newBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ * .setRetryDelayMultiplier(1.5)
+ * .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ * .setTotalTimeoutDuration(Duration.ofHours(24))
+ * .build());
+ * cmekConfigServiceSettingsBuilder
+ * .createClusterOperationSettings()
+ * .setPollingAlgorithm(timedRetryAlgorithm)
+ * .build();
+ * }
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class CmekConfigServiceSettings extends ClientSettings
RemoveSuggestion
Removes the search history suggestion in an engine for a user. This will remove the suggestion from being returned in the [AdvancedCompleteQueryResponse.recent_search_suggestions][google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.recent_search_suggestions] for this user. If the user searches the same suggestion again, the new history will override and suggest this suggestion again.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *removeSuggestion(RemoveSuggestionRequest request) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *removeSuggestionCallable() + *
See the individual methods for example code.
@@ -387,6 +401,9 @@ public final UnaryCallable Sample code:
+ *
+ * Sample code:
+ *
+ * StreamAnswerQuery Answer query method (streaming).
+ * It takes one [AnswerQueryRequest][google.cloud.discoveryengine.v1beta.AnswerQueryRequest] and returns multiple [AnswerQueryResponse][google.cloud.discoveryengine.v1beta.AnswerQueryResponse] messages in a stream. Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. streamAnswerQueryCallable()
+ * GetAnswer Gets a Answer. It takes one [AnswerQueryRequest][google.cloud.discoveryengine.v1beta.AnswerQueryRequest]
+ * and returns multiple
+ * [AnswerQueryResponse][google.cloud.discoveryengine.v1beta.AnswerQueryResponse] messages in a
+ * stream.
+ *
+ * Sample code:
+ *
+ * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with
- * a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+ * a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Document createDocument(BranchName parent, Document document, String documentId) {
@@ -761,7 +761,7 @@ public final Document createDocument(BranchName parent, Document document, Strin
* [parent][google.cloud.discoveryengine.v1beta.CreateDocumentRequest.parent]. Otherwise, an
* `ALREADY_EXISTS` error is returned.
* This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with
- * a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+ * a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Document createDocument(String parent, Document document, String documentId) {
@@ -1097,6 +1097,7 @@ public final UnaryCallable CreateEngine Creates a [Engine][google.cloud.discoveryengine.v1beta.Engine]. Creates an [Engine][google.cloud.discoveryengine.v1beta.Engine]. Request object method variants only take one parameter, a request object, which must be constructed before the call. DeleteEngine Deletes a [Engine][google.cloud.discoveryengine.v1beta.Engine]. Deletes an [Engine][google.cloud.discoveryengine.v1beta.Engine]. Request object method variants only take one parameter, a request object, which must be constructed before the call. GetEngine Gets a [Engine][google.cloud.discoveryengine.v1beta.Engine]. Gets an [Engine][google.cloud.discoveryengine.v1beta.Engine]. Request object method variants only take one parameter, a request object, which must be constructed before the call. PauseEngine Pauses the training of an existing engine. Only applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. Pauses the training of an existing [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. Request object method variants only take one parameter, a request object, which must be constructed before the call. ResumeEngine Resumes the training of an existing engine. Only applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. Resumes the training of an existing [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. Request object method variants only take one parameter, a request object, which must be constructed before the call. TuneEngine Tunes an existing engine. Only applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. Tunes an existing [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. Request object method variants only take one parameter, a request object, which must be constructed before the call. GetIamPolicy Gets the IAM access control policy for an [Engine][google.cloud.discoveryengine.v1beta.Engine]. A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it. Request object method variants only take one parameter, a request object, which must be constructed before the call. getIamPolicy(GetIamPolicyRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getIamPolicy(ResourceName resource)
+ * getIamPolicy(String resource)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getIamPolicyCallable()
+ * SetIamPolicy Sets the IAM access control policy for an [Engine][google.cloud.discoveryengine.v1beta.Engine]. A `NOT_FOUND` error is returned if the resource does not exist.
+ * **Important:** When setting a policy directly on an Engine resource, the only recommended roles in the bindings are: `roles/discoveryengine.admin`, `roles/discoveryengine.agentspaceAdmin`, `roles/discoveryengine.user`, `roles/discoveryengine.agentspaceUser`, `roles/discoveryengine.viewer`, `roles/discoveryengine.agentspaceViewer`. Attempting to grant any other role will result in a warning in logging. Request object method variants only take one parameter, a request object, which must be constructed before the call. setIamPolicy(SetIamPolicyRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. setIamPolicy(ResourceName resource, Policy policy)
+ * setIamPolicy(String resource, Policy policy)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. setIamPolicyCallable()
+ * See the individual methods for example code.
@@ -358,7 +401,7 @@ public final OperationsClient getHttpJsonOperationsClient() {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a [Engine][google.cloud.discoveryengine.v1beta.Engine].
+ * Creates an [Engine][google.cloud.discoveryengine.v1beta.Engine].
*
* Sample code:
*
@@ -399,7 +442,7 @@ public final OperationFuture Sample code:
*
@@ -440,7 +483,7 @@ public final OperationFuture Sample code:
*
@@ -471,7 +514,7 @@ public final OperationFuture Sample code:
*
@@ -502,7 +545,7 @@ public final OperationFuture Sample code:
*
@@ -531,7 +574,7 @@ public final UnaryCallable Sample code:
*
@@ -565,7 +608,7 @@ public final OperationFuture Sample code:
*
@@ -598,7 +641,7 @@ public final OperationFuture Sample code:
*
@@ -628,7 +671,7 @@ public final OperationFuture Sample code:
*
@@ -658,7 +701,7 @@ public final OperationFuture Sample code:
*
@@ -779,7 +822,7 @@ public final UnaryCallable Sample code:
*
@@ -808,7 +851,7 @@ public final Engine getEngine(EngineName name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets a [Engine][google.cloud.discoveryengine.v1beta.Engine].
+ * Gets an [Engine][google.cloud.discoveryengine.v1beta.Engine].
*
* Sample code:
*
@@ -836,7 +879,7 @@ public final Engine getEngine(String name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets a [Engine][google.cloud.discoveryengine.v1beta.Engine].
+ * Gets an [Engine][google.cloud.discoveryengine.v1beta.Engine].
*
* Sample code:
*
@@ -865,7 +908,7 @@ public final Engine getEngine(GetEngineRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets a [Engine][google.cloud.discoveryengine.v1beta.Engine].
+ * Gets an [Engine][google.cloud.discoveryengine.v1beta.Engine].
*
* Sample code:
*
@@ -1064,8 +1107,8 @@ public final UnaryCallable Sample code:
@@ -1094,8 +1137,8 @@ public final Engine pauseEngine(EngineName name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Pauses the training of an existing engine. Only applicable if
- * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
+ * Pauses the training of an existing [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only
+ * applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
* [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
*
* Sample code:
@@ -1123,8 +1166,8 @@ public final Engine pauseEngine(String name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Pauses the training of an existing engine. Only applicable if
- * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
+ * Pauses the training of an existing [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only
+ * applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
* [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
*
* Sample code:
@@ -1154,8 +1197,8 @@ public final Engine pauseEngine(PauseEngineRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Pauses the training of an existing engine. Only applicable if
- * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
+ * Pauses the training of an existing [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only
+ * applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
* [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
*
* Sample code:
@@ -1184,8 +1227,8 @@ public final UnaryCallable Sample code:
@@ -1214,8 +1257,8 @@ public final Engine resumeEngine(EngineName name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Resumes the training of an existing engine. Only applicable if
- * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
+ * Resumes the training of an existing [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only
+ * applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
* [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
*
* Sample code:
@@ -1243,8 +1286,8 @@ public final Engine resumeEngine(String name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Resumes the training of an existing engine. Only applicable if
- * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
+ * Resumes the training of an existing [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only
+ * applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
* [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
*
* Sample code:
@@ -1274,8 +1317,8 @@ public final Engine resumeEngine(ResumeEngineRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Resumes the training of an existing engine. Only applicable if
- * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
+ * Resumes the training of an existing [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only
+ * applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
* [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
*
* Sample code:
@@ -1304,7 +1347,7 @@ public final UnaryCallable Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * **Important:** When setting a policy directly on an Engine resource, the
+ * only recommended roles in the bindings are: `roles/discoveryengine.admin`,
+ * `roles/discoveryengine.agentspaceAdmin`, `roles/discoveryengine.user`,
+ * `roles/discoveryengine.agentspaceUser`, `roles/discoveryengine.viewer`,
+ * `roles/discoveryengine.agentspaceViewer`. Attempting to grant any other role will result in a
+ * warning in logging.
+ *
+ * Sample code:
+ *
+ * **Important:** When setting a policy directly on an Engine resource, the
+ * only recommended roles in the bindings are: `roles/discoveryengine.admin`,
+ * `roles/discoveryengine.agentspaceAdmin`, `roles/discoveryengine.user`,
+ * `roles/discoveryengine.agentspaceUser`, `roles/discoveryengine.viewer`,
+ * `roles/discoveryengine.agentspaceViewer`. Attempting to grant any other role will result in a
+ * warning in logging.
+ *
+ * Sample code:
+ *
+ * **Important:** When setting a policy directly on an Engine resource, the
+ * only recommended roles in the bindings are: `roles/discoveryengine.admin`,
+ * `roles/discoveryengine.agentspaceAdmin`, `roles/discoveryengine.user`,
+ * `roles/discoveryengine.agentspaceUser`, `roles/discoveryengine.viewer`,
+ * `roles/discoveryengine.agentspaceViewer`. Attempting to grant any other role will result in a
+ * warning in logging.
+ *
+ * Sample code:
+ *
+ * **Important:** When setting a policy directly on an Engine resource, the
+ * only recommended roles in the bindings are: `roles/discoveryengine.admin`,
+ * `roles/discoveryengine.agentspaceAdmin`, `roles/discoveryengine.user`,
+ * `roles/discoveryengine.agentspaceUser`, `roles/discoveryengine.viewer`,
+ * `roles/discoveryengine.agentspaceViewer`. Attempting to grant any other role will result in a
+ * warning in logging.
+ *
+ * Sample code:
+ *
+ * If the caller does not have permission to list [EvaluationResult][] under this
- * evaluation, regardless of whether or not this evaluation set exists, a `PERMISSION_DENIED`
- * error is returned.
+ * If the caller does not have permission to list
+ * [ListEvaluationResultsResponse.EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]
+ * under this evaluation, regardless of whether or not this evaluation set exists, a
+ * `PERMISSION_DENIED` error is returned.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListEvaluationResultsPagedResponse listEvaluationResults(EvaluationName evaluation) {
@@ -804,9 +805,10 @@ public final ListEvaluationResultsPagedResponse listEvaluationResults(Evaluation
*
* @param evaluation Required. The evaluation resource name, such as
* `projects/{project}/locations/{location}/evaluations/{evaluation}`.
- * If the caller does not have permission to list [EvaluationResult][] under this
- * evaluation, regardless of whether or not this evaluation set exists, a `PERMISSION_DENIED`
- * error is returned.
+ * If the caller does not have permission to list
+ * [ListEvaluationResultsResponse.EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]
+ * under this evaluation, regardless of whether or not this evaluation set exists, a
+ * `PERMISSION_DENIED` error is returned.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListEvaluationResultsPagedResponse listEvaluationResults(String evaluation) {
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceClient.java
new file mode 100644
index 000000000000..eacd312a2f2d
--- /dev/null
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceClient.java
@@ -0,0 +1,1499 @@
+/*
+ * 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.cloud.discoveryengine.v1beta;
+
+import com.google.api.core.ApiFuture;
+import com.google.api.core.ApiFutures;
+import com.google.api.core.BetaApi;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.longrunning.OperationsClient;
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.api.gax.paging.AbstractFixedSizeCollection;
+import com.google.api.gax.paging.AbstractPage;
+import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.PageContext;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.discoveryengine.v1beta.stub.IdentityMappingStoreServiceStub;
+import com.google.cloud.discoveryengine.v1beta.stub.IdentityMappingStoreServiceStubSettings;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.google.longrunning.Operation;
+import com.google.protobuf.Empty;
+import java.io.IOException;
+import java.util.List;
+import java.util.concurrent.TimeUnit;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Service Description: Service for managing Identity Mapping Stores.
+ *
+ * This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the IdentityMappingStoreServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ * CreateIdentityMappingStore Creates a new Identity Mapping Store. Request object method variants only take one parameter, a request object, which must be constructed before the call. createIdentityMappingStore(CreateIdentityMappingStoreRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createIdentityMappingStore(LocationName parent, IdentityMappingStore identityMappingStore, String identityMappingStoreId)
+ * createIdentityMappingStore(String parent, IdentityMappingStore identityMappingStore, String identityMappingStoreId)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createIdentityMappingStoreCallable()
+ * GetIdentityMappingStore Gets the Identity Mapping Store. Request object method variants only take one parameter, a request object, which must be constructed before the call. getIdentityMappingStore(GetIdentityMappingStoreRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getIdentityMappingStore(IdentityMappingStoreName name)
+ * getIdentityMappingStore(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. getIdentityMappingStoreCallable()
+ * DeleteIdentityMappingStore Deletes the Identity Mapping Store. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteIdentityMappingStoreAsync(DeleteIdentityMappingStoreRequest request)
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteIdentityMappingStoreAsync(IdentityMappingStoreName name)
+ * deleteIdentityMappingStoreAsync(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. deleteIdentityMappingStoreOperationCallable()
+ * deleteIdentityMappingStoreCallable()
+ * ImportIdentityMappings Imports a list of Identity Mapping Entries to an Identity Mapping Store. Request object method variants only take one parameter, a request object, which must be constructed before the call. importIdentityMappingsAsync(ImportIdentityMappingsRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. importIdentityMappingsOperationCallable()
+ * importIdentityMappingsCallable()
+ * PurgeIdentityMappings Purges specified or all Identity Mapping Entries from an Identity Mapping Store. Request object method variants only take one parameter, a request object, which must be constructed before the call. purgeIdentityMappingsAsync(PurgeIdentityMappingsRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. purgeIdentityMappingsOperationCallable()
+ * purgeIdentityMappingsCallable()
+ * ListIdentityMappings Lists Identity Mappings in an Identity Mapping Store. Request object method variants only take one parameter, a request object, which must be constructed before the call. listIdentityMappings(ListIdentityMappingsRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listIdentityMappingsPagedCallable()
+ * listIdentityMappingsCallable()
+ * ListIdentityMappingStores Lists all Identity Mapping Stores. Request object method variants only take one parameter, a request object, which must be constructed before the call. listIdentityMappingStores(ListIdentityMappingStoresRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listIdentityMappingStores(LocationName parent)
+ * listIdentityMappingStores(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. listIdentityMappingStoresPagedCallable()
+ * listIdentityMappingStoresCallable()
+ * See the individual methods for example code.
+ *
+ * Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ * This class can be customized by passing in a custom instance of
+ * IdentityMappingStoreServiceSettings to create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over
+ * the wire:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class IdentityMappingStoreServiceClient implements BackgroundResource {
+ private final IdentityMappingStoreServiceSettings settings;
+ private final IdentityMappingStoreServiceStub stub;
+ private final OperationsClient httpJsonOperationsClient;
+ private final com.google.longrunning.OperationsClient operationsClient;
+
+ /** Constructs an instance of IdentityMappingStoreServiceClient with default settings. */
+ public static final IdentityMappingStoreServiceClient create() throws IOException {
+ return create(IdentityMappingStoreServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of IdentityMappingStoreServiceClient, using the given settings. The
+ * channels are created based on the settings passed in, or defaults for any settings that are not
+ * set.
+ */
+ public static final IdentityMappingStoreServiceClient create(
+ IdentityMappingStoreServiceSettings settings) throws IOException {
+ return new IdentityMappingStoreServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of IdentityMappingStoreServiceClient, using the given stub for making
+ * calls. This is for advanced usage - prefer using create(IdentityMappingStoreServiceSettings).
+ */
+ public static final IdentityMappingStoreServiceClient create(
+ IdentityMappingStoreServiceStub stub) {
+ return new IdentityMappingStoreServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of IdentityMappingStoreServiceClient, using the given settings. This is
+ * protected so that it is easy to make a subclass, but otherwise, the static factory methods
+ * should be preferred.
+ */
+ protected IdentityMappingStoreServiceClient(IdentityMappingStoreServiceSettings settings)
+ throws IOException {
+ this.settings = settings;
+ this.stub = ((IdentityMappingStoreServiceStubSettings) settings.getStubSettings()).createStub();
+ this.operationsClient =
+ com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub());
+ this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
+ }
+
+ protected IdentityMappingStoreServiceClient(IdentityMappingStoreServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ this.operationsClient =
+ com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub());
+ this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
+ }
+
+ public final IdentityMappingStoreServiceSettings getSettings() {
+ return settings;
+ }
+
+ public IdentityMappingStoreServiceStub getStub() {
+ return stub;
+ }
+
+ /**
+ * Returns the OperationsClient that can be used to query the status of a long-running operation
+ * returned by another API method call.
+ */
+ public final com.google.longrunning.OperationsClient getOperationsClient() {
+ return operationsClient;
+ }
+
+ /**
+ * Returns the OperationsClient that can be used to query the status of a long-running operation
+ * returned by another API method call.
+ */
+ @BetaApi
+ public final OperationsClient getHttpJsonOperationsClient() {
+ return httpJsonOperationsClient;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Identity Mapping Store.
+ *
+ * Sample code:
+ *
+ * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens
+ * (-). The maximum length is 63 characters.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final IdentityMappingStore createIdentityMappingStore(
+ LocationName parent,
+ IdentityMappingStore identityMappingStore,
+ String identityMappingStoreId) {
+ CreateIdentityMappingStoreRequest request =
+ CreateIdentityMappingStoreRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setIdentityMappingStore(identityMappingStore)
+ .setIdentityMappingStoreId(identityMappingStoreId)
+ .build();
+ return createIdentityMappingStore(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Identity Mapping Store.
+ *
+ * Sample code:
+ *
+ * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens
+ * (-). The maximum length is 63 characters.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final IdentityMappingStore createIdentityMappingStore(
+ String parent, IdentityMappingStore identityMappingStore, String identityMappingStoreId) {
+ CreateIdentityMappingStoreRequest request =
+ CreateIdentityMappingStoreRequest.newBuilder()
+ .setParent(parent)
+ .setIdentityMappingStore(identityMappingStore)
+ .setIdentityMappingStoreId(identityMappingStoreId)
+ .build();
+ return createIdentityMappingStore(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Identity Mapping Store.
+ *
+ * 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:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of createIdentityMappingStore:
+ *
+ * To configure the RetrySettings of a Long Running Operation method, create an
+ * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to
+ * configure the RetrySettings for deleteIdentityMappingStore:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the LicenseConfigServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ * CreateLicenseConfig Creates a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This method should only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses. Request object method variants only take one parameter, a request object, which must be constructed before the call. createLicenseConfig(CreateLicenseConfigRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createLicenseConfig(LocationName parent, LicenseConfig licenseConfig, String licenseConfigId)
+ * createLicenseConfig(String parent, LicenseConfig licenseConfig, String licenseConfigId)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createLicenseConfigCallable()
+ * UpdateLicenseConfig Updates the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] Request object method variants only take one parameter, a request object, which must be constructed before the call. updateLicenseConfig(UpdateLicenseConfigRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updateLicenseConfig(LicenseConfig licenseConfig, 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. updateLicenseConfigCallable()
+ * GetLicenseConfig Gets a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]. Request object method variants only take one parameter, a request object, which must be constructed before the call. getLicenseConfig(GetLicenseConfigRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getLicenseConfig(LicenseConfigName name)
+ * getLicenseConfig(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. getLicenseConfigCallable()
+ * ListLicenseConfigs Lists all the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s associated with the project. Request object method variants only take one parameter, a request object, which must be constructed before the call. listLicenseConfigs(ListLicenseConfigsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listLicenseConfigs(LocationName parent)
+ * listLicenseConfigs(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. listLicenseConfigsPagedCallable()
+ * listLicenseConfigsCallable()
+ * DistributeLicenseConfig Distributes a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from billing account level to project level. Request object method variants only take one parameter, a request object, which must be constructed before the call. distributeLicenseConfig(DistributeLicenseConfigRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. distributeLicenseConfig(BillingAccountLicenseConfigName billingAccountLicenseConfig, long projectNumber, String location, long licenseCount, String licenseConfigId)
+ * distributeLicenseConfig(String billingAccountLicenseConfig, long projectNumber, String location, long licenseCount, String licenseConfigId)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. distributeLicenseConfigCallable()
+ * RetractLicenseConfig This method is called from the billing account side to retract the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the given project back to the billing account. Request object method variants only take one parameter, a request object, which must be constructed before the call. retractLicenseConfig(RetractLicenseConfigRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. retractLicenseConfig(BillingAccountLicenseConfigName billingAccountLicenseConfig, LicenseConfigName licenseConfig, boolean fullRetract, long licenseCount)
+ * retractLicenseConfig(BillingAccountLicenseConfigName billingAccountLicenseConfig, String licenseConfig, boolean fullRetract, long licenseCount)
+ * retractLicenseConfig(String billingAccountLicenseConfig, LicenseConfigName licenseConfig, boolean fullRetract, long licenseCount)
+ * retractLicenseConfig(String billingAccountLicenseConfig, String licenseConfig, boolean fullRetract, long licenseCount)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. retractLicenseConfigCallable()
+ * See the individual methods for example code.
+ *
+ * Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ * This class can be customized by passing in a custom instance of LicenseConfigServiceSettings
+ * to create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over
+ * the wire:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class LicenseConfigServiceClient implements BackgroundResource {
+ private final LicenseConfigServiceSettings settings;
+ private final LicenseConfigServiceStub stub;
+
+ /** Constructs an instance of LicenseConfigServiceClient with default settings. */
+ public static final LicenseConfigServiceClient create() throws IOException {
+ return create(LicenseConfigServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of LicenseConfigServiceClient, using the given settings. The channels
+ * are created based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final LicenseConfigServiceClient create(LicenseConfigServiceSettings settings)
+ throws IOException {
+ return new LicenseConfigServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of LicenseConfigServiceClient, using the given stub for making calls.
+ * This is for advanced usage - prefer using create(LicenseConfigServiceSettings).
+ */
+ public static final LicenseConfigServiceClient create(LicenseConfigServiceStub stub) {
+ return new LicenseConfigServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of LicenseConfigServiceClient, using the given settings. This is
+ * protected so that it is easy to make a subclass, but otherwise, the static factory methods
+ * should be preferred.
+ */
+ protected LicenseConfigServiceClient(LicenseConfigServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((LicenseConfigServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected LicenseConfigServiceClient(LicenseConfigServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final LicenseConfigServiceSettings getSettings() {
+ return settings;
+ }
+
+ public LicenseConfigServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This method should
+ * only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final LicenseConfig updateLicenseConfig(
+ LicenseConfig licenseConfig, FieldMask updateMask) {
+ UpdateLicenseConfigRequest request =
+ UpdateLicenseConfigRequest.newBuilder()
+ .setLicenseConfig(licenseConfig)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateLicenseConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * If the caller does not have permission to access the
+ * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], regardless of whether
+ * or not it exists, a PERMISSION_DENIED error is returned.
+ * If the requested [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] does
+ * not exist, a NOT_FOUND error is returned.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final LicenseConfig getLicenseConfig(LicenseConfigName name) {
+ GetLicenseConfigRequest request =
+ GetLicenseConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getLicenseConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
+ *
+ * Sample code:
+ *
+ * If the caller does not have permission to access the
+ * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], regardless of whether
+ * or not it exists, a PERMISSION_DENIED error is returned.
+ * If the requested [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] does
+ * not exist, a NOT_FOUND error is returned.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final LicenseConfig getLicenseConfig(String name) {
+ GetLicenseConfigRequest request = GetLicenseConfigRequest.newBuilder().setName(name).build();
+ return getLicenseConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Format:
+ * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
+ * @param projectNumber Required. The target GCP project number to distribute the license config
+ * to.
+ * @param location Required. The target GCP project region to distribute the license config to.
+ * @param licenseCount Required. The number of licenses to distribute.
+ * @param licenseConfigId Optional. Distribute seats to this license config instead of creating a
+ * new one. If not specified, a new license config will be created from the billing account
+ * license config.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final DistributeLicenseConfigResponse distributeLicenseConfig(
+ BillingAccountLicenseConfigName billingAccountLicenseConfig,
+ long projectNumber,
+ String location,
+ long licenseCount,
+ String licenseConfigId) {
+ DistributeLicenseConfigRequest request =
+ DistributeLicenseConfigRequest.newBuilder()
+ .setBillingAccountLicenseConfig(
+ billingAccountLicenseConfig == null ? null : billingAccountLicenseConfig.toString())
+ .setProjectNumber(projectNumber)
+ .setLocation(location)
+ .setLicenseCount(licenseCount)
+ .setLicenseConfigId(licenseConfigId)
+ .build();
+ return distributeLicenseConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Distributes a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from billing
+ * account level to project level.
+ *
+ * Sample code:
+ *
+ * Format:
+ * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
+ * @param projectNumber Required. The target GCP project number to distribute the license config
+ * to.
+ * @param location Required. The target GCP project region to distribute the license config to.
+ * @param licenseCount Required. The number of licenses to distribute.
+ * @param licenseConfigId Optional. Distribute seats to this license config instead of creating a
+ * new one. If not specified, a new license config will be created from the billing account
+ * license config.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final DistributeLicenseConfigResponse distributeLicenseConfig(
+ String billingAccountLicenseConfig,
+ long projectNumber,
+ String location,
+ long licenseCount,
+ String licenseConfigId) {
+ DistributeLicenseConfigRequest request =
+ DistributeLicenseConfigRequest.newBuilder()
+ .setBillingAccountLicenseConfig(billingAccountLicenseConfig)
+ .setProjectNumber(projectNumber)
+ .setLocation(location)
+ .setLicenseCount(licenseCount)
+ .setLicenseConfigId(licenseConfigId)
+ .build();
+ return distributeLicenseConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Distributes a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from billing
+ * account level to project level.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Format:
+ * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
+ * @param licenseConfig Required. Full resource name of
+ * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
+ * Format: `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`.
+ * @param fullRetract Optional. If set to true, retract the entire license config. Otherwise,
+ * retract the specified license count.
+ * @param licenseCount Optional. The number of licenses to retract. Only used when full_retract is
+ * false.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final RetractLicenseConfigResponse retractLicenseConfig(
+ BillingAccountLicenseConfigName billingAccountLicenseConfig,
+ LicenseConfigName licenseConfig,
+ boolean fullRetract,
+ long licenseCount) {
+ RetractLicenseConfigRequest request =
+ RetractLicenseConfigRequest.newBuilder()
+ .setBillingAccountLicenseConfig(
+ billingAccountLicenseConfig == null ? null : billingAccountLicenseConfig.toString())
+ .setLicenseConfig(licenseConfig == null ? null : licenseConfig.toString())
+ .setFullRetract(fullRetract)
+ .setLicenseCount(licenseCount)
+ .build();
+ return retractLicenseConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * This method is called from the billing account side to retract the
+ * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the given project back
+ * to the billing account.
+ *
+ * Sample code:
+ *
+ * Format:
+ * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
+ * @param licenseConfig Required. Full resource name of
+ * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
+ * Format: `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`.
+ * @param fullRetract Optional. If set to true, retract the entire license config. Otherwise,
+ * retract the specified license count.
+ * @param licenseCount Optional. The number of licenses to retract. Only used when full_retract is
+ * false.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final RetractLicenseConfigResponse retractLicenseConfig(
+ BillingAccountLicenseConfigName billingAccountLicenseConfig,
+ String licenseConfig,
+ boolean fullRetract,
+ long licenseCount) {
+ RetractLicenseConfigRequest request =
+ RetractLicenseConfigRequest.newBuilder()
+ .setBillingAccountLicenseConfig(
+ billingAccountLicenseConfig == null ? null : billingAccountLicenseConfig.toString())
+ .setLicenseConfig(licenseConfig)
+ .setFullRetract(fullRetract)
+ .setLicenseCount(licenseCount)
+ .build();
+ return retractLicenseConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * This method is called from the billing account side to retract the
+ * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the given project back
+ * to the billing account.
+ *
+ * Sample code:
+ *
+ * Format:
+ * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
+ * @param licenseConfig Required. Full resource name of
+ * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
+ * Format: `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`.
+ * @param fullRetract Optional. If set to true, retract the entire license config. Otherwise,
+ * retract the specified license count.
+ * @param licenseCount Optional. The number of licenses to retract. Only used when full_retract is
+ * false.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final RetractLicenseConfigResponse retractLicenseConfig(
+ String billingAccountLicenseConfig,
+ LicenseConfigName licenseConfig,
+ boolean fullRetract,
+ long licenseCount) {
+ RetractLicenseConfigRequest request =
+ RetractLicenseConfigRequest.newBuilder()
+ .setBillingAccountLicenseConfig(billingAccountLicenseConfig)
+ .setLicenseConfig(licenseConfig == null ? null : licenseConfig.toString())
+ .setFullRetract(fullRetract)
+ .setLicenseCount(licenseCount)
+ .build();
+ return retractLicenseConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * This method is called from the billing account side to retract the
+ * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the given project back
+ * to the billing account.
+ *
+ * Sample code:
+ *
+ * Format:
+ * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
+ * @param licenseConfig Required. Full resource name of
+ * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
+ * Format: `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`.
+ * @param fullRetract Optional. If set to true, retract the entire license config. Otherwise,
+ * retract the specified license count.
+ * @param licenseCount Optional. The number of licenses to retract. Only used when full_retract is
+ * false.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final RetractLicenseConfigResponse retractLicenseConfig(
+ String billingAccountLicenseConfig,
+ String licenseConfig,
+ boolean fullRetract,
+ long licenseCount) {
+ RetractLicenseConfigRequest request =
+ RetractLicenseConfigRequest.newBuilder()
+ .setBillingAccountLicenseConfig(billingAccountLicenseConfig)
+ .setLicenseConfig(licenseConfig)
+ .setFullRetract(fullRetract)
+ .setLicenseCount(licenseCount)
+ .build();
+ return retractLicenseConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * This method is called from the billing account side to retract the
+ * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the given project back
+ * to the billing account.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of createLicenseConfig:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction CreateServingConfig Creates a ServingConfig.
+ * Note: The Google Cloud console works only with the default serving config. Additional ServingConfigs can be created and managed only via the API.
+ * A maximum of 100 [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig]s are allowed in an [Engine][google.cloud.discoveryengine.v1beta.Engine], otherwise a RESOURCE_EXHAUSTED error is returned. Request object method variants only take one parameter, a request object, which must be constructed before the call. createServingConfig(CreateServingConfigRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createServingConfig(DataStoreName parent, ServingConfig servingConfig, String servingConfigId)
+ * createServingConfig(EngineName parent, ServingConfig servingConfig, String servingConfigId)
+ * createServingConfig(String parent, ServingConfig servingConfig, String servingConfigId)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createServingConfigCallable()
+ * DeleteServingConfig Deletes a ServingConfig.
+ * Returns a NOT_FOUND error if the ServingConfig does not exist. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteServingConfig(DeleteServingConfigRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. deleteServingConfig(ServingConfigName name)
+ * deleteServingConfig(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. deleteServingConfigCallable()
+ * UpdateServingConfig Updates a ServingConfig.
* Returns a NOT_FOUND error if the ServingConfig does not exist. Note: The Google Cloud console works only with the default serving config. Additional
+ * ServingConfigs can be created and managed only via the API.
+ *
+ * A maximum of 100 [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig]s are
+ * allowed in an [Engine][google.cloud.discoveryengine.v1beta.Engine], otherwise a
+ * RESOURCE_EXHAUSTED error is returned.
+ *
+ * Sample code:
+ *
+ * This value should be 4-63 characters, and valid characters are
+ * /[a-zA-Z0-9][a-zA-Z0-9_-]+/.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ServingConfig createServingConfig(
+ DataStoreName parent, ServingConfig servingConfig, String servingConfigId) {
+ CreateServingConfigRequest request =
+ CreateServingConfigRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setServingConfig(servingConfig)
+ .setServingConfigId(servingConfigId)
+ .build();
+ return createServingConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a ServingConfig.
+ *
+ * Note: The Google Cloud console works only with the default serving config. Additional
+ * ServingConfigs can be created and managed only via the API.
+ *
+ * A maximum of 100 [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig]s are
+ * allowed in an [Engine][google.cloud.discoveryengine.v1beta.Engine], otherwise a
+ * RESOURCE_EXHAUSTED error is returned.
+ *
+ * Sample code:
+ *
+ * This value should be 4-63 characters, and valid characters are
+ * /[a-zA-Z0-9][a-zA-Z0-9_-]+/.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ServingConfig createServingConfig(
+ EngineName parent, ServingConfig servingConfig, String servingConfigId) {
+ CreateServingConfigRequest request =
+ CreateServingConfigRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setServingConfig(servingConfig)
+ .setServingConfigId(servingConfigId)
+ .build();
+ return createServingConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a ServingConfig.
+ *
+ * Note: The Google Cloud console works only with the default serving config. Additional
+ * ServingConfigs can be created and managed only via the API.
+ *
+ * A maximum of 100 [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig]s are
+ * allowed in an [Engine][google.cloud.discoveryengine.v1beta.Engine], otherwise a
+ * RESOURCE_EXHAUSTED error is returned.
+ *
+ * Sample code:
+ *
+ * This value should be 4-63 characters, and valid characters are
+ * /[a-zA-Z0-9][a-zA-Z0-9_-]+/.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ServingConfig createServingConfig(
+ String parent, ServingConfig servingConfig, String servingConfigId) {
+ CreateServingConfigRequest request =
+ CreateServingConfigRequest.newBuilder()
+ .setParent(parent)
+ .setServingConfig(servingConfig)
+ .setServingConfigId(servingConfigId)
+ .build();
+ return createServingConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a ServingConfig.
+ *
+ * Note: The Google Cloud console works only with the default serving config. Additional
+ * ServingConfigs can be created and managed only via the API.
+ *
+ * A maximum of 100 [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig]s are
+ * allowed in an [Engine][google.cloud.discoveryengine.v1beta.Engine], otherwise a
+ * RESOURCE_EXHAUSTED error is returned.
+ *
+ * Sample code:
+ *
+ * Note: The Google Cloud console works only with the default serving config. Additional
+ * ServingConfigs can be created and managed only via the API.
+ *
+ * A maximum of 100 [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig]s are
+ * allowed in an [Engine][google.cloud.discoveryengine.v1beta.Engine], otherwise a
+ * RESOURCE_EXHAUSTED error is returned.
+ *
+ * Sample code:
+ *
+ * Returns a NOT_FOUND error if the ServingConfig does not exist.
+ *
+ * Sample code:
+ *
+ * Returns a NOT_FOUND error if the ServingConfig does not exist.
+ *
+ * Sample code:
+ *
+ * Returns a NOT_FOUND error if the ServingConfig does not exist.
+ *
+ * Sample code:
+ *
+ * Returns a NOT_FOUND error if the ServingConfig does not exist.
+ *
+ * Sample code:
+ *
+ * For example, to set the
* [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
- * of updateServingConfig:
+ * of createServingConfig:
*
* This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the UserLicenseServiceClient object to clean up resources
+ * such as threads. In the example above, try-with-resources is used, which automatically calls
+ * close().
+ *
+ * ListUserLicenses Lists the User Licenses. Request object method variants only take one parameter, a request object, which must be constructed before the call. listUserLicenses(ListUserLicensesRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listUserLicenses(UserStoreName parent)
+ * listUserLicenses(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. listUserLicensesPagedCallable()
+ * listUserLicensesCallable()
+ * ListLicenseConfigsUsageStats Lists all the [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats]s associated with the project. Request object method variants only take one parameter, a request object, which must be constructed before the call. listLicenseConfigsUsageStats(ListLicenseConfigsUsageStatsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listLicenseConfigsUsageStats(UserStoreName parent)
+ * listLicenseConfigsUsageStats(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. listLicenseConfigsUsageStatsCallable()
+ * BatchUpdateUserLicenses Updates the User License. This method is used for batch assign/unassign licenses to users. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchUpdateUserLicensesAsync(BatchUpdateUserLicensesRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchUpdateUserLicensesOperationCallable()
+ * batchUpdateUserLicensesCallable()
+ * See the individual methods for example code.
+ *
+ * Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ * This class can be customized by passing in a custom instance of UserLicenseServiceSettings to
+ * create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over
+ * the wire:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class UserLicenseServiceClient implements BackgroundResource {
+ private final UserLicenseServiceSettings settings;
+ private final UserLicenseServiceStub stub;
+ private final OperationsClient httpJsonOperationsClient;
+ private final com.google.longrunning.OperationsClient operationsClient;
+
+ /** Constructs an instance of UserLicenseServiceClient with default settings. */
+ public static final UserLicenseServiceClient create() throws IOException {
+ return create(UserLicenseServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of UserLicenseServiceClient, using the given settings. The channels are
+ * created based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final UserLicenseServiceClient create(UserLicenseServiceSettings settings)
+ throws IOException {
+ return new UserLicenseServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of UserLicenseServiceClient, using the given stub for making calls. This
+ * is for advanced usage - prefer using create(UserLicenseServiceSettings).
+ */
+ public static final UserLicenseServiceClient create(UserLicenseServiceStub stub) {
+ return new UserLicenseServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of UserLicenseServiceClient, using the given settings. This is protected
+ * so that it is easy to make a subclass, but otherwise, the static factory methods should be
+ * preferred.
+ */
+ protected UserLicenseServiceClient(UserLicenseServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((UserLicenseServiceStubSettings) settings.getStubSettings()).createStub();
+ this.operationsClient =
+ com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub());
+ this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
+ }
+
+ protected UserLicenseServiceClient(UserLicenseServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ this.operationsClient =
+ com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub());
+ this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
+ }
+
+ public final UserLicenseServiceSettings getSettings() {
+ return settings;
+ }
+
+ public UserLicenseServiceStub getStub() {
+ return stub;
+ }
+
+ /**
+ * Returns the OperationsClient that can be used to query the status of a long-running operation
+ * returned by another API method call.
+ */
+ public final com.google.longrunning.OperationsClient getOperationsClient() {
+ return operationsClient;
+ }
+
+ /**
+ * Returns the OperationsClient that can be used to query the status of a long-running operation
+ * returned by another API method call.
+ */
+ @BetaApi
+ public final OperationsClient getHttpJsonOperationsClient() {
+ return httpJsonOperationsClient;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the User Licenses.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of listLicenseConfigsUsageStats:
+ *
+ * To configure the RetrySettings of a Long Running Operation method, create an
+ * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to
+ * configure the RetrySettings for batchUpdateUserLicenses:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the UserStoreServiceClient object to clean up resources
+ * such as threads. In the example above, try-with-resources is used, which automatically calls
+ * close().
+ *
+ * GetUserStore Gets the User Store. Request object method variants only take one parameter, a request object, which must be constructed before the call. getUserStore(GetUserStoreRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getUserStore(UserStoreName name)
+ * getUserStore(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. getUserStoreCallable()
+ * UpdateUserStore Updates the User Store. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateUserStore(UpdateUserStoreRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updateUserStore(UserStore userStore, 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. updateUserStoreCallable()
+ * See the individual methods for example code.
+ *
+ * Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ * This class can be customized by passing in a custom instance of UserStoreServiceSettings to
+ * create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over
+ * the wire:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class UserStoreServiceClient implements BackgroundResource {
+ private final UserStoreServiceSettings settings;
+ private final UserStoreServiceStub stub;
+
+ /** Constructs an instance of UserStoreServiceClient with default settings. */
+ public static final UserStoreServiceClient create() throws IOException {
+ return create(UserStoreServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of UserStoreServiceClient, using the given settings. The channels are
+ * created based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final UserStoreServiceClient create(UserStoreServiceSettings settings)
+ throws IOException {
+ return new UserStoreServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of UserStoreServiceClient, using the given stub for making calls. This
+ * is for advanced usage - prefer using create(UserStoreServiceSettings).
+ */
+ public static final UserStoreServiceClient create(UserStoreServiceStub stub) {
+ return new UserStoreServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of UserStoreServiceClient, using the given settings. This is protected
+ * so that it is easy to make a subclass, but otherwise, the static factory methods should be
+ * preferred.
+ */
+ protected UserStoreServiceClient(UserStoreServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((UserStoreServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected UserStoreServiceClient(UserStoreServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final UserStoreServiceSettings getSettings() {
+ return settings;
+ }
+
+ public UserStoreServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the User Store.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of getUserStore:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction The interfaces provided are listed below, along with usage samples.
*
+ * ======================= AclConfigServiceClient =======================
+ *
+ * Service Description: Service for managing Acl Configuration.
+ *
+ * Sample for AclConfigServiceClient:
+ *
+ * ======================= AssistantServiceClient =======================
+ *
+ * Service Description: Service for managing Assistant configuration and assisting users.
+ *
+ * Sample for AssistantServiceClient:
+ *
+ * ======================= CmekConfigServiceClient =======================
+ *
+ * Service Description: Service for managing CMEK related tasks
+ *
+ * Sample for CmekConfigServiceClient:
+ *
+ * ======================= CompletionServiceClient =======================
*
* Service Description: Service for Auto-Completion.
@@ -201,6 +262,51 @@
* }
* } ======================= IdentityMappingStoreServiceClient =======================
+ *
+ * Service Description: Service for managing Identity Mapping Stores.
+ *
+ * Sample for IdentityMappingStoreServiceClient:
+ *
+ * ======================= LicenseConfigServiceClient =======================
+ *
+ * Service Description: Service for managing license config related resources.
+ *
+ * Sample for LicenseConfigServiceClient:
+ *
+ * ======================= ProjectServiceClient =======================
*
* Service Description: Service for operations on the
@@ -365,12 +471,14 @@
* "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]")
* .toString())
* .setQuery("query107944136")
+ * .addAllPageCategories(new ArrayList ======================= UserLicenseServiceClient =======================
+ *
+ * Service Description: Service for managing User Licenses.
+ *
+ * Sample for UserLicenseServiceClient:
+ *
+ * ======================= UserStoreServiceClient =======================
+ *
+ * Service Description: Service for managing User Stores.
+ *
+ * Sample for UserStoreServiceClient:
+ *
+ * This class is for advanced usage and reflects the underlying API directly.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public abstract class AclConfigServiceStub implements BackgroundResource {
+
+ public UnaryCallable The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of updateAclConfig:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class is for advanced usage and reflects the underlying API directly.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public abstract class AssistantServiceStub implements BackgroundResource {
+
+ public ServerStreamingCallable The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of createAssistant:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class is for advanced usage and reflects the underlying API directly.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public abstract class CmekConfigServiceStub implements BackgroundResource {
+
+ public OperationsStub getOperationsStub() {
+ return null;
+ }
+
+ public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() {
+ return null;
+ }
+
+ public 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 (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) {
+ * RemoveSuggestionRequest request =
+ * RemoveSuggestionRequest.newBuilder()
+ * .setCompletionConfig(
+ * CompletionConfigName.ofProjectLocationCollectionEngineName(
+ * "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]")
+ * .toString())
+ * .setUserPseudoId("userPseudoId-1155274652")
+ * .setUserInfo(UserInfo.newBuilder().build())
+ * .setRemoveTime(Timestamp.newBuilder().build())
+ * .build();
+ * RemoveSuggestionResponse response = completionServiceClient.removeSuggestion(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 RemoveSuggestionResponse removeSuggestion(RemoveSuggestionRequest request) {
+ return removeSuggestionCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes the search history suggestion in an engine for a user. This will remove the suggestion
+ * from being returned in the
+ * [AdvancedCompleteQueryResponse.recent_search_suggestions][google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.recent_search_suggestions]
+ * for this user. If the user searches the same suggestion again, the new history will override
+ * and suggest this suggestion again.
+ *
+ * {@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 (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) {
+ * RemoveSuggestionRequest request =
+ * RemoveSuggestionRequest.newBuilder()
+ * .setCompletionConfig(
+ * CompletionConfigName.ofProjectLocationCollectionEngineName(
+ * "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]")
+ * .toString())
+ * .setUserPseudoId("userPseudoId-1155274652")
+ * .setUserInfo(UserInfo.newBuilder().build())
+ * .setRemoveTime(Timestamp.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
*
*
*
*
@@ -1363,6 +1375,7 @@ public final ListConversationsPagedResponse listConversations(ListConversationsR
* .setAsynchronousMode(true)
* .setUserPseudoId("userPseudoId-1155274652")
* .putAllUserLabels(new HashMap {@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 (ConversationalSearchServiceClient conversationalSearchServiceClient =
+ * ConversationalSearchServiceClient.create()) {
+ * AnswerQueryRequest request =
+ * AnswerQueryRequest.newBuilder()
+ * .setServingConfig(
+ * ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+ * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
+ * .toString())
+ * .setQuery(Query.newBuilder().build())
+ * .setSession(
+ * SessionName.ofProjectLocationDataStoreSessionName(
+ * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]")
+ * .toString())
+ * .setSafetySpec(AnswerQueryRequest.SafetySpec.newBuilder().build())
+ * .setRelatedQuestionsSpec(AnswerQueryRequest.RelatedQuestionsSpec.newBuilder().build())
+ * .setGroundingSpec(AnswerQueryRequest.GroundingSpec.newBuilder().build())
+ * .setAnswerGenerationSpec(AnswerQueryRequest.AnswerGenerationSpec.newBuilder().build())
+ * .setSearchSpec(AnswerQueryRequest.SearchSpec.newBuilder().build())
+ * .setQueryUnderstandingSpec(
+ * AnswerQueryRequest.QueryUnderstandingSpec.newBuilder().build())
+ * .setAsynchronousMode(true)
+ * .setUserPseudoId("userPseudoId-1155274652")
+ * .putAllUserLabels(new HashMap
+ */
+ public final ServerStreamingCallable
*
*
- *
+ *
*
*
@@ -92,7 +96,7 @@
*
*
*
- *
+ *
*
*
@@ -130,7 +134,7 @@
*
*
*
- *
+ *
*
*
@@ -169,7 +173,7 @@
*
*
*
- *
+ *
*
*
@@ -188,7 +192,7 @@
*
*
*
- *
+ *
*
*
@@ -207,7 +211,7 @@
*
*
+ *
- *
+ *
*
*
*
@@ -225,6 +229,45 @@
*
*
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
*
*
*
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * {@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 (EngineServiceClient engineServiceClient = EngineServiceClient.create()) {
+ * ResourceName resource = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]");
+ * Policy response = engineServiceClient.getIamPolicy(resource);
+ * }
+ * }
+ *
+ * @param resource REQUIRED: The resource for which the policy is being requested. See the
+ * operation documentation for the appropriate value for this field.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Policy getIamPolicy(ResourceName resource) {
+ GetIamPolicyRequest request =
+ GetIamPolicyRequest.newBuilder()
+ .setResource(resource == null ? null : resource.toString())
+ .build();
+ return getIamPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the IAM access control policy for an [Engine][google.cloud.discoveryengine.v1beta.Engine].
+ * A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if
+ * the resource exists but does not have a policy set on it.
+ *
+ * {@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 (EngineServiceClient engineServiceClient = EngineServiceClient.create()) {
+ * String resource = AclConfigName.of("[PROJECT]", "[LOCATION]").toString();
+ * Policy response = engineServiceClient.getIamPolicy(resource);
+ * }
+ * }
+ *
+ * @param resource REQUIRED: The resource for which the policy is being requested. See the
+ * operation documentation for the appropriate value for this field.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Policy getIamPolicy(String resource) {
+ GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build();
+ return getIamPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the IAM access control policy for an [Engine][google.cloud.discoveryengine.v1beta.Engine].
+ * A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if
+ * the resource exists but does not have a policy set on it.
+ *
+ * {@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 (EngineServiceClient engineServiceClient = EngineServiceClient.create()) {
+ * GetIamPolicyRequest request =
+ * GetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
+ * .setOptions(GetPolicyOptions.newBuilder().build())
+ * .build();
+ * Policy response = engineServiceClient.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 IAM access control policy for an [Engine][google.cloud.discoveryengine.v1beta.Engine].
+ * A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if
+ * the resource exists but does not have a policy set on it.
+ *
+ * {@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 (EngineServiceClient engineServiceClient = EngineServiceClient.create()) {
+ * GetIamPolicyRequest request =
+ * GetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
+ * .setOptions(GetPolicyOptions.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 (EngineServiceClient engineServiceClient = EngineServiceClient.create()) {
+ * ResourceName resource = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]");
+ * Policy policy = Policy.newBuilder().build();
+ * Policy response = engineServiceClient.setIamPolicy(resource, policy);
+ * }
+ * }
+ *
+ * @param resource REQUIRED: The resource for which the policy is being specified. See the
+ * operation documentation for the appropriate value for this field.
+ * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the
+ * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud
+ * Platform services (such as Projects) might reject them.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
+ SetIamPolicyRequest request =
+ SetIamPolicyRequest.newBuilder()
+ .setResource(resource == null ? null : resource.toString())
+ .setPolicy(policy)
+ .build();
+ return setIamPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Sets the IAM access control policy for an [Engine][google.cloud.discoveryengine.v1beta.Engine].
+ * A `NOT_FOUND` error is returned if the resource does not exist.
+ *
+ * {@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 (EngineServiceClient engineServiceClient = EngineServiceClient.create()) {
+ * String resource = AclConfigName.of("[PROJECT]", "[LOCATION]").toString();
+ * Policy policy = Policy.newBuilder().build();
+ * Policy response = engineServiceClient.setIamPolicy(resource, policy);
+ * }
+ * }
+ *
+ * @param resource REQUIRED: The resource for which the policy is being specified. See the
+ * operation documentation for the appropriate value for this field.
+ * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the
+ * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud
+ * Platform services (such as Projects) might reject them.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Policy setIamPolicy(String resource, Policy policy) {
+ SetIamPolicyRequest request =
+ SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build();
+ return setIamPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Sets the IAM access control policy for an [Engine][google.cloud.discoveryengine.v1beta.Engine].
+ * A `NOT_FOUND` error is returned if the resource does not exist.
+ *
+ * {@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 (EngineServiceClient engineServiceClient = EngineServiceClient.create()) {
+ * SetIamPolicyRequest request =
+ * SetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
+ * .setPolicy(Policy.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Policy response = engineServiceClient.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 IAM access control policy for an [Engine][google.cloud.discoveryengine.v1beta.Engine].
+ * A `NOT_FOUND` error is returned if the resource does not exist.
+ *
+ * {@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 (EngineServiceClient engineServiceClient = EngineServiceClient.create()) {
+ * SetIamPolicyRequest request =
+ * SetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * IdentityMappingStore identityMappingStore = IdentityMappingStore.newBuilder().build();
+ * String identityMappingStoreId = "identityMappingStoreId677904780";
+ * IdentityMappingStore response =
+ * identityMappingStoreServiceClient.createIdentityMappingStore(
+ * parent, identityMappingStore, identityMappingStoreId);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ *
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * {@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
+ * IdentityMappingStoreServiceSettings identityMappingStoreServiceSettings =
+ * IdentityMappingStoreServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create(identityMappingStoreServiceSettings);
+ * }
+ *
+ * {@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
+ * IdentityMappingStoreServiceSettings identityMappingStoreServiceSettings =
+ * IdentityMappingStoreServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create(identityMappingStoreServiceSettings);
+ * }
+ *
+ * {@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
+ * IdentityMappingStoreServiceSettings identityMappingStoreServiceSettings =
+ * IdentityMappingStoreServiceSettings.newHttpJsonBuilder().build();
+ * IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create(identityMappingStoreServiceSettings);
+ * }
+ *
+ * {@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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * IdentityMappingStore identityMappingStore = IdentityMappingStore.newBuilder().build();
+ * String identityMappingStoreId = "identityMappingStoreId677904780";
+ * IdentityMappingStore response =
+ * identityMappingStoreServiceClient.createIdentityMappingStore(
+ * parent, identityMappingStore, identityMappingStoreId);
+ * }
+ * }
+ *
+ * @param parent Required. The parent collection resource name, such as
+ * `projects/{project}/locations/{location}`.
+ * @param identityMappingStore Required. The Identity Mapping Store to create.
+ * @param identityMappingStoreId Required. The ID of the Identity Mapping Store to create.
+ * {@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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * IdentityMappingStore identityMappingStore = IdentityMappingStore.newBuilder().build();
+ * String identityMappingStoreId = "identityMappingStoreId677904780";
+ * IdentityMappingStore response =
+ * identityMappingStoreServiceClient.createIdentityMappingStore(
+ * parent, identityMappingStore, identityMappingStoreId);
+ * }
+ * }
+ *
+ * @param parent Required. The parent collection resource name, such as
+ * `projects/{project}/locations/{location}`.
+ * @param identityMappingStore Required. The Identity Mapping Store to create.
+ * @param identityMappingStoreId Required. The ID of the Identity Mapping Store to create.
+ * {@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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * CreateIdentityMappingStoreRequest request =
+ * CreateIdentityMappingStoreRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setIdentityMappingStoreId("identityMappingStoreId677904780")
+ * .setIdentityMappingStore(IdentityMappingStore.newBuilder().build())
+ * .build();
+ * IdentityMappingStore response =
+ * identityMappingStoreServiceClient.createIdentityMappingStore(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 IdentityMappingStore createIdentityMappingStore(
+ CreateIdentityMappingStoreRequest request) {
+ return createIdentityMappingStoreCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Identity Mapping Store.
+ *
+ * {@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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * CreateIdentityMappingStoreRequest request =
+ * CreateIdentityMappingStoreRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setIdentityMappingStoreId("identityMappingStoreId677904780")
+ * .setIdentityMappingStore(IdentityMappingStore.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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * IdentityMappingStoreName name =
+ * IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]");
+ * IdentityMappingStore response =
+ * identityMappingStoreServiceClient.getIdentityMappingStore(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Identity Mapping Store to get. Format:
+ * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final IdentityMappingStore getIdentityMappingStore(IdentityMappingStoreName name) {
+ GetIdentityMappingStoreRequest request =
+ GetIdentityMappingStoreRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getIdentityMappingStore(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the Identity Mapping Store.
+ *
+ * {@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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * String name =
+ * IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]")
+ * .toString();
+ * IdentityMappingStore response =
+ * identityMappingStoreServiceClient.getIdentityMappingStore(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Identity Mapping Store to get. Format:
+ * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final IdentityMappingStore getIdentityMappingStore(String name) {
+ GetIdentityMappingStoreRequest request =
+ GetIdentityMappingStoreRequest.newBuilder().setName(name).build();
+ return getIdentityMappingStore(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the Identity Mapping Store.
+ *
+ * {@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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * GetIdentityMappingStoreRequest request =
+ * GetIdentityMappingStoreRequest.newBuilder()
+ * .setName(
+ * IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]")
+ * .toString())
+ * .build();
+ * IdentityMappingStore response =
+ * identityMappingStoreServiceClient.getIdentityMappingStore(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 IdentityMappingStore getIdentityMappingStore(
+ GetIdentityMappingStoreRequest request) {
+ return getIdentityMappingStoreCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the Identity Mapping Store.
+ *
+ * {@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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * GetIdentityMappingStoreRequest request =
+ * GetIdentityMappingStoreRequest.newBuilder()
+ * .setName(
+ * IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]")
+ * .toString())
+ * .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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * IdentityMappingStoreName name =
+ * IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]");
+ * identityMappingStoreServiceClient.deleteIdentityMappingStoreAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the Identity Mapping Store to delete. Format:
+ * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
+ * @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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * String name =
+ * IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]")
+ * .toString();
+ * identityMappingStoreServiceClient.deleteIdentityMappingStoreAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the Identity Mapping Store to delete. Format:
+ * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
+ * @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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * DeleteIdentityMappingStoreRequest request =
+ * DeleteIdentityMappingStoreRequest.newBuilder()
+ * .setName(
+ * IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]")
+ * .toString())
+ * .build();
+ * identityMappingStoreServiceClient.deleteIdentityMappingStoreAsync(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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * DeleteIdentityMappingStoreRequest request =
+ * DeleteIdentityMappingStoreRequest.newBuilder()
+ * .setName(
+ * IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]")
+ * .toString())
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable<
+ DeleteIdentityMappingStoreRequest, Empty, DeleteIdentityMappingStoreMetadata>
+ deleteIdentityMappingStoreOperationCallable() {
+ return stub.deleteIdentityMappingStoreOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes the Identity Mapping Store.
+ *
+ * {@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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * DeleteIdentityMappingStoreRequest request =
+ * DeleteIdentityMappingStoreRequest.newBuilder()
+ * .setName(
+ * IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]")
+ * .toString())
+ * .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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * ImportIdentityMappingsRequest request =
+ * ImportIdentityMappingsRequest.newBuilder()
+ * .setIdentityMappingStore(
+ * IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]")
+ * .toString())
+ * .build();
+ * ImportIdentityMappingsResponse response =
+ * identityMappingStoreServiceClient.importIdentityMappingsAsync(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<
+ ImportIdentityMappingsResponse, IdentityMappingEntryOperationMetadata>
+ importIdentityMappingsAsync(ImportIdentityMappingsRequest request) {
+ return importIdentityMappingsOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Imports a list of Identity Mapping Entries to an Identity Mapping Store.
+ *
+ * {@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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * ImportIdentityMappingsRequest request =
+ * ImportIdentityMappingsRequest.newBuilder()
+ * .setIdentityMappingStore(
+ * IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]")
+ * .toString())
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable<
+ ImportIdentityMappingsRequest,
+ ImportIdentityMappingsResponse,
+ IdentityMappingEntryOperationMetadata>
+ importIdentityMappingsOperationCallable() {
+ return stub.importIdentityMappingsOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Imports a list of Identity Mapping Entries to an Identity Mapping Store.
+ *
+ * {@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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * ImportIdentityMappingsRequest request =
+ * ImportIdentityMappingsRequest.newBuilder()
+ * .setIdentityMappingStore(
+ * IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]")
+ * .toString())
+ * .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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * PurgeIdentityMappingsRequest request =
+ * PurgeIdentityMappingsRequest.newBuilder()
+ * .setIdentityMappingStore(
+ * IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setForce(true)
+ * .build();
+ * identityMappingStoreServiceClient.purgeIdentityMappingsAsync(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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * PurgeIdentityMappingsRequest request =
+ * PurgeIdentityMappingsRequest.newBuilder()
+ * .setIdentityMappingStore(
+ * IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setForce(true)
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable<
+ PurgeIdentityMappingsRequest, Empty, IdentityMappingEntryOperationMetadata>
+ purgeIdentityMappingsOperationCallable() {
+ return stub.purgeIdentityMappingsOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Purges specified or all Identity Mapping Entries from an Identity Mapping Store.
+ *
+ * {@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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * PurgeIdentityMappingsRequest request =
+ * PurgeIdentityMappingsRequest.newBuilder()
+ * .setIdentityMappingStore(
+ * IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setForce(true)
+ * .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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * ListIdentityMappingsRequest request =
+ * ListIdentityMappingsRequest.newBuilder()
+ * .setIdentityMappingStore(
+ * IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (IdentityMappingEntry element :
+ * identityMappingStoreServiceClient.listIdentityMappings(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 ListIdentityMappingsPagedResponse listIdentityMappings(
+ ListIdentityMappingsRequest request) {
+ return listIdentityMappingsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Identity Mappings in an Identity Mapping Store.
+ *
+ * {@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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * ListIdentityMappingsRequest request =
+ * ListIdentityMappingsRequest.newBuilder()
+ * .setIdentityMappingStore(
+ * IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]")
+ * .toString())
+ * .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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * ListIdentityMappingsRequest request =
+ * ListIdentityMappingsRequest.newBuilder()
+ * .setIdentityMappingStore(
+ * IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListIdentityMappingsResponse response =
+ * identityMappingStoreServiceClient.listIdentityMappingsCallable().call(request);
+ * for (IdentityMappingEntry element : response.getIdentityMappingEntriesList()) {
+ * // 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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (IdentityMappingStore element :
+ * identityMappingStoreServiceClient.listIdentityMappingStores(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent of the Identity Mapping Stores to list. Format:
+ * `projects/{project}/locations/{location}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListIdentityMappingStoresPagedResponse listIdentityMappingStores(
+ LocationName parent) {
+ ListIdentityMappingStoresRequest request =
+ ListIdentityMappingStoresRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listIdentityMappingStores(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all Identity Mapping Stores.
+ *
+ * {@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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (IdentityMappingStore element :
+ * identityMappingStoreServiceClient.listIdentityMappingStores(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent of the Identity Mapping Stores to list. Format:
+ * `projects/{project}/locations/{location}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListIdentityMappingStoresPagedResponse listIdentityMappingStores(String parent) {
+ ListIdentityMappingStoresRequest request =
+ ListIdentityMappingStoresRequest.newBuilder().setParent(parent).build();
+ return listIdentityMappingStores(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all Identity Mapping Stores.
+ *
+ * {@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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * ListIdentityMappingStoresRequest request =
+ * ListIdentityMappingStoresRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (IdentityMappingStore element :
+ * identityMappingStoreServiceClient.listIdentityMappingStores(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 ListIdentityMappingStoresPagedResponse listIdentityMappingStores(
+ ListIdentityMappingStoresRequest request) {
+ return listIdentityMappingStoresPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all Identity Mapping Stores.
+ *
+ * {@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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * ListIdentityMappingStoresRequest request =
+ * ListIdentityMappingStoresRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable<
+ ListIdentityMappingStoresRequest, ListIdentityMappingStoresPagedResponse>
+ listIdentityMappingStoresPagedCallable() {
+ return stub.listIdentityMappingStoresPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all Identity Mapping Stores.
+ *
+ * {@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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * ListIdentityMappingStoresRequest request =
+ * ListIdentityMappingStoresRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListIdentityMappingStoresResponse response =
+ * identityMappingStoreServiceClient.listIdentityMappingStoresCallable().call(request);
+ * for (IdentityMappingStore element : response.getIdentityMappingStoresList()) {
+ * // 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
+ * IdentityMappingStoreServiceSettings.Builder identityMappingStoreServiceSettingsBuilder =
+ * IdentityMappingStoreServiceSettings.newBuilder();
+ * identityMappingStoreServiceSettingsBuilder
+ * .createIdentityMappingStoreSettings()
+ * .setRetrySettings(
+ * identityMappingStoreServiceSettingsBuilder
+ * .createIdentityMappingStoreSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * IdentityMappingStoreServiceSettings identityMappingStoreServiceSettings =
+ * identityMappingStoreServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ *
+ * {@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
+ * IdentityMappingStoreServiceSettings.Builder identityMappingStoreServiceSettingsBuilder =
+ * IdentityMappingStoreServiceSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ * OperationalTimedPollAlgorithm.create(
+ * RetrySettings.newBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ * .setRetryDelayMultiplier(1.5)
+ * .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ * .setTotalTimeoutDuration(Duration.ofHours(24))
+ * .build());
+ * identityMappingStoreServiceSettingsBuilder
+ * .createClusterOperationSettings()
+ * .setPollingAlgorithm(timedRetryAlgorithm)
+ * .build();
+ * }
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class IdentityMappingStoreServiceSettings
+ extends ClientSettings{@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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * LicenseConfig licenseConfig = LicenseConfig.newBuilder().build();
+ * String licenseConfigId = "licenseConfigId-372057250";
+ * LicenseConfig response =
+ * licenseConfigServiceClient.createLicenseConfig(parent, licenseConfig, licenseConfigId);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ *
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * {@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
+ * LicenseConfigServiceSettings licenseConfigServiceSettings =
+ * LicenseConfigServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create(licenseConfigServiceSettings);
+ * }
+ *
+ * {@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
+ * LicenseConfigServiceSettings licenseConfigServiceSettings =
+ * LicenseConfigServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create(licenseConfigServiceSettings);
+ * }
+ *
+ * {@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
+ * LicenseConfigServiceSettings licenseConfigServiceSettings =
+ * LicenseConfigServiceSettings.newHttpJsonBuilder().build();
+ * LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create(licenseConfigServiceSettings);
+ * }
+ *
+ * {@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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * LicenseConfig licenseConfig = LicenseConfig.newBuilder().build();
+ * String licenseConfigId = "licenseConfigId-372057250";
+ * LicenseConfig response =
+ * licenseConfigServiceClient.createLicenseConfig(parent, licenseConfig, licenseConfigId);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource name, such as
+ * `projects/{project}/locations/{location}`.
+ * @param licenseConfig Required. The
+ * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to create.
+ * @param licenseConfigId Optional. The ID to use for the
+ * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], which will become the
+ * final component of the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]'s
+ * resource name. We are using the tier (product edition) name as the license config id such
+ * as `search` or `search_and_assistant`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final LicenseConfig createLicenseConfig(
+ LocationName parent, LicenseConfig licenseConfig, String licenseConfigId) {
+ CreateLicenseConfigRequest request =
+ CreateLicenseConfigRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setLicenseConfig(licenseConfig)
+ .setLicenseConfigId(licenseConfigId)
+ .build();
+ return createLicenseConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This method should
+ * only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses.
+ *
+ * {@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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * LicenseConfig licenseConfig = LicenseConfig.newBuilder().build();
+ * String licenseConfigId = "licenseConfigId-372057250";
+ * LicenseConfig response =
+ * licenseConfigServiceClient.createLicenseConfig(parent, licenseConfig, licenseConfigId);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource name, such as
+ * `projects/{project}/locations/{location}`.
+ * @param licenseConfig Required. The
+ * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to create.
+ * @param licenseConfigId Optional. The ID to use for the
+ * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], which will become the
+ * final component of the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]'s
+ * resource name. We are using the tier (product edition) name as the license config id such
+ * as `search` or `search_and_assistant`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final LicenseConfig createLicenseConfig(
+ String parent, LicenseConfig licenseConfig, String licenseConfigId) {
+ CreateLicenseConfigRequest request =
+ CreateLicenseConfigRequest.newBuilder()
+ .setParent(parent)
+ .setLicenseConfig(licenseConfig)
+ .setLicenseConfigId(licenseConfigId)
+ .build();
+ return createLicenseConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This method should
+ * only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses.
+ *
+ * {@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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * CreateLicenseConfigRequest request =
+ * CreateLicenseConfigRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setLicenseConfig(LicenseConfig.newBuilder().build())
+ * .setLicenseConfigId("licenseConfigId-372057250")
+ * .build();
+ * LicenseConfig response = licenseConfigServiceClient.createLicenseConfig(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 LicenseConfig createLicenseConfig(CreateLicenseConfigRequest request) {
+ return createLicenseConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This method should
+ * only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses.
+ *
+ * {@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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * CreateLicenseConfigRequest request =
+ * CreateLicenseConfigRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setLicenseConfig(LicenseConfig.newBuilder().build())
+ * .setLicenseConfigId("licenseConfigId-372057250")
+ * .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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * LicenseConfig licenseConfig = LicenseConfig.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * LicenseConfig response =
+ * licenseConfigServiceClient.updateLicenseConfig(licenseConfig, updateMask);
+ * }
+ * }
+ *
+ * @param licenseConfig Required. The
+ * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to update.
+ * @param updateMask Optional. Indicates which fields in the provided
+ * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to update.
+ * {@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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * UpdateLicenseConfigRequest request =
+ * UpdateLicenseConfigRequest.newBuilder()
+ * .setLicenseConfig(LicenseConfig.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * LicenseConfig response = licenseConfigServiceClient.updateLicenseConfig(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 LicenseConfig updateLicenseConfig(UpdateLicenseConfigRequest request) {
+ return updateLicenseConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]
+ *
+ * {@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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * UpdateLicenseConfigRequest request =
+ * UpdateLicenseConfigRequest.newBuilder()
+ * .setLicenseConfig(LicenseConfig.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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * LicenseConfigName name = LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]");
+ * LicenseConfig response = licenseConfigServiceClient.getLicenseConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. Full resource name of
+ * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], such as
+ * `projects/{project}/locations/{location}/licenseConfigs/*`.
+ * {@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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * String name = LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString();
+ * LicenseConfig response = licenseConfigServiceClient.getLicenseConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. Full resource name of
+ * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], such as
+ * `projects/{project}/locations/{location}/licenseConfigs/*`.
+ * {@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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * GetLicenseConfigRequest request =
+ * GetLicenseConfigRequest.newBuilder()
+ * .setName(
+ * LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString())
+ * .build();
+ * LicenseConfig response = licenseConfigServiceClient.getLicenseConfig(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 LicenseConfig getLicenseConfig(GetLicenseConfigRequest request) {
+ return getLicenseConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
+ *
+ * {@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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * GetLicenseConfigRequest request =
+ * GetLicenseConfigRequest.newBuilder()
+ * .setName(
+ * LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString())
+ * .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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (LicenseConfig element :
+ * licenseConfigServiceClient.listLicenseConfigs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent branch resource name, such as
+ * `projects/{project}/locations/{location}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListLicenseConfigsPagedResponse listLicenseConfigs(LocationName parent) {
+ ListLicenseConfigsRequest request =
+ ListLicenseConfigsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listLicenseConfigs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s associated
+ * with the project.
+ *
+ * {@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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (LicenseConfig element :
+ * licenseConfigServiceClient.listLicenseConfigs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent branch resource name, such as
+ * `projects/{project}/locations/{location}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListLicenseConfigsPagedResponse listLicenseConfigs(String parent) {
+ ListLicenseConfigsRequest request =
+ ListLicenseConfigsRequest.newBuilder().setParent(parent).build();
+ return listLicenseConfigs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s associated
+ * with the project.
+ *
+ * {@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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * ListLicenseConfigsRequest request =
+ * ListLicenseConfigsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * for (LicenseConfig element :
+ * licenseConfigServiceClient.listLicenseConfigs(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 ListLicenseConfigsPagedResponse listLicenseConfigs(
+ ListLicenseConfigsRequest request) {
+ return listLicenseConfigsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s associated
+ * with the project.
+ *
+ * {@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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * ListLicenseConfigsRequest request =
+ * ListLicenseConfigsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * ListLicenseConfigsRequest request =
+ * ListLicenseConfigsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * while (true) {
+ * ListLicenseConfigsResponse response =
+ * licenseConfigServiceClient.listLicenseConfigsCallable().call(request);
+ * for (LicenseConfig element : response.getLicenseConfigsList()) {
+ * // 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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * BillingAccountLicenseConfigName billingAccountLicenseConfig =
+ * BillingAccountLicenseConfigName.of(
+ * "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]");
+ * long projectNumber = 828084015;
+ * String location = "location1901043637";
+ * long licenseCount = -1565113455;
+ * String licenseConfigId = "licenseConfigId-372057250";
+ * DistributeLicenseConfigResponse response =
+ * licenseConfigServiceClient.distributeLicenseConfig(
+ * billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId);
+ * }
+ * }
+ *
+ * @param billingAccountLicenseConfig Required. Full resource name of
+ * [BillingAccountLicenseConfig][].
+ * {@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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * String billingAccountLicenseConfig =
+ * BillingAccountLicenseConfigName.of(
+ * "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]")
+ * .toString();
+ * long projectNumber = 828084015;
+ * String location = "location1901043637";
+ * long licenseCount = -1565113455;
+ * String licenseConfigId = "licenseConfigId-372057250";
+ * DistributeLicenseConfigResponse response =
+ * licenseConfigServiceClient.distributeLicenseConfig(
+ * billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId);
+ * }
+ * }
+ *
+ * @param billingAccountLicenseConfig Required. Full resource name of
+ * [BillingAccountLicenseConfig][].
+ * {@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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * DistributeLicenseConfigRequest request =
+ * DistributeLicenseConfigRequest.newBuilder()
+ * .setBillingAccountLicenseConfig(
+ * BillingAccountLicenseConfigName.of(
+ * "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]")
+ * .toString())
+ * .setProjectNumber(828084015)
+ * .setLocation("location1901043637")
+ * .setLicenseCount(-1565113455)
+ * .setLicenseConfigId("licenseConfigId-372057250")
+ * .build();
+ * DistributeLicenseConfigResponse response =
+ * licenseConfigServiceClient.distributeLicenseConfig(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 DistributeLicenseConfigResponse distributeLicenseConfig(
+ DistributeLicenseConfigRequest request) {
+ return distributeLicenseConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Distributes a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from billing
+ * account level to project level.
+ *
+ * {@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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * DistributeLicenseConfigRequest request =
+ * DistributeLicenseConfigRequest.newBuilder()
+ * .setBillingAccountLicenseConfig(
+ * BillingAccountLicenseConfigName.of(
+ * "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]")
+ * .toString())
+ * .setProjectNumber(828084015)
+ * .setLocation("location1901043637")
+ * .setLicenseCount(-1565113455)
+ * .setLicenseConfigId("licenseConfigId-372057250")
+ * .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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * BillingAccountLicenseConfigName billingAccountLicenseConfig =
+ * BillingAccountLicenseConfigName.of(
+ * "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]");
+ * LicenseConfigName licenseConfig =
+ * LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]");
+ * boolean fullRetract = true;
+ * long licenseCount = -1565113455;
+ * RetractLicenseConfigResponse response =
+ * licenseConfigServiceClient.retractLicenseConfig(
+ * billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount);
+ * }
+ * }
+ *
+ * @param billingAccountLicenseConfig Required. Full resource name of
+ * [BillingAccountLicenseConfig][].
+ * {@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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * BillingAccountLicenseConfigName billingAccountLicenseConfig =
+ * BillingAccountLicenseConfigName.of(
+ * "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]");
+ * String licenseConfig =
+ * LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString();
+ * boolean fullRetract = true;
+ * long licenseCount = -1565113455;
+ * RetractLicenseConfigResponse response =
+ * licenseConfigServiceClient.retractLicenseConfig(
+ * billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount);
+ * }
+ * }
+ *
+ * @param billingAccountLicenseConfig Required. Full resource name of
+ * [BillingAccountLicenseConfig][].
+ * {@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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * String billingAccountLicenseConfig =
+ * BillingAccountLicenseConfigName.of(
+ * "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]")
+ * .toString();
+ * LicenseConfigName licenseConfig =
+ * LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]");
+ * boolean fullRetract = true;
+ * long licenseCount = -1565113455;
+ * RetractLicenseConfigResponse response =
+ * licenseConfigServiceClient.retractLicenseConfig(
+ * billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount);
+ * }
+ * }
+ *
+ * @param billingAccountLicenseConfig Required. Full resource name of
+ * [BillingAccountLicenseConfig][].
+ * {@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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * String billingAccountLicenseConfig =
+ * BillingAccountLicenseConfigName.of(
+ * "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]")
+ * .toString();
+ * String licenseConfig =
+ * LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString();
+ * boolean fullRetract = true;
+ * long licenseCount = -1565113455;
+ * RetractLicenseConfigResponse response =
+ * licenseConfigServiceClient.retractLicenseConfig(
+ * billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount);
+ * }
+ * }
+ *
+ * @param billingAccountLicenseConfig Required. Full resource name of
+ * [BillingAccountLicenseConfig][].
+ * {@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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * RetractLicenseConfigRequest request =
+ * RetractLicenseConfigRequest.newBuilder()
+ * .setBillingAccountLicenseConfig(
+ * BillingAccountLicenseConfigName.of(
+ * "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]")
+ * .toString())
+ * .setLicenseConfig(
+ * LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString())
+ * .setFullRetract(true)
+ * .setLicenseCount(-1565113455)
+ * .build();
+ * RetractLicenseConfigResponse response =
+ * licenseConfigServiceClient.retractLicenseConfig(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 RetractLicenseConfigResponse retractLicenseConfig(
+ RetractLicenseConfigRequest request) {
+ return retractLicenseConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * This method is called from the billing account side to retract the
+ * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the given project back
+ * to the billing account.
+ *
+ * {@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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * RetractLicenseConfigRequest request =
+ * RetractLicenseConfigRequest.newBuilder()
+ * .setBillingAccountLicenseConfig(
+ * BillingAccountLicenseConfigName.of(
+ * "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]")
+ * .toString())
+ * .setLicenseConfig(
+ * LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString())
+ * .setFullRetract(true)
+ * .setLicenseCount(-1565113455)
+ * .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
+ * LicenseConfigServiceSettings.Builder licenseConfigServiceSettingsBuilder =
+ * LicenseConfigServiceSettings.newBuilder();
+ * licenseConfigServiceSettingsBuilder
+ * .createLicenseConfigSettings()
+ * .setRetrySettings(
+ * licenseConfigServiceSettingsBuilder
+ * .createLicenseConfigSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * LicenseConfigServiceSettings licenseConfigServiceSettings =
+ * licenseConfigServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class LicenseConfigServiceSettings extends ClientSettingsMethod Variants
*
*
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
*
*
@@ -237,6 +282,376 @@ public ServingConfigServiceStub getStub() {
return stub;
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a ServingConfig.
+ *
+ * {@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 (ServingConfigServiceClient servingConfigServiceClient =
+ * ServingConfigServiceClient.create()) {
+ * DataStoreName parent =
+ * DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]");
+ * ServingConfig servingConfig = ServingConfig.newBuilder().build();
+ * String servingConfigId = "servingConfigId-831052759";
+ * ServingConfig response =
+ * servingConfigServiceClient.createServingConfig(parent, servingConfig, servingConfigId);
+ * }
+ * }
+ *
+ * @param parent Required. Full resource name of parent. Format:
+ * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+ * @param servingConfig Required. The ServingConfig to create.
+ * @param servingConfigId Required. The ID to use for the ServingConfig, which will become the
+ * final component of the ServingConfig's resource name.
+ * {@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 (ServingConfigServiceClient servingConfigServiceClient =
+ * ServingConfigServiceClient.create()) {
+ * EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]");
+ * ServingConfig servingConfig = ServingConfig.newBuilder().build();
+ * String servingConfigId = "servingConfigId-831052759";
+ * ServingConfig response =
+ * servingConfigServiceClient.createServingConfig(parent, servingConfig, servingConfigId);
+ * }
+ * }
+ *
+ * @param parent Required. Full resource name of parent. Format:
+ * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+ * @param servingConfig Required. The ServingConfig to create.
+ * @param servingConfigId Required. The ID to use for the ServingConfig, which will become the
+ * final component of the ServingConfig's resource name.
+ * {@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 (ServingConfigServiceClient servingConfigServiceClient =
+ * ServingConfigServiceClient.create()) {
+ * String parent =
+ * DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+ * .toString();
+ * ServingConfig servingConfig = ServingConfig.newBuilder().build();
+ * String servingConfigId = "servingConfigId-831052759";
+ * ServingConfig response =
+ * servingConfigServiceClient.createServingConfig(parent, servingConfig, servingConfigId);
+ * }
+ * }
+ *
+ * @param parent Required. Full resource name of parent. Format:
+ * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+ * @param servingConfig Required. The ServingConfig to create.
+ * @param servingConfigId Required. The ID to use for the ServingConfig, which will become the
+ * final component of the ServingConfig's resource name.
+ * {@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 (ServingConfigServiceClient servingConfigServiceClient =
+ * ServingConfigServiceClient.create()) {
+ * CreateServingConfigRequest request =
+ * CreateServingConfigRequest.newBuilder()
+ * .setParent(
+ * DataStoreName.ofProjectLocationDataStoreName(
+ * "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+ * .toString())
+ * .setServingConfig(ServingConfig.newBuilder().build())
+ * .setServingConfigId("servingConfigId-831052759")
+ * .build();
+ * ServingConfig response = servingConfigServiceClient.createServingConfig(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 ServingConfig createServingConfig(CreateServingConfigRequest request) {
+ return createServingConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a ServingConfig.
+ *
+ * {@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 (ServingConfigServiceClient servingConfigServiceClient =
+ * ServingConfigServiceClient.create()) {
+ * CreateServingConfigRequest request =
+ * CreateServingConfigRequest.newBuilder()
+ * .setParent(
+ * DataStoreName.ofProjectLocationDataStoreName(
+ * "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+ * .toString())
+ * .setServingConfig(ServingConfig.newBuilder().build())
+ * .setServingConfigId("servingConfigId-831052759")
+ * .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 (ServingConfigServiceClient servingConfigServiceClient =
+ * ServingConfigServiceClient.create()) {
+ * ServingConfigName name =
+ * ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+ * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]");
+ * servingConfigServiceClient.deleteServingConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the ServingConfig to delete. Format:
+ * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteServingConfig(ServingConfigName name) {
+ DeleteServingConfigRequest request =
+ DeleteServingConfigRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ deleteServingConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a ServingConfig.
+ *
+ * {@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 (ServingConfigServiceClient servingConfigServiceClient =
+ * ServingConfigServiceClient.create()) {
+ * String name =
+ * ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+ * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
+ * .toString();
+ * servingConfigServiceClient.deleteServingConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the ServingConfig to delete. Format:
+ * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteServingConfig(String name) {
+ DeleteServingConfigRequest request =
+ DeleteServingConfigRequest.newBuilder().setName(name).build();
+ deleteServingConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a ServingConfig.
+ *
+ * {@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 (ServingConfigServiceClient servingConfigServiceClient =
+ * ServingConfigServiceClient.create()) {
+ * DeleteServingConfigRequest request =
+ * DeleteServingConfigRequest.newBuilder()
+ * .setName(
+ * ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+ * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
+ * .toString())
+ * .build();
+ * servingConfigServiceClient.deleteServingConfig(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 void deleteServingConfig(DeleteServingConfigRequest request) {
+ deleteServingConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a ServingConfig.
+ *
+ * {@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 (ServingConfigServiceClient servingConfigServiceClient =
+ * ServingConfigServiceClient.create()) {
+ * DeleteServingConfigRequest request =
+ * DeleteServingConfigRequest.newBuilder()
+ * .setName(
+ * ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+ * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
@@ -64,10 +65,10 @@
* ServingConfigServiceSettings.Builder servingConfigServiceSettingsBuilder =
* ServingConfigServiceSettings.newBuilder();
* servingConfigServiceSettingsBuilder
- * .updateServingConfigSettings()
+ * .createServingConfigSettings()
* .setRetrySettings(
* servingConfigServiceSettingsBuilder
- * .updateServingConfigSettings()
+ * .createServingConfigSettings()
* .getRetrySettings()
* .toBuilder()
* .setInitialRetryDelayDuration(Duration.ofSeconds(1))
@@ -91,6 +92,17 @@
@Generated("by gapic-generator-java")
public class ServingConfigServiceSettings extends ClientSettings
*
+ * {@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 (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
+ * UserStoreName parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]");
+ * ListLicenseConfigsUsageStatsResponse response =
+ * userLicenseServiceClient.listLicenseConfigsUsageStats(parent);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ *
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * {@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
+ * UserLicenseServiceSettings userLicenseServiceSettings =
+ * UserLicenseServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * UserLicenseServiceClient userLicenseServiceClient =
+ * UserLicenseServiceClient.create(userLicenseServiceSettings);
+ * }
+ *
+ * {@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
+ * UserLicenseServiceSettings userLicenseServiceSettings =
+ * UserLicenseServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * UserLicenseServiceClient userLicenseServiceClient =
+ * UserLicenseServiceClient.create(userLicenseServiceSettings);
+ * }
+ *
+ * {@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
+ * UserLicenseServiceSettings userLicenseServiceSettings =
+ * UserLicenseServiceSettings.newHttpJsonBuilder().build();
+ * UserLicenseServiceClient userLicenseServiceClient =
+ * UserLicenseServiceClient.create(userLicenseServiceSettings);
+ * }
+ *
+ * {@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 (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
+ * UserStoreName parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]");
+ * for (UserLicense element : userLicenseServiceClient.listUserLicenses(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent [UserStore][google.cloud.discoveryengine.v1beta.UserStore]
+ * resource name, format:
+ * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListUserLicensesPagedResponse listUserLicenses(UserStoreName parent) {
+ ListUserLicensesRequest request =
+ ListUserLicensesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listUserLicenses(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the User Licenses.
+ *
+ * {@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 (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
+ * String parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString();
+ * for (UserLicense element : userLicenseServiceClient.listUserLicenses(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent [UserStore][google.cloud.discoveryengine.v1beta.UserStore]
+ * resource name, format:
+ * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListUserLicensesPagedResponse listUserLicenses(String parent) {
+ ListUserLicensesRequest request =
+ ListUserLicensesRequest.newBuilder().setParent(parent).build();
+ return listUserLicenses(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the User Licenses.
+ *
+ * {@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 (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
+ * ListUserLicensesRequest request =
+ * ListUserLicensesRequest.newBuilder()
+ * .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (UserLicense element : userLicenseServiceClient.listUserLicenses(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 ListUserLicensesPagedResponse listUserLicenses(ListUserLicensesRequest request) {
+ return listUserLicensesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the User Licenses.
+ *
+ * {@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 (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
+ * ListUserLicensesRequest request =
+ * ListUserLicensesRequest.newBuilder()
+ * .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .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 (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
+ * ListUserLicensesRequest request =
+ * ListUserLicensesRequest.newBuilder()
+ * .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListUserLicensesResponse response =
+ * userLicenseServiceClient.listUserLicensesCallable().call(request);
+ * for (UserLicense element : response.getUserLicensesList()) {
+ * // 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 (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
+ * UserStoreName parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]");
+ * ListLicenseConfigsUsageStatsResponse response =
+ * userLicenseServiceClient.listLicenseConfigsUsageStats(parent);
+ * }
+ * }
+ *
+ * @param parent Required. The parent branch resource name, such as
+ * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListLicenseConfigsUsageStatsResponse listLicenseConfigsUsageStats(
+ UserStoreName parent) {
+ ListLicenseConfigsUsageStatsRequest request =
+ ListLicenseConfigsUsageStatsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listLicenseConfigsUsageStats(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all the
+ * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats]s
+ * associated with the project.
+ *
+ * {@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 (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
+ * String parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString();
+ * ListLicenseConfigsUsageStatsResponse response =
+ * userLicenseServiceClient.listLicenseConfigsUsageStats(parent);
+ * }
+ * }
+ *
+ * @param parent Required. The parent branch resource name, such as
+ * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListLicenseConfigsUsageStatsResponse listLicenseConfigsUsageStats(String parent) {
+ ListLicenseConfigsUsageStatsRequest request =
+ ListLicenseConfigsUsageStatsRequest.newBuilder().setParent(parent).build();
+ return listLicenseConfigsUsageStats(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all the
+ * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats]s
+ * associated with the project.
+ *
+ * {@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 (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
+ * ListLicenseConfigsUsageStatsRequest request =
+ * ListLicenseConfigsUsageStatsRequest.newBuilder()
+ * .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString())
+ * .build();
+ * ListLicenseConfigsUsageStatsResponse response =
+ * userLicenseServiceClient.listLicenseConfigsUsageStats(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 ListLicenseConfigsUsageStatsResponse listLicenseConfigsUsageStats(
+ ListLicenseConfigsUsageStatsRequest request) {
+ return listLicenseConfigsUsageStatsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all the
+ * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats]s
+ * associated with the project.
+ *
+ * {@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 (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
+ * ListLicenseConfigsUsageStatsRequest request =
+ * ListLicenseConfigsUsageStatsRequest.newBuilder()
+ * .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable<
+ ListLicenseConfigsUsageStatsRequest, ListLicenseConfigsUsageStatsResponse>
+ listLicenseConfigsUsageStatsCallable() {
+ return stub.listLicenseConfigsUsageStatsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the User License. This method is used for batch assign/unassign licenses to users.
+ *
+ * {@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 (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
+ * BatchUpdateUserLicensesRequest request =
+ * BatchUpdateUserLicensesRequest.newBuilder()
+ * .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString())
+ * .setDeleteUnassignedUserLicenses(true)
+ * .build();
+ * BatchUpdateUserLicensesResponse response =
+ * userLicenseServiceClient.batchUpdateUserLicensesAsync(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 (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
+ * BatchUpdateUserLicensesRequest request =
+ * BatchUpdateUserLicensesRequest.newBuilder()
+ * .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString())
+ * .setDeleteUnassignedUserLicenses(true)
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable<
+ BatchUpdateUserLicensesRequest,
+ BatchUpdateUserLicensesResponse,
+ BatchUpdateUserLicensesMetadata>
+ batchUpdateUserLicensesOperationCallable() {
+ return stub.batchUpdateUserLicensesOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the User License. This method is used for batch assign/unassign licenses to users.
+ *
+ * {@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 (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
+ * BatchUpdateUserLicensesRequest request =
+ * BatchUpdateUserLicensesRequest.newBuilder()
+ * .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString())
+ * .setDeleteUnassignedUserLicenses(true)
+ * .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
+ * UserLicenseServiceSettings.Builder userLicenseServiceSettingsBuilder =
+ * UserLicenseServiceSettings.newBuilder();
+ * userLicenseServiceSettingsBuilder
+ * .listLicenseConfigsUsageStatsSettings()
+ * .setRetrySettings(
+ * userLicenseServiceSettingsBuilder
+ * .listLicenseConfigsUsageStatsSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * UserLicenseServiceSettings userLicenseServiceSettings =
+ * userLicenseServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ *
+ * {@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
+ * UserLicenseServiceSettings.Builder userLicenseServiceSettingsBuilder =
+ * UserLicenseServiceSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ * OperationalTimedPollAlgorithm.create(
+ * RetrySettings.newBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ * .setRetryDelayMultiplier(1.5)
+ * .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ * .setTotalTimeoutDuration(Duration.ofHours(24))
+ * .build());
+ * userLicenseServiceSettingsBuilder
+ * .createClusterOperationSettings()
+ * .setPollingAlgorithm(timedRetryAlgorithm)
+ * .build();
+ * }
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class UserLicenseServiceSettings extends ClientSettings{@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 (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) {
+ * UserStoreName name = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]");
+ * UserStore response = userStoreServiceClient.getUserStore(name);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ *
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * {@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
+ * UserStoreServiceSettings userStoreServiceSettings =
+ * UserStoreServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * UserStoreServiceClient userStoreServiceClient =
+ * UserStoreServiceClient.create(userStoreServiceSettings);
+ * }
+ *
+ * {@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
+ * UserStoreServiceSettings userStoreServiceSettings =
+ * UserStoreServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * UserStoreServiceClient userStoreServiceClient =
+ * UserStoreServiceClient.create(userStoreServiceSettings);
+ * }
+ *
+ * {@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
+ * UserStoreServiceSettings userStoreServiceSettings =
+ * UserStoreServiceSettings.newHttpJsonBuilder().build();
+ * UserStoreServiceClient userStoreServiceClient =
+ * UserStoreServiceClient.create(userStoreServiceSettings);
+ * }
+ *
+ * {@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 (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) {
+ * UserStoreName name = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]");
+ * UserStore response = userStoreServiceClient.getUserStore(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the User Store to get. Format:
+ * `projects/{project}/locations/{location}/userStores/{user_store_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final UserStore getUserStore(UserStoreName name) {
+ GetUserStoreRequest request =
+ GetUserStoreRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getUserStore(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the User Store.
+ *
+ * {@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 (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) {
+ * String name = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString();
+ * UserStore response = userStoreServiceClient.getUserStore(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the User Store to get. Format:
+ * `projects/{project}/locations/{location}/userStores/{user_store_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final UserStore getUserStore(String name) {
+ GetUserStoreRequest request = GetUserStoreRequest.newBuilder().setName(name).build();
+ return getUserStore(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the User Store.
+ *
+ * {@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 (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) {
+ * GetUserStoreRequest request =
+ * GetUserStoreRequest.newBuilder()
+ * .setName(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString())
+ * .build();
+ * UserStore response = userStoreServiceClient.getUserStore(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 UserStore getUserStore(GetUserStoreRequest request) {
+ return getUserStoreCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the User Store.
+ *
+ * {@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 (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) {
+ * GetUserStoreRequest request =
+ * GetUserStoreRequest.newBuilder()
+ * .setName(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString())
+ * .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 (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) {
+ * UserStore userStore = UserStore.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * UserStore response = userStoreServiceClient.updateUserStore(userStore, updateMask);
+ * }
+ * }
+ *
+ * @param userStore Required. The User Store to update. Format:
+ * `projects/{project}/locations/{location}/userStores/{user_store_id}`
+ * @param updateMask Optional. The list of fields to update.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final UserStore updateUserStore(UserStore userStore, FieldMask updateMask) {
+ UpdateUserStoreRequest request =
+ UpdateUserStoreRequest.newBuilder()
+ .setUserStore(userStore)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateUserStore(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the User Store.
+ *
+ * {@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 (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) {
+ * UpdateUserStoreRequest request =
+ * UpdateUserStoreRequest.newBuilder()
+ * .setUserStore(UserStore.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * UserStore response = userStoreServiceClient.updateUserStore(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 UserStore updateUserStore(UpdateUserStoreRequest request) {
+ return updateUserStoreCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the User Store.
+ *
+ * {@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 (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) {
+ * UpdateUserStoreRequest request =
+ * UpdateUserStoreRequest.newBuilder()
+ * .setUserStore(UserStore.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
+ * UserStoreServiceSettings.Builder userStoreServiceSettingsBuilder =
+ * UserStoreServiceSettings.newBuilder();
+ * userStoreServiceSettingsBuilder
+ * .getUserStoreSettings()
+ * .setRetrySettings(
+ * userStoreServiceSettingsBuilder
+ * .getUserStoreSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * UserStoreServiceSettings userStoreServiceSettings = userStoreServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class UserStoreServiceSettings extends ClientSettings{@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 (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
+ * UpdateAclConfigRequest request =
+ * UpdateAclConfigRequest.newBuilder().setAclConfig(AclConfig.newBuilder().build()).build();
+ * AclConfig response = aclConfigServiceClient.updateAclConfig(request);
+ * }
+ * }
+ *
+ * {@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 (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+ * CreateAssistantRequest request =
+ * CreateAssistantRequest.newBuilder()
+ * .setParent(
+ * EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
+ * .setAssistant(Assistant.newBuilder().build())
+ * .setAssistantId("assistantId-324518759")
+ * .build();
+ * Assistant response = assistantServiceClient.createAssistant(request);
+ * }
+ * }
+ *
+ * {@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 (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+ * CmekConfigName name = CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]");
+ * CmekConfig response = cmekConfigServiceClient.getCmekConfig(name);
+ * }
+ * }
+ *
* {@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 (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
+ * IdentityMappingStoreServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * IdentityMappingStore identityMappingStore = IdentityMappingStore.newBuilder().build();
+ * String identityMappingStoreId = "identityMappingStoreId677904780";
+ * IdentityMappingStore response =
+ * identityMappingStoreServiceClient.createIdentityMappingStore(
+ * parent, identityMappingStore, identityMappingStoreId);
+ * }
+ * }
+ *
+ * {@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 (LicenseConfigServiceClient licenseConfigServiceClient =
+ * LicenseConfigServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * LicenseConfig licenseConfig = LicenseConfig.newBuilder().build();
+ * String licenseConfigId = "licenseConfigId-372057250";
+ * LicenseConfig response =
+ * licenseConfigServiceClient.createLicenseConfig(parent, licenseConfig, licenseConfigId);
+ * }
+ * }
+ *
* {@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 (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
+ * UserStoreName parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]");
+ * ListLicenseConfigsUsageStatsResponse response =
+ * userLicenseServiceClient.listLicenseConfigsUsageStats(parent);
+ * }
+ * }
+ *
+ * {@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 (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) {
+ * UserStoreName name = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]");
+ * UserStore response = userStoreServiceClient.getUserStore(name);
+ * }
+ * }
*/
@Generated("by gapic-generator-java")
package com.google.cloud.discoveryengine.v1beta;
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/AclConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/AclConfigServiceStub.java
new file mode 100644
index 000000000000..829160d0caf2
--- /dev/null
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/AclConfigServiceStub.java
@@ -0,0 +1,47 @@
+/*
+ * 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.cloud.discoveryengine.v1beta.stub;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.discoveryengine.v1beta.AclConfig;
+import com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest;
+import com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Base stub class for the AclConfigService service API.
+ *
+ *
+ *
+ *
+ * {@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
+ * AclConfigServiceStubSettings.Builder aclConfigServiceSettingsBuilder =
+ * AclConfigServiceStubSettings.newBuilder();
+ * aclConfigServiceSettingsBuilder
+ * .updateAclConfigSettings()
+ * .setRetrySettings(
+ * aclConfigServiceSettingsBuilder
+ * .updateAclConfigSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * AclConfigServiceStubSettings aclConfigServiceSettings = aclConfigServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+@SuppressWarnings("CanonicalDuration")
+public class AclConfigServiceStubSettings extends StubSettings
+ *
+ *
+ * {@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
+ * AssistantServiceStubSettings.Builder assistantServiceSettingsBuilder =
+ * AssistantServiceStubSettings.newBuilder();
+ * assistantServiceSettingsBuilder
+ * .createAssistantSettings()
+ * .setRetrySettings(
+ * assistantServiceSettingsBuilder
+ * .createAssistantSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * AssistantServiceStubSettings assistantServiceSettings = assistantServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+@SuppressWarnings("CanonicalDuration")
+public class AssistantServiceStubSettings extends StubSettings