diff --git a/gapic-libraries-bom/pom.xml b/gapic-libraries-bom/pom.xml index d804633cb9a4..ebd665a26f35 100644 --- a/gapic-libraries-bom/pom.xml +++ b/gapic-libraries-bom/pom.xml @@ -15,7 +15,7 @@ google-cloud-pom-parent com.google.cloud - 1.87.0 + 1.87.1 ../google-cloud-pom-parent/pom.xml diff --git a/generation_config.yaml b/generation_config.yaml index 10ab615e932c..de0cdb3b0379 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,4 +1,4 @@ -googleapis_commitish: f7b17174725f43b5cb11b0b8c6bbad20a3dc5bd1 +googleapis_commitish: b282a4f9799f6725a1683d38ef3bb41f19c22b25 libraries_bom_version: 26.83.0 is_monorepo: true libraries: 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.

+ * + *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ * + * + * + * *

RetrieveRequestStatus *

Gets the status of a request given request id. * @@ -438,6 +453,71 @@ public final UnaryCallable ingestEven return stub.ingestEventsCallable(); } + // 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();
+   *   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 + ingestAdEventsCallable() { + return stub.ingestAdEventsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the status of a request given request id. diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceSettings.java index 1e72290fc33f..0ff50e96d9cc 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceSettings.java @@ -102,6 +102,11 @@ public UnaryCallSettings ingestEvents return ((IngestionServiceStubSettings) getStubSettings()).ingestEventsSettings(); } + /** Returns the object with the settings used for calls to ingestAdEvents. */ + public UnaryCallSettings ingestAdEventsSettings() { + return ((IngestionServiceStubSettings) getStubSettings()).ingestAdEventsSettings(); + } + /** Returns the object with the settings used for calls to retrieveRequestStatus. */ public UnaryCallSettings retrieveRequestStatusSettings() { @@ -238,6 +243,12 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().ingestEventsSettings(); } + /** Returns the builder for the settings used for calls to ingestAdEvents. */ + public UnaryCallSettings.Builder + ingestAdEventsSettings() { + return getStubSettingsBuilder().ingestAdEventsSettings(); + } + /** Returns the builder for the settings used for calls to retrieveRequestStatus. */ public UnaryCallSettings.Builder retrieveRequestStatusSettings() { diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/gapic_metadata.json b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/gapic_metadata.json index 48e4057a76c6..64ef439f1111 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/gapic_metadata.json +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/gapic_metadata.json @@ -10,6 +10,9 @@ "grpc": { "libraryClient": "IngestionServiceClient", "rpcs": { + "IngestAdEvents": { + "methods": ["ingestAdEvents", "ingestAdEventsCallable"] + }, "IngestAudienceMembers": { "methods": ["ingestAudienceMembers", "ingestAudienceMembersCallable"] }, diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcIngestionServiceStub.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcIngestionServiceStub.java index d1bfc365a912..1b9c8f169200 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcIngestionServiceStub.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcIngestionServiceStub.java @@ -16,6 +16,8 @@ package com.google.ads.datamanager.v1.stub; +import com.google.ads.datamanager.v1.IngestAdEventsRequest; +import com.google.ads.datamanager.v1.IngestAdEventsResponse; import com.google.ads.datamanager.v1.IngestAudienceMembersRequest; import com.google.ads.datamanager.v1.IngestAudienceMembersResponse; import com.google.ads.datamanager.v1.IngestEventsRequest; @@ -80,6 +82,18 @@ public class GrpcIngestionServiceStub extends IngestionServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + ingestAdEventsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.ads.datamanager.v1.IngestionService/IngestAdEvents") + .setRequestMarshaller( + ProtoUtils.marshaller(IngestAdEventsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(IngestAdEventsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor retrieveRequestStatusMethodDescriptor = MethodDescriptor.newBuilder() @@ -97,6 +111,7 @@ public class GrpcIngestionServiceStub extends IngestionServiceStub { private final UnaryCallable removeAudienceMembersCallable; private final UnaryCallable ingestEventsCallable; + private final UnaryCallable ingestAdEventsCallable; private final UnaryCallable retrieveRequestStatusCallable; @@ -160,6 +175,11 @@ protected GrpcIngestionServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(ingestEventsMethodDescriptor) .build(); + GrpcCallSettings + ingestAdEventsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(ingestAdEventsMethodDescriptor) + .build(); GrpcCallSettings retrieveRequestStatusTransportSettings = GrpcCallSettings @@ -180,6 +200,9 @@ protected GrpcIngestionServiceStub( this.ingestEventsCallable = callableFactory.createUnaryCallable( ingestEventsTransportSettings, settings.ingestEventsSettings(), clientContext); + this.ingestAdEventsCallable = + callableFactory.createUnaryCallable( + ingestAdEventsTransportSettings, settings.ingestAdEventsSettings(), clientContext); this.retrieveRequestStatusCallable = callableFactory.createUnaryCallable( retrieveRequestStatusTransportSettings, @@ -211,6 +234,11 @@ public UnaryCallable ingestEventsCall return ingestEventsCallable; } + @Override + public UnaryCallable ingestAdEventsCallable() { + return ingestAdEventsCallable; + } + @Override public UnaryCallable retrieveRequestStatusCallable() { diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonIngestionServiceStub.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonIngestionServiceStub.java index 79b3e3b58d72..0f41fc286d40 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonIngestionServiceStub.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonIngestionServiceStub.java @@ -16,6 +16,8 @@ package com.google.ads.datamanager.v1.stub; +import com.google.ads.datamanager.v1.IngestAdEventsRequest; +import com.google.ads.datamanager.v1.IngestAdEventsResponse; import com.google.ads.datamanager.v1.IngestAudienceMembersRequest; import com.google.ads.datamanager.v1.IngestAudienceMembersResponse; import com.google.ads.datamanager.v1.IngestEventsRequest; @@ -166,6 +168,42 @@ public class HttpJsonIngestionServiceStub extends IngestionServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + ingestAdEventsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.datamanager.v1.IngestionService/IngestAdEvents") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/adEvents:ingest", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(IngestAdEventsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor< RetrieveRequestStatusRequest, RetrieveRequestStatusResponse> retrieveRequestStatusMethodDescriptor = @@ -207,6 +245,7 @@ public class HttpJsonIngestionServiceStub extends IngestionServiceStub { private final UnaryCallable removeAudienceMembersCallable; private final UnaryCallable ingestEventsCallable; + private final UnaryCallable ingestAdEventsCallable; private final UnaryCallable retrieveRequestStatusCallable; @@ -271,6 +310,12 @@ protected HttpJsonIngestionServiceStub( .setMethodDescriptor(ingestEventsMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings + ingestAdEventsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(ingestAdEventsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings retrieveRequestStatusTransportSettings = HttpJsonCallSettings @@ -292,6 +337,9 @@ protected HttpJsonIngestionServiceStub( this.ingestEventsCallable = callableFactory.createUnaryCallable( ingestEventsTransportSettings, settings.ingestEventsSettings(), clientContext); + this.ingestAdEventsCallable = + callableFactory.createUnaryCallable( + ingestAdEventsTransportSettings, settings.ingestAdEventsSettings(), clientContext); this.retrieveRequestStatusCallable = callableFactory.createUnaryCallable( retrieveRequestStatusTransportSettings, @@ -308,6 +356,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(ingestAudienceMembersMethodDescriptor); methodDescriptors.add(removeAudienceMembersMethodDescriptor); methodDescriptors.add(ingestEventsMethodDescriptor); + methodDescriptors.add(ingestAdEventsMethodDescriptor); methodDescriptors.add(retrieveRequestStatusMethodDescriptor); return methodDescriptors; } @@ -329,6 +378,11 @@ public UnaryCallable ingestEventsCall return ingestEventsCallable; } + @Override + public UnaryCallable ingestAdEventsCallable() { + return ingestAdEventsCallable; + } + @Override public UnaryCallable retrieveRequestStatusCallable() { diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStub.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStub.java index f88edd3f131a..ddea8d1bc7c9 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStub.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStub.java @@ -16,6 +16,8 @@ package com.google.ads.datamanager.v1.stub; +import com.google.ads.datamanager.v1.IngestAdEventsRequest; +import com.google.ads.datamanager.v1.IngestAdEventsResponse; import com.google.ads.datamanager.v1.IngestAudienceMembersRequest; import com.google.ads.datamanager.v1.IngestAudienceMembersResponse; import com.google.ads.datamanager.v1.IngestEventsRequest; @@ -51,6 +53,10 @@ public UnaryCallable ingestEventsCall throw new UnsupportedOperationException("Not implemented: ingestEventsCallable()"); } + public UnaryCallable ingestAdEventsCallable() { + throw new UnsupportedOperationException("Not implemented: ingestAdEventsCallable()"); + } + public UnaryCallable retrieveRequestStatusCallable() { throw new UnsupportedOperationException("Not implemented: retrieveRequestStatusCallable()"); diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStubSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStubSettings.java index 8c13f0f4c3ed..6edfe164836f 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStubSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStubSettings.java @@ -16,6 +16,8 @@ package com.google.ads.datamanager.v1.stub; +import com.google.ads.datamanager.v1.IngestAdEventsRequest; +import com.google.ads.datamanager.v1.IngestAdEventsResponse; import com.google.ads.datamanager.v1.IngestAudienceMembersRequest; import com.google.ads.datamanager.v1.IngestAudienceMembersResponse; import com.google.ads.datamanager.v1.IngestEventsRequest; @@ -114,6 +116,8 @@ public class IngestionServiceStubSettings extends StubSettings removeAudienceMembersSettings; private final UnaryCallSettings ingestEventsSettings; + private final UnaryCallSettings + ingestAdEventsSettings; private final UnaryCallSettings retrieveRequestStatusSettings; @@ -134,6 +138,11 @@ public UnaryCallSettings ingestEvents return ingestEventsSettings; } + /** Returns the object with the settings used for calls to ingestAdEvents. */ + public UnaryCallSettings ingestAdEventsSettings() { + return ingestAdEventsSettings; + } + /** Returns the object with the settings used for calls to retrieveRequestStatus. */ public UnaryCallSettings retrieveRequestStatusSettings() { @@ -254,6 +263,7 @@ protected IngestionServiceStubSettings(Builder settingsBuilder) throws IOExcepti ingestAudienceMembersSettings = settingsBuilder.ingestAudienceMembersSettings().build(); removeAudienceMembersSettings = settingsBuilder.removeAudienceMembersSettings().build(); ingestEventsSettings = settingsBuilder.ingestEventsSettings().build(); + ingestAdEventsSettings = settingsBuilder.ingestAdEventsSettings().build(); retrieveRequestStatusSettings = settingsBuilder.retrieveRequestStatusSettings().build(); } @@ -277,6 +287,8 @@ public static class Builder extends StubSettings.Builder ingestEventsSettings; + private final UnaryCallSettings.Builder + ingestAdEventsSettings; private final UnaryCallSettings.Builder< RetrieveRequestStatusRequest, RetrieveRequestStatusResponse> retrieveRequestStatusSettings; @@ -310,6 +322,7 @@ protected Builder(ClientContext clientContext) { ingestAudienceMembersSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); removeAudienceMembersSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); ingestEventsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + ingestAdEventsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); retrieveRequestStatusSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = @@ -317,6 +330,7 @@ protected Builder(ClientContext clientContext) { ingestAudienceMembersSettings, removeAudienceMembersSettings, ingestEventsSettings, + ingestAdEventsSettings, retrieveRequestStatusSettings); initDefaults(this); } @@ -327,6 +341,7 @@ protected Builder(IngestionServiceStubSettings settings) { ingestAudienceMembersSettings = settings.ingestAudienceMembersSettings.toBuilder(); removeAudienceMembersSettings = settings.removeAudienceMembersSettings.toBuilder(); ingestEventsSettings = settings.ingestEventsSettings.toBuilder(); + ingestAdEventsSettings = settings.ingestAdEventsSettings.toBuilder(); retrieveRequestStatusSettings = settings.retrieveRequestStatusSettings.toBuilder(); unaryMethodSettingsBuilders = @@ -334,6 +349,7 @@ protected Builder(IngestionServiceStubSettings settings) { ingestAudienceMembersSettings, removeAudienceMembersSettings, ingestEventsSettings, + ingestAdEventsSettings, retrieveRequestStatusSettings); } @@ -377,6 +393,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .ingestAdEventsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .retrieveRequestStatusSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -418,6 +439,12 @@ public Builder applyToAllUnaryMethods( return ingestEventsSettings; } + /** Returns the builder for the settings used for calls to ingestAdEvents. */ + public UnaryCallSettings.Builder + ingestAdEventsSettings() { + return ingestAdEventsSettings; + } + /** Returns the builder for the settings used for calls to retrieveRequestStatus. */ public UnaryCallSettings.Builder retrieveRequestStatusSettings() { diff --git a/java-datamanager/data-manager/src/main/resources/META-INF/native-image/com.google.ads.datamanager.v1/reflect-config.json b/java-datamanager/data-manager/src/main/resources/META-INF/native-image/com.google.ads.datamanager.v1/reflect-config.json index 8f70505a68c2..15bfcf0c244d 100644 --- a/java-datamanager/data-manager/src/main/resources/META-INF/native-image/com.google.ads.datamanager.v1/reflect-config.json +++ b/java-datamanager/data-manager/src/main/resources/META-INF/native-image/com.google.ads.datamanager.v1/reflect-config.json @@ -1,4 +1,49 @@ [ + { + "name": "com.google.ads.datamanager.v1.AdEvent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.AdEvent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.AdEvent$EventSubtype", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.AdEvent$EventType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.AdFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.AdIdentifiers", "queryAllDeclaredConstructors": true, @@ -17,6 +62,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.AdPlacement", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.AdType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.AddressInfo", "queryAllDeclaredConstructors": true, @@ -44,6 +107,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.AttributionHint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.AudienceMember", "queryAllDeclaredConstructors": true, @@ -206,6 +278,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.CoordinatorKeyInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.CoordinatorKeyInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.CreatePartnerLinkRequest", "queryAllDeclaredConstructors": true, @@ -584,6 +674,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.FeatureSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.GcpWrappedKeyInfo", "queryAllDeclaredConstructors": true, @@ -674,6 +773,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.IngestAdEventsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.IngestAdEventsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.IngestAdEventsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.IngestAdEventsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.IngestAudienceMembersRequest", "queryAllDeclaredConstructors": true, @@ -998,6 +1133,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.MediaQuartile", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.MobileData", "queryAllDeclaredConstructors": true, @@ -1106,6 +1250,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.PartnerCustomerAccount", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.PartnerCustomerAccount$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.PartnerLink", "queryAllDeclaredConstructors": true, @@ -1124,6 +1286,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.PartnerLinkMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.PartnerLinkMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.Platform", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.PlatformType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.PpidData", "queryAllDeclaredConstructors": true, @@ -1772,6 +1970,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.TargetingType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.TermsOfService", "queryAllDeclaredConstructors": true, @@ -2150,6 +2357,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.ViewType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.ViewabilityInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.ViewabilityInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.WarningCount", "queryAllDeclaredConstructors": true, diff --git a/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/IngestionServiceClientHttpJsonTest.java b/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/IngestionServiceClientHttpJsonTest.java index 4f0e450708af..5c4affa6f640 100644 --- a/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/IngestionServiceClientHttpJsonTest.java +++ b/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/IngestionServiceClientHttpJsonTest.java @@ -246,6 +246,57 @@ public void ingestEventsExceptionTest() throws Exception { } } + @Test + public void ingestAdEventsTest() throws Exception { + IngestAdEventsResponse expectedResponse = IngestAdEventsResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + IngestAdEventsRequest request = + IngestAdEventsRequest.newBuilder() + .addAllAdEvents(new ArrayList()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setValidateOnly(true) + .build(); + + IngestAdEventsResponse actualResponse = client.ingestAdEvents(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void ingestAdEventsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + IngestAdEventsRequest request = + IngestAdEventsRequest.newBuilder() + .addAllAdEvents(new ArrayList()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setValidateOnly(true) + .build(); + client.ingestAdEvents(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void retrieveRequestStatusTest() throws Exception { RetrieveRequestStatusResponse expectedResponse = diff --git a/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/IngestionServiceClientTest.java b/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/IngestionServiceClientTest.java index 602f913a473a..ab60a33290c5 100644 --- a/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/IngestionServiceClientTest.java +++ b/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/IngestionServiceClientTest.java @@ -249,6 +249,53 @@ public void ingestEventsExceptionTest() throws Exception { } } + @Test + public void ingestAdEventsTest() throws Exception { + IngestAdEventsResponse expectedResponse = IngestAdEventsResponse.newBuilder().build(); + mockIngestionService.addResponse(expectedResponse); + + IngestAdEventsRequest request = + IngestAdEventsRequest.newBuilder() + .addAllAdEvents(new ArrayList()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setValidateOnly(true) + .build(); + + IngestAdEventsResponse actualResponse = client.ingestAdEvents(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIngestionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + IngestAdEventsRequest actualRequest = ((IngestAdEventsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getAdEventsList(), actualRequest.getAdEventsList()); + Assert.assertEquals(request.getEncryptionInfo(), actualRequest.getEncryptionInfo()); + Assert.assertEquals(request.getValidateOnly(), actualRequest.getValidateOnly()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void ingestAdEventsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIngestionService.addException(exception); + + try { + IngestAdEventsRequest request = + IngestAdEventsRequest.newBuilder() + .addAllAdEvents(new ArrayList()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setValidateOnly(true) + .build(); + client.ingestAdEvents(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void retrieveRequestStatusTest() throws Exception { RetrieveRequestStatusResponse expectedResponse = diff --git a/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/MockIngestionServiceImpl.java b/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/MockIngestionServiceImpl.java index 9276a124352a..d2fbaddd10e6 100644 --- a/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/MockIngestionServiceImpl.java +++ b/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/MockIngestionServiceImpl.java @@ -125,6 +125,27 @@ public void ingestEvents( } } + @Override + public void ingestAdEvents( + IngestAdEventsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof IngestAdEventsResponse) { + requests.add(request); + responseObserver.onNext(((IngestAdEventsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method IngestAdEvents, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + IngestAdEventsResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void retrieveRequestStatus( RetrieveRequestStatusRequest request, diff --git a/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/PartnerLinkServiceClientHttpJsonTest.java b/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/PartnerLinkServiceClientHttpJsonTest.java index 2eb55a6c5386..498278a9b0ef 100644 --- a/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/PartnerLinkServiceClientHttpJsonTest.java +++ b/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/PartnerLinkServiceClientHttpJsonTest.java @@ -84,6 +84,9 @@ public void createPartnerLinkTest() throws Exception { .setPartnerLinkId("partnerLinkId171029917") .setOwningAccount(ProductAccount.newBuilder().build()) .setPartnerAccount(ProductAccount.newBuilder().build()) + .setFeatureSet(FeatureSet.forNumber(0)) + .setPartnerCustomerAccount(PartnerCustomerAccount.newBuilder().build()) + .setPartnerLinkMetadata(PartnerLinkMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -133,6 +136,9 @@ public void createPartnerLinkTest2() throws Exception { .setPartnerLinkId("partnerLinkId171029917") .setOwningAccount(ProductAccount.newBuilder().build()) .setPartnerAccount(ProductAccount.newBuilder().build()) + .setFeatureSet(FeatureSet.forNumber(0)) + .setPartnerCustomerAccount(PartnerCustomerAccount.newBuilder().build()) + .setPartnerLinkMetadata(PartnerLinkMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/PartnerLinkServiceClientTest.java b/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/PartnerLinkServiceClientTest.java index bf162e007659..a37a442e73a6 100644 --- a/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/PartnerLinkServiceClientTest.java +++ b/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/PartnerLinkServiceClientTest.java @@ -87,6 +87,9 @@ public void createPartnerLinkTest() throws Exception { .setPartnerLinkId("partnerLinkId171029917") .setOwningAccount(ProductAccount.newBuilder().build()) .setPartnerAccount(ProductAccount.newBuilder().build()) + .setFeatureSet(FeatureSet.forNumber(0)) + .setPartnerCustomerAccount(PartnerCustomerAccount.newBuilder().build()) + .setPartnerLinkMetadata(PartnerLinkMetadata.newBuilder().build()) .build(); mockPartnerLinkService.addResponse(expectedResponse); @@ -131,6 +134,9 @@ public void createPartnerLinkTest2() throws Exception { .setPartnerLinkId("partnerLinkId171029917") .setOwningAccount(ProductAccount.newBuilder().build()) .setPartnerAccount(ProductAccount.newBuilder().build()) + .setFeatureSet(FeatureSet.forNumber(0)) + .setPartnerCustomerAccount(PartnerCustomerAccount.newBuilder().build()) + .setPartnerLinkMetadata(PartnerLinkMetadata.newBuilder().build()) .build(); mockPartnerLinkService.addResponse(expectedResponse); diff --git a/java-datamanager/grpc-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceGrpc.java b/java-datamanager/grpc-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceGrpc.java index 73780e756689..5762aa5fedf9 100644 --- a/java-datamanager/grpc-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceGrpc.java +++ b/java-datamanager/grpc-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceGrpc.java @@ -179,6 +179,53 @@ private IngestionServiceGrpc() {} return getIngestEventsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.ads.datamanager.v1.IngestAdEventsRequest, + com.google.ads.datamanager.v1.IngestAdEventsResponse> + getIngestAdEventsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "IngestAdEvents", + requestType = com.google.ads.datamanager.v1.IngestAdEventsRequest.class, + responseType = com.google.ads.datamanager.v1.IngestAdEventsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.ads.datamanager.v1.IngestAdEventsRequest, + com.google.ads.datamanager.v1.IngestAdEventsResponse> + getIngestAdEventsMethod() { + io.grpc.MethodDescriptor< + com.google.ads.datamanager.v1.IngestAdEventsRequest, + com.google.ads.datamanager.v1.IngestAdEventsResponse> + getIngestAdEventsMethod; + if ((getIngestAdEventsMethod = IngestionServiceGrpc.getIngestAdEventsMethod) == null) { + synchronized (IngestionServiceGrpc.class) { + if ((getIngestAdEventsMethod = IngestionServiceGrpc.getIngestAdEventsMethod) == null) { + IngestionServiceGrpc.getIngestAdEventsMethod = + getIngestAdEventsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "IngestAdEvents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.datamanager.v1.IngestAdEventsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.datamanager.v1.IngestAdEventsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new IngestionServiceMethodDescriptorSupplier("IngestAdEvents")) + .build(); + } + } + } + return getIngestAdEventsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.ads.datamanager.v1.RetrieveRequestStatusRequest, com.google.ads.datamanager.v1.RetrieveRequestStatusResponse> @@ -343,6 +390,24 @@ default void ingestEvents( getIngestEventsMethod(), responseObserver); } + /** + * + * + *
+     * 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 + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getIngestAdEventsMethod(), responseObserver); + } + /** * * @@ -450,6 +515,26 @@ public void ingestEvents( responseObserver); } + /** + * + * + *
+     * 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 + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getIngestAdEventsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -535,6 +620,23 @@ 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) + 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 implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -752,6 +888,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_INGEST_AD_EVENTS: + serviceImpl.ingestAdEvents( + (com.google.ads.datamanager.v1.IngestAdEventsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_RETRIEVE_REQUEST_STATUS: serviceImpl.retrieveRequestStatus( (com.google.ads.datamanager.v1.RetrieveRequestStatusRequest) request, @@ -798,6 +940,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.ads.datamanager.v1.IngestEventsRequest, com.google.ads.datamanager.v1.IngestEventsResponse>( service, METHODID_INGEST_EVENTS))) + .addMethod( + getIngestAdEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.ads.datamanager.v1.IngestAdEventsRequest, + com.google.ads.datamanager.v1.IngestAdEventsResponse>( + service, METHODID_INGEST_AD_EVENTS))) .addMethod( getRetrieveRequestStatusMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -859,6 +1008,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getIngestAudienceMembersMethod()) .addMethod(getRemoveAudienceMembersMethod()) .addMethod(getIngestEventsMethod()) + .addMethod(getIngestAdEventsMethod()) .addMethod(getRetrieveRequestStatusMethod()) .build(); } diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEvent.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEvent.java new file mode 100644 index 000000000000..711bd79f7d7c --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEvent.java @@ -0,0 +1,8395 @@ +/* + * 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; + +/** + * + * + *
+ * 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 internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EventType findValueByNumber(int number) { + return EventType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.datamanager.v1.AdEvent.getDescriptor().getEnumTypes().get(0); + } + + private static final EventType[] VALUES = values(); + + public static EventType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private EventType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.datamanager.v1.AdEvent.EventType) + } + + /** + * + * + *
+   * 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 internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EventSubtype findValueByNumber(int number) { + return EventSubtype.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.datamanager.v1.AdEvent.getDescriptor().getEnumTypes().get(1); + } + + private static final EventSubtype[] VALUES = values(); + + public static EventSubtype valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private EventSubtype(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.datamanager.v1.AdEvent.EventSubtype) + } + + private int bitField0_; + private int eventSubtypeOneofCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object eventSubtypeOneof_; + + public enum EventSubtypeOneofCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + EVENT_SUBTYPE(3), + EVENT_SUBTYPE_STRING(4), + EVENTSUBTYPEONEOF_NOT_SET(0); + private final int value; + + private EventSubtypeOneofCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EventSubtypeOneofCase valueOf(int value) { + return forNumber(value); + } + + public static EventSubtypeOneofCase forNumber(int value) { + switch (value) { + case 3: + return EVENT_SUBTYPE; + case 4: + return EVENT_SUBTYPE_STRING; + case 0: + return EVENTSUBTYPEONEOF_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EventSubtypeOneofCase getEventSubtypeOneofCase() { + return EventSubtypeOneofCase.forNumber(eventSubtypeOneofCase_); + } + + private int adTypeOneofCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object adTypeOneof_; + + public enum AdTypeOneofCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AD_TYPE(14), + AD_TYPE_STRING(15), + ADTYPEONEOF_NOT_SET(0); + private final int value; + + private AdTypeOneofCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AdTypeOneofCase valueOf(int value) { + return forNumber(value); + } + + public static AdTypeOneofCase forNumber(int value) { + switch (value) { + case 14: + return AD_TYPE; + case 15: + return AD_TYPE_STRING; + case 0: + return ADTYPEONEOF_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AdTypeOneofCase getAdTypeOneofCase() { + return AdTypeOneofCase.forNumber(adTypeOneofCase_); + } + + private int adFormatOneofCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object adFormatOneof_; + + public enum AdFormatOneofCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AD_FORMAT(16), + AD_FORMAT_STRING(17), + ADFORMATONEOF_NOT_SET(0); + private final int value; + + private AdFormatOneofCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AdFormatOneofCase valueOf(int value) { + return forNumber(value); + } + + public static AdFormatOneofCase forNumber(int value) { + switch (value) { + case 16: + return AD_FORMAT; + case 17: + return AD_FORMAT_STRING; + case 0: + return ADFORMATONEOF_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AdFormatOneofCase getAdFormatOneofCase() { + return AdFormatOneofCase.forNumber(adFormatOneofCase_); + } + + private int adPlacementOneofCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object adPlacementOneof_; + + public enum AdPlacementOneofCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AD_PLACEMENT(18), + AD_PLACEMENT_STRING(19), + ADPLACEMENTONEOF_NOT_SET(0); + private final int value; + + private AdPlacementOneofCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AdPlacementOneofCase valueOf(int value) { + return forNumber(value); + } + + public static AdPlacementOneofCase forNumber(int value) { + switch (value) { + case 18: + return AD_PLACEMENT; + case 19: + return AD_PLACEMENT_STRING; + case 0: + return ADPLACEMENTONEOF_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AdPlacementOneofCase getAdPlacementOneofCase() { + return AdPlacementOneofCase.forNumber(adPlacementOneofCase_); + } + + private int targetingTypeOneofCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object targetingTypeOneof_; + + public enum TargetingTypeOneofCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TARGETING_TYPE(25), + TARGETING_TYPE_STRING(26), + TARGETINGTYPEONEOF_NOT_SET(0); + private final int value; + + private TargetingTypeOneofCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetingTypeOneofCase valueOf(int value) { + return forNumber(value); + } + + public static TargetingTypeOneofCase forNumber(int value) { + switch (value) { + case 25: + return TARGETING_TYPE; + case 26: + return TARGETING_TYPE_STRING; + case 0: + return TARGETINGTYPEONEOF_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TargetingTypeOneofCase getTargetingTypeOneofCase() { + return TargetingTypeOneofCase.forNumber(targetingTypeOneofCase_); + } + + private int platformTypeOneofCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object platformTypeOneof_; + + public enum PlatformTypeOneofCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PLATFORM_TYPE(27), + PLATFORM_TYPE_STRING(28), + PLATFORMTYPEONEOF_NOT_SET(0); + private final int value; + + private PlatformTypeOneofCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PlatformTypeOneofCase valueOf(int value) { + return forNumber(value); + } + + public static PlatformTypeOneofCase forNumber(int value) { + switch (value) { + case 27: + return PLATFORM_TYPE; + case 28: + return PLATFORM_TYPE_STRING; + case 0: + return PLATFORMTYPEONEOF_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PlatformTypeOneofCase getPlatformTypeOneofCase() { + return PlatformTypeOneofCase.forNumber(platformTypeOneofCase_); + } + + private int platformOneofCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object platformOneof_; + + public enum PlatformOneofCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PLATFORM(29), + PLATFORM_STRING(30), + PLATFORMONEOF_NOT_SET(0); + private final int value; + + private PlatformOneofCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PlatformOneofCase valueOf(int value) { + return forNumber(value); + } + + public static PlatformOneofCase forNumber(int value) { + switch (value) { + case 29: + return PLATFORM; + case 30: + return PLATFORM_STRING; + case 0: + return PLATFORMONEOF_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PlatformOneofCase getPlatformOneofCase() { + return PlatformOneofCase.forNumber(platformOneofCase_); + } + + public static final int ADVERTISER_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object advertiserId_ = ""; + + /** + * + * + *
+   * 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 + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.AdEvent) + com.google.ads.datamanager.v1.AdEventOrBuilder { + 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); + } + + // Construct using com.google.ads.datamanager.v1.AdEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTimestampFieldBuilder(); + internalGetUserDataFieldBuilder(); + internalGetDeviceInfoFieldBuilder(); + internalGetViewabilityInfoFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bitField1_ = 0; + advertiserId_ = ""; + eventType_ = 0; + timestamp_ = null; + if (timestampBuilder_ != null) { + timestampBuilder_.dispose(); + timestampBuilder_ = null; + } + eventId_ = ""; + userData_ = null; + if (userDataBuilder_ != null) { + userDataBuilder_.dispose(); + userDataBuilder_ = null; + } + deviceInfo_ = null; + if (deviceInfoBuilder_ != null) { + deviceInfoBuilder_.dispose(); + deviceInfoBuilder_ = null; + } + mobileDeviceId_ = ""; + campaignId_ = ""; + campaignName_ = ""; + adGroupId_ = ""; + adId_ = ""; + adHeight_ = 0; + adWidth_ = 0; + regionCode_ = ""; + source_ = ""; + medium_ = ""; + attributionHint_ = 0; + viewabilityInfo_ = null; + if (viewabilityInfoBuilder_ != null) { + viewabilityInfoBuilder_.dispose(); + viewabilityInfoBuilder_ = null; + } + measurementAllowed_ = false; + eventSubtypeOneofCase_ = 0; + eventSubtypeOneof_ = null; + adTypeOneofCase_ = 0; + adTypeOneof_ = null; + adFormatOneofCase_ = 0; + adFormatOneof_ = null; + adPlacementOneofCase_ = 0; + adPlacementOneof_ = null; + targetingTypeOneofCase_ = 0; + targetingTypeOneof_ = null; + platformTypeOneofCase_ = 0; + platformTypeOneof_ = null; + platformOneofCase_ = 0; + platformOneof_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.AdEventProto + .internal_static_google_ads_datamanager_v1_AdEvent_descriptor; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.AdEvent getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.AdEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.datamanager.v1.AdEvent build() { + com.google.ads.datamanager.v1.AdEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.AdEvent buildPartial() { + com.google.ads.datamanager.v1.AdEvent result = + new com.google.ads.datamanager.v1.AdEvent(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + if (bitField1_ != 0) { + buildPartial1(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.datamanager.v1.AdEvent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.advertiserId_ = advertiserId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.eventType_ = eventType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.timestamp_ = timestampBuilder_ == null ? timestamp_ : timestampBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.eventId_ = eventId_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.userData_ = userDataBuilder_ == null ? userData_ : userDataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.deviceInfo_ = deviceInfoBuilder_ == null ? deviceInfo_ : deviceInfoBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.mobileDeviceId_ = mobileDeviceId_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.campaignId_ = campaignId_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.campaignName_ = campaignName_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.adGroupId_ = adGroupId_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.adId_ = adId_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.adHeight_ = adHeight_; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.adWidth_ = adWidth_; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.regionCode_ = regionCode_; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.source_ = source_; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.medium_ = medium_; + } + if (((from_bitField0_ & 0x40000000) != 0)) { + result.attributionHint_ = attributionHint_; + } + if (((from_bitField0_ & 0x80000000) != 0)) { + result.viewabilityInfo_ = + viewabilityInfoBuilder_ == null ? viewabilityInfo_ : viewabilityInfoBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartial1(com.google.ads.datamanager.v1.AdEvent result) { + int from_bitField1_ = bitField1_; + int to_bitField0_ = 0; + if (((from_bitField1_ & 0x00000001) != 0)) { + result.measurementAllowed_ = measurementAllowed_; + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.ads.datamanager.v1.AdEvent result) { + result.eventSubtypeOneofCase_ = eventSubtypeOneofCase_; + result.eventSubtypeOneof_ = this.eventSubtypeOneof_; + result.adTypeOneofCase_ = adTypeOneofCase_; + result.adTypeOneof_ = this.adTypeOneof_; + result.adFormatOneofCase_ = adFormatOneofCase_; + result.adFormatOneof_ = this.adFormatOneof_; + result.adPlacementOneofCase_ = adPlacementOneofCase_; + result.adPlacementOneof_ = this.adPlacementOneof_; + result.targetingTypeOneofCase_ = targetingTypeOneofCase_; + result.targetingTypeOneof_ = this.targetingTypeOneof_; + result.platformTypeOneofCase_ = platformTypeOneofCase_; + result.platformTypeOneof_ = this.platformTypeOneof_; + result.platformOneofCase_ = platformOneofCase_; + result.platformOneof_ = this.platformOneof_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.datamanager.v1.AdEvent) { + return mergeFrom((com.google.ads.datamanager.v1.AdEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.datamanager.v1.AdEvent other) { + if (other == com.google.ads.datamanager.v1.AdEvent.getDefaultInstance()) return this; + if (!other.getAdvertiserId().isEmpty()) { + advertiserId_ = other.advertiserId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.eventType_ != 0) { + setEventTypeValue(other.getEventTypeValue()); + } + if (other.hasTimestamp()) { + mergeTimestamp(other.getTimestamp()); + } + if (!other.getEventId().isEmpty()) { + eventId_ = other.eventId_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasUserData()) { + mergeUserData(other.getUserData()); + } + if (other.hasDeviceInfo()) { + mergeDeviceInfo(other.getDeviceInfo()); + } + if (!other.getMobileDeviceId().isEmpty()) { + mobileDeviceId_ = other.mobileDeviceId_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getCampaignId().isEmpty()) { + campaignId_ = other.campaignId_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getCampaignName().isEmpty()) { + campaignName_ = other.campaignName_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (!other.getAdGroupId().isEmpty()) { + adGroupId_ = other.adGroupId_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (!other.getAdId().isEmpty()) { + adId_ = other.adId_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (other.getAdHeight() != 0) { + setAdHeight(other.getAdHeight()); + } + if (other.getAdWidth() != 0) { + setAdWidth(other.getAdWidth()); + } + if (!other.getRegionCode().isEmpty()) { + regionCode_ = other.regionCode_; + bitField0_ |= 0x00200000; + onChanged(); + } + if (!other.getSource().isEmpty()) { + source_ = other.source_; + bitField0_ |= 0x00400000; + onChanged(); + } + if (!other.getMedium().isEmpty()) { + medium_ = other.medium_; + bitField0_ |= 0x00800000; + onChanged(); + } + if (other.attributionHint_ != 0) { + setAttributionHintValue(other.getAttributionHintValue()); + } + if (other.hasViewabilityInfo()) { + mergeViewabilityInfo(other.getViewabilityInfo()); + } + if (other.hasMeasurementAllowed()) { + setMeasurementAllowed(other.getMeasurementAllowed()); + } + switch (other.getEventSubtypeOneofCase()) { + case EVENT_SUBTYPE: + { + setEventSubtypeValue(other.getEventSubtypeValue()); + break; + } + case EVENT_SUBTYPE_STRING: + { + eventSubtypeOneofCase_ = 4; + eventSubtypeOneof_ = other.eventSubtypeOneof_; + onChanged(); + break; + } + case EVENTSUBTYPEONEOF_NOT_SET: + { + break; + } + } + switch (other.getAdTypeOneofCase()) { + case AD_TYPE: + { + setAdTypeValue(other.getAdTypeValue()); + break; + } + case AD_TYPE_STRING: + { + adTypeOneofCase_ = 15; + adTypeOneof_ = other.adTypeOneof_; + onChanged(); + break; + } + case ADTYPEONEOF_NOT_SET: + { + break; + } + } + switch (other.getAdFormatOneofCase()) { + case AD_FORMAT: + { + setAdFormatValue(other.getAdFormatValue()); + break; + } + case AD_FORMAT_STRING: + { + adFormatOneofCase_ = 17; + adFormatOneof_ = other.adFormatOneof_; + onChanged(); + break; + } + case ADFORMATONEOF_NOT_SET: + { + break; + } + } + switch (other.getAdPlacementOneofCase()) { + case AD_PLACEMENT: + { + setAdPlacementValue(other.getAdPlacementValue()); + break; + } + case AD_PLACEMENT_STRING: + { + adPlacementOneofCase_ = 19; + adPlacementOneof_ = other.adPlacementOneof_; + onChanged(); + break; + } + case ADPLACEMENTONEOF_NOT_SET: + { + break; + } + } + switch (other.getTargetingTypeOneofCase()) { + case TARGETING_TYPE: + { + setTargetingTypeValue(other.getTargetingTypeValue()); + break; + } + case TARGETING_TYPE_STRING: + { + targetingTypeOneofCase_ = 26; + targetingTypeOneof_ = other.targetingTypeOneof_; + onChanged(); + break; + } + case TARGETINGTYPEONEOF_NOT_SET: + { + break; + } + } + switch (other.getPlatformTypeOneofCase()) { + case PLATFORM_TYPE: + { + setPlatformTypeValue(other.getPlatformTypeValue()); + break; + } + case PLATFORM_TYPE_STRING: + { + platformTypeOneofCase_ = 28; + platformTypeOneof_ = other.platformTypeOneof_; + onChanged(); + break; + } + case PLATFORMTYPEONEOF_NOT_SET: + { + break; + } + } + switch (other.getPlatformOneofCase()) { + case PLATFORM: + { + setPlatformValue(other.getPlatformValue()); + break; + } + case PLATFORM_STRING: + { + platformOneofCase_ = 30; + platformOneof_ = other.platformOneof_; + onChanged(); + break; + } + case PLATFORMONEOF_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + advertiserId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + eventType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + int rawValue = input.readEnum(); + eventSubtypeOneofCase_ = 3; + eventSubtypeOneof_ = rawValue; + break; + } // case 24 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + eventSubtypeOneofCase_ = 4; + eventSubtypeOneof_ = s; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetTimestampFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + eventId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetUserDataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetDeviceInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + mobileDeviceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + campaignId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + campaignName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: + { + adGroupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: + { + adId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 112: + { + int rawValue = input.readEnum(); + adTypeOneofCase_ = 14; + adTypeOneof_ = rawValue; + break; + } // case 112 + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); + adTypeOneofCase_ = 15; + adTypeOneof_ = s; + break; + } // case 122 + case 128: + { + int rawValue = input.readEnum(); + adFormatOneofCase_ = 16; + adFormatOneof_ = rawValue; + break; + } // case 128 + case 138: + { + java.lang.String s = input.readStringRequireUtf8(); + adFormatOneofCase_ = 17; + adFormatOneof_ = s; + break; + } // case 138 + case 144: + { + int rawValue = input.readEnum(); + adPlacementOneofCase_ = 18; + adPlacementOneof_ = rawValue; + break; + } // case 144 + case 154: + { + java.lang.String s = input.readStringRequireUtf8(); + adPlacementOneofCase_ = 19; + adPlacementOneof_ = s; + break; + } // case 154 + case 160: + { + adHeight_ = input.readInt32(); + bitField0_ |= 0x00080000; + break; + } // case 160 + case 168: + { + adWidth_ = input.readInt32(); + bitField0_ |= 0x00100000; + break; + } // case 168 + case 178: + { + regionCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00200000; + break; + } // case 178 + case 186: + { + source_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00400000; + break; + } // case 186 + case 194: + { + medium_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00800000; + break; + } // case 194 + case 200: + { + int rawValue = input.readEnum(); + targetingTypeOneofCase_ = 25; + targetingTypeOneof_ = rawValue; + break; + } // case 200 + case 210: + { + java.lang.String s = input.readStringRequireUtf8(); + targetingTypeOneofCase_ = 26; + targetingTypeOneof_ = s; + break; + } // case 210 + case 216: + { + int rawValue = input.readEnum(); + platformTypeOneofCase_ = 27; + platformTypeOneof_ = rawValue; + break; + } // case 216 + case 226: + { + java.lang.String s = input.readStringRequireUtf8(); + platformTypeOneofCase_ = 28; + platformTypeOneof_ = s; + break; + } // case 226 + case 232: + { + int rawValue = input.readEnum(); + platformOneofCase_ = 29; + platformOneof_ = rawValue; + break; + } // case 232 + case 242: + { + java.lang.String s = input.readStringRequireUtf8(); + platformOneofCase_ = 30; + platformOneof_ = s; + break; + } // case 242 + case 248: + { + attributionHint_ = input.readEnum(); + bitField0_ |= 0x40000000; + break; + } // case 248 + case 258: + { + input.readMessage( + internalGetViewabilityInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x80000000; + break; + } // case 258 + case 264: + { + measurementAllowed_ = input.readBool(); + bitField1_ |= 0x00000001; + break; + } // case 264 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int eventSubtypeOneofCase_ = 0; + private java.lang.Object eventSubtypeOneof_; + + public EventSubtypeOneofCase getEventSubtypeOneofCase() { + return EventSubtypeOneofCase.forNumber(eventSubtypeOneofCase_); + } + + public Builder clearEventSubtypeOneof() { + eventSubtypeOneofCase_ = 0; + eventSubtypeOneof_ = null; + onChanged(); + return this; + } + + private int adTypeOneofCase_ = 0; + private java.lang.Object adTypeOneof_; + + public AdTypeOneofCase getAdTypeOneofCase() { + return AdTypeOneofCase.forNumber(adTypeOneofCase_); + } + + public Builder clearAdTypeOneof() { + adTypeOneofCase_ = 0; + adTypeOneof_ = null; + onChanged(); + return this; + } + + private int adFormatOneofCase_ = 0; + private java.lang.Object adFormatOneof_; + + public AdFormatOneofCase getAdFormatOneofCase() { + return AdFormatOneofCase.forNumber(adFormatOneofCase_); + } + + public Builder clearAdFormatOneof() { + adFormatOneofCase_ = 0; + adFormatOneof_ = null; + onChanged(); + return this; + } + + private int adPlacementOneofCase_ = 0; + private java.lang.Object adPlacementOneof_; + + public AdPlacementOneofCase getAdPlacementOneofCase() { + return AdPlacementOneofCase.forNumber(adPlacementOneofCase_); + } + + public Builder clearAdPlacementOneof() { + adPlacementOneofCase_ = 0; + adPlacementOneof_ = null; + onChanged(); + return this; + } + + private int targetingTypeOneofCase_ = 0; + private java.lang.Object targetingTypeOneof_; + + public TargetingTypeOneofCase getTargetingTypeOneofCase() { + return TargetingTypeOneofCase.forNumber(targetingTypeOneofCase_); + } + + public Builder clearTargetingTypeOneof() { + targetingTypeOneofCase_ = 0; + targetingTypeOneof_ = null; + onChanged(); + return this; + } + + private int platformTypeOneofCase_ = 0; + private java.lang.Object platformTypeOneof_; + + public PlatformTypeOneofCase getPlatformTypeOneofCase() { + return PlatformTypeOneofCase.forNumber(platformTypeOneofCase_); + } + + public Builder clearPlatformTypeOneof() { + platformTypeOneofCase_ = 0; + platformTypeOneof_ = null; + onChanged(); + return this; + } + + private int platformOneofCase_ = 0; + private java.lang.Object platformOneof_; + + public PlatformOneofCase getPlatformOneofCase() { + return PlatformOneofCase.forNumber(platformOneofCase_); + } + + public Builder clearPlatformOneof() { + platformOneofCase_ = 0; + platformOneof_ = null; + onChanged(); + return this; + } + + private int bitField0_; + private int bitField1_; + + private java.lang.Object advertiserId_ = ""; + + /** + * + * + *
+     * 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.AdEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEventOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEventOrBuilder.java new file mode 100644 index 000000000000..2e459242b3ed --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEventOrBuilder.java @@ -0,0 +1,1171 @@ +/* + * 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 interface AdEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.AdEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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 internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AdFormat findValueByNumber(int number) { + return AdFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.datamanager.v1.AdEventProto.getDescriptor().getEnumTypes().get(1); + } + + private static final AdFormat[] VALUES = values(); + + public static AdFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AdFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.datamanager.v1.AdFormat) +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdPlacement.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdPlacement.java new file mode 100644 index 000000000000..a2e459867d9c --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdPlacement.java @@ -0,0 +1,352 @@ +/* + * 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 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 internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AdPlacement findValueByNumber(int number) { + return AdPlacement.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.datamanager.v1.AdEventProto.getDescriptor().getEnumTypes().get(2); + } + + private static final AdPlacement[] VALUES = values(); + + public static AdPlacement valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AdPlacement(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.datamanager.v1.AdPlacement) +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdType.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdType.java new file mode 100644 index 000000000000..8986c9978274 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdType.java @@ -0,0 +1,306 @@ +/* + * 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 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 internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AdType findValueByNumber(int number) { + return AdType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.datamanager.v1.AdEventProto.getDescriptor().getEnumTypes().get(0); + } + + private static final AdType[] VALUES = values(); + + public static AdType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AdType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.datamanager.v1.AdType) +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AttributionHint.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AttributionHint.java new file mode 100644 index 000000000000..8314f6bf3c3d --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AttributionHint.java @@ -0,0 +1,191 @@ +/* + * 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 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 internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AttributionHint findValueByNumber(int number) { + return AttributionHint.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.datamanager.v1.AdEventProto.getDescriptor().getEnumTypes().get(6); + } + + private static final AttributionHint[] VALUES = values(); + + public static AttributionHint valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AttributionHint(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.datamanager.v1.AttributionHint) +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CoordinatorKeyInfo.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CoordinatorKeyInfo.java new file mode 100644 index 000000000000..67deae3a3a8a --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CoordinatorKeyInfo.java @@ -0,0 +1,596 @@ +/* + * 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/encryption_info.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +/** + * + * + *
+ * 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 + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.CoordinatorKeyInfo) + com.google.ads.datamanager.v1.CoordinatorKeyInfoOrBuilder { + 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); + } + + // Construct using com.google.ads.datamanager.v1.CoordinatorKeyInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + keyId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.EncryptionInfoProto + .internal_static_google_ads_datamanager_v1_CoordinatorKeyInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.CoordinatorKeyInfo getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.CoordinatorKeyInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.datamanager.v1.CoordinatorKeyInfo build() { + com.google.ads.datamanager.v1.CoordinatorKeyInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.CoordinatorKeyInfo buildPartial() { + com.google.ads.datamanager.v1.CoordinatorKeyInfo result = + new com.google.ads.datamanager.v1.CoordinatorKeyInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.datamanager.v1.CoordinatorKeyInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.keyId_ = keyId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.datamanager.v1.CoordinatorKeyInfo) { + return mergeFrom((com.google.ads.datamanager.v1.CoordinatorKeyInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.datamanager.v1.CoordinatorKeyInfo other) { + if (other == com.google.ads.datamanager.v1.CoordinatorKeyInfo.getDefaultInstance()) + return this; + if (!other.getKeyId().isEmpty()) { + keyId_ = other.keyId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + keyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object keyId_ = ""; + + /** + * + * + *
+     * 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CoordinatorKeyInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.CoordinatorKeyInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CoordinatorKeyInfoOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CoordinatorKeyInfoOrBuilder.java new file mode 100644 index 000000000000..6824701d1ac5 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CoordinatorKeyInfoOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/encryption_info.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +@com.google.protobuf.Generated +public interface CoordinatorKeyInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.CoordinatorKeyInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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 internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FeatureSet findValueByNumber(int number) { + return FeatureSet.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.datamanager.v1.PartnerLinkServiceProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final FeatureSet[] VALUES = values(); + + public static FeatureSet valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private FeatureSet(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.datamanager.v1.FeatureSet) +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsRequest.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsRequest.java new file mode 100644 index 000000000000..d9c7d6201c14 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsRequest.java @@ -0,0 +1,1396 @@ +/* + * 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; + +/** + * + * + *
+ * 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 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 java.util.List getAdEventsList() { + 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 java.util.List + 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 + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.IngestAdEventsRequest) + com.google.ads.datamanager.v1.IngestAdEventsRequestOrBuilder { + 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); + } + + // Construct using com.google.ads.datamanager.v1.IngestAdEventsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAdEventsFieldBuilder(); + internalGetEncryptionInfoFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (adEventsBuilder_ == null) { + adEvents_ = java.util.Collections.emptyList(); + } else { + adEvents_ = null; + adEventsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + encryptionInfo_ = null; + if (encryptionInfoBuilder_ != null) { + encryptionInfoBuilder_.dispose(); + encryptionInfoBuilder_ = null; + } + validateOnly_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.IngestionServiceProto + .internal_static_google_ads_datamanager_v1_IngestAdEventsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.IngestAdEventsRequest getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.IngestAdEventsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.datamanager.v1.IngestAdEventsRequest build() { + com.google.ads.datamanager.v1.IngestAdEventsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.IngestAdEventsRequest buildPartial() { + com.google.ads.datamanager.v1.IngestAdEventsRequest result = + new com.google.ads.datamanager.v1.IngestAdEventsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.datamanager.v1.IngestAdEventsRequest result) { + if (adEventsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + adEvents_ = java.util.Collections.unmodifiableList(adEvents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.adEvents_ = adEvents_; + } else { + result.adEvents_ = adEventsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.datamanager.v1.IngestAdEventsRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.encryptionInfo_ = + encryptionInfoBuilder_ == null ? encryptionInfo_ : encryptionInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.validateOnly_ = validateOnly_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.datamanager.v1.IngestAdEventsRequest) { + return mergeFrom((com.google.ads.datamanager.v1.IngestAdEventsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.datamanager.v1.IngestAdEventsRequest other) { + if (other == com.google.ads.datamanager.v1.IngestAdEventsRequest.getDefaultInstance()) + return this; + if (adEventsBuilder_ == null) { + if (!other.adEvents_.isEmpty()) { + if (adEvents_.isEmpty()) { + adEvents_ = other.adEvents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAdEventsIsMutable(); + adEvents_.addAll(other.adEvents_); + } + onChanged(); + } + } else { + if (!other.adEvents_.isEmpty()) { + if (adEventsBuilder_.isEmpty()) { + adEventsBuilder_.dispose(); + adEventsBuilder_ = null; + adEvents_ = other.adEvents_; + bitField0_ = (bitField0_ & ~0x00000001); + adEventsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAdEventsFieldBuilder() + : null; + } else { + adEventsBuilder_.addAllMessages(other.adEvents_); + } + } + } + if (other.hasEncryptionInfo()) { + mergeEncryptionInfo(other.getEncryptionInfo()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.ads.datamanager.v1.AdEvent m = + input.readMessage( + com.google.ads.datamanager.v1.AdEvent.parser(), extensionRegistry); + if (adEventsBuilder_ == null) { + ensureAdEventsIsMutable(); + adEvents_.add(m); + } else { + adEventsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetEncryptionInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List adEvents_ = + java.util.Collections.emptyList(); + + private void ensureAdEventsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + adEvents_ = new java.util.ArrayList(adEvents_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.ads.datamanager.v1.AdEvent, + com.google.ads.datamanager.v1.AdEvent.Builder, + com.google.ads.datamanager.v1.AdEventOrBuilder> + adEventsBuilder_; + + /** + * + * + *
+     * 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 getAdEventsList() { + if (adEventsBuilder_ == null) { + return java.util.Collections.unmodifiableList(adEvents_); + } else { + return adEventsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * 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 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 + 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 getAdEventsBuilderList() { + return internalGetAdEventsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.ads.datamanager.v1.AdEvent, + com.google.ads.datamanager.v1.AdEvent.Builder, + com.google.ads.datamanager.v1.AdEventOrBuilder> + internalGetAdEventsFieldBuilder() { + if (adEventsBuilder_ == null) { + adEventsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.ads.datamanager.v1.AdEvent, + com.google.ads.datamanager.v1.AdEvent.Builder, + com.google.ads.datamanager.v1.AdEventOrBuilder>( + adEvents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + adEvents_ = null; + } + return adEventsBuilder_; + } + + private com.google.ads.datamanager.v1.EncryptionInfo encryptionInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.EncryptionInfo, + com.google.ads.datamanager.v1.EncryptionInfo.Builder, + com.google.ads.datamanager.v1.EncryptionInfoOrBuilder> + encryptionInfoBuilder_; + + /** + * + * + *
+     * 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IngestAdEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.IngestAdEventsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsRequestOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsRequestOrBuilder.java new file mode 100644 index 000000000000..6d600a7fe862 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsRequestOrBuilder.java @@ -0,0 +1,153 @@ +/* + * 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; + +@com.google.protobuf.Generated +public interface IngestAdEventsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.IngestAdEventsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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 getAdEventsList(); + + /** + * + * + *
+   * 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 + 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 + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.IngestAdEventsResponse) + com.google.ads.datamanager.v1.IngestAdEventsResponseOrBuilder { + 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); + } + + // Construct using com.google.ads.datamanager.v1.IngestAdEventsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.IngestionServiceProto + .internal_static_google_ads_datamanager_v1_IngestAdEventsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.IngestAdEventsResponse getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.IngestAdEventsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.datamanager.v1.IngestAdEventsResponse build() { + com.google.ads.datamanager.v1.IngestAdEventsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.IngestAdEventsResponse buildPartial() { + com.google.ads.datamanager.v1.IngestAdEventsResponse result = + new com.google.ads.datamanager.v1.IngestAdEventsResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.datamanager.v1.IngestAdEventsResponse) { + return mergeFrom((com.google.ads.datamanager.v1.IngestAdEventsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.datamanager.v1.IngestAdEventsResponse other) { + if (other == com.google.ads.datamanager.v1.IngestAdEventsResponse.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.IngestAdEventsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.IngestAdEventsResponse) + private static final com.google.ads.datamanager.v1.IngestAdEventsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.datamanager.v1.IngestAdEventsResponse(); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IngestAdEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.IngestAdEventsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsResponseOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsResponseOrBuilder.java new file mode 100644 index 000000000000..43f7c86ae055 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsResponseOrBuilder.java @@ -0,0 +1,27 @@ +/* + * 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; + +@com.google.protobuf.Generated +public interface IngestAdEventsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.IngestAdEventsResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java index aaaf7d0a7d3e..be5d49edc1d8 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java @@ -64,6 +64,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_ads_datamanager_v1_IngestEventsResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_ads_datamanager_v1_IngestEventsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_datamanager_v1_IngestAdEventsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_ads_datamanager_v1_IngestAdEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_datamanager_v1_IngestAdEventsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_ads_datamanager_v1_IngestAdEventsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_datamanager_v1_RetrieveRequestStatusRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -83,86 +91,97 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n1google/ads/datamanager/v1/ingestion_se" + "rvice.proto\022\031google.ads.datamanager.v1\032(" - + "google/ads/datamanager/v1/audience.proto" - + "\032\'google/ads/datamanager/v1/consent.prot" - + "o\032+google/ads/datamanager/v1/destination" - + ".proto\032/google/ads/datamanager/v1/encryp" - + "tion_info.proto\032%google/ads/datamanager/" - + "v1/event.proto\032>google/ads/datamanager/v" - + "1/request_status_per_destination.proto\0320" - + "google/ads/datamanager/v1/terms_of_servi" - + "ce.proto\032\034google/api/annotations.proto\032\027" - + "google/api/client.proto\032\037google/api/fiel" - + "d_behavior.proto\"\320\003\n\034IngestAudienceMembe" - + "rsRequest\022A\n\014destinations\030\001 \003(\0132&.google" - + ".ads.datamanager.v1.DestinationB\003\340A\002\022H\n\020" - + "audience_members\030\002 \003(\0132).google.ads.data" - + "manager.v1.AudienceMemberB\003\340A\002\0228\n\007consen" - + "t\030\003 \001(\0132\".google.ads.datamanager.v1.Cons" - + "entB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001\022:\n\010" - + "encoding\030\005 \001(\0162#.google.ads.datamanager." - + "v1.EncodingB\003\340A\001\022G\n\017encryption_info\030\006 \001(" - + "\0132).google.ads.datamanager.v1.Encryption" - + "InfoB\003\340A\001\022H\n\020terms_of_service\030\007 \001(\0132).go" - + "ogle.ads.datamanager.v1.TermsOfServiceB\003" - + "\340A\001\"3\n\035IngestAudienceMembersResponse\022\022\n\n" - + "request_id\030\001 \001(\t\"\314\002\n\034RemoveAudienceMembe" - + "rsRequest\022A\n\014destinations\030\001 \003(\0132&.google" - + ".ads.datamanager.v1.DestinationB\003\340A\002\022H\n\020" - + "audience_members\030\002 \003(\0132).google.ads.data" - + "manager.v1.AudienceMemberB\003\340A\002\022\032\n\rvalida" - + "te_only\030\003 \001(\010B\003\340A\001\022:\n\010encoding\030\004 \001(\0162#.g" - + "oogle.ads.datamanager.v1.EncodingB\003\340A\001\022G" - + "\n\017encryption_info\030\005 \001(\0132).google.ads.dat" - + "amanager.v1.EncryptionInfoB\003\340A\001\"3\n\035Remov" - + "eAudienceMembersResponse\022\022\n\nrequest_id\030\001" - + " \001(\t\"\352\002\n\023IngestEventsRequest\022A\n\014destinat" - + "ions\030\001 \003(\0132&.google.ads.datamanager.v1.D" - + "estinationB\003\340A\002\0225\n\006events\030\002 \003(\0132 .google" - + ".ads.datamanager.v1.EventB\003\340A\002\0228\n\007consen" - + "t\030\003 \001(\0132\".google.ads.datamanager.v1.Cons" - + "entB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001\022:\n\010" - + "encoding\030\005 \001(\0162#.google.ads.datamanager." - + "v1.EncodingB\003\340A\001\022G\n\017encryption_info\030\006 \001(" - + "\0132).google.ads.datamanager.v1.Encryption" - + "InfoB\003\340A\001\"*\n\024IngestEventsResponse\022\022\n\nreq" - + "uest_id\030\001 \001(\t\"7\n\034RetrieveRequestStatusRe" - + "quest\022\027\n\nrequest_id\030\001 \001(\tB\003\340A\002\"\177\n\035Retrie" - + "veRequestStatusResponse\022^\n\036request_statu" - + "s_per_destination\030\001 \003(\01326.google.ads.dat" - + "amanager.v1.RequestStatusPerDestination*" - + "9\n\010Encoding\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\007\n" - + "\003HEX\020\001\022\n\n\006BASE64\020\0022\210\006\n\020IngestionService\022" - + "\261\001\n\025IngestAudienceMembers\0227.google.ads.d" - + "atamanager.v1.IngestAudienceMembersReque" - + "st\0328.google.ads.datamanager.v1.IngestAud" - + "ienceMembersResponse\"%\202\323\344\223\002\037\"\032/v1/audien" - + "ceMembers:ingest:\001*\022\261\001\n\025RemoveAudienceMe" - + "mbers\0227.google.ads.datamanager.v1.Remove" - + "AudienceMembersRequest\0328.google.ads.data" - + "manager.v1.RemoveAudienceMembersResponse" - + "\"%\202\323\344\223\002\037\"\032/v1/audienceMembers:remove:\001*\022" - + "\215\001\n\014IngestEvents\022..google.ads.datamanage" - + "r.v1.IngestEventsRequest\032/.google.ads.da" - + "tamanager.v1.IngestEventsResponse\"\034\202\323\344\223\002" - + "\026\"\021/v1/events:ingest:\001*\022\256\001\n\025RetrieveRequ" - + "estStatus\0227.google.ads.datamanager.v1.Re" - + "trieveRequestStatusRequest\0328.google.ads." - + "datamanager.v1.RetrieveRequestStatusResp" - + "onse\"\"\202\323\344\223\002\034\022\032/v1/requestStatus:retrieve" - + "\032K\312A\032datamanager.googleapis.com\322A+https:" - + "//www.googleapis.com/auth/datamanagerB\322\001" - + "\n\035com.google.ads.datamanager.v1B\025Ingesti" - + "onServiceProtoP\001ZAcloud.google.com/go/da" - + "tamanager/apiv1/datamanagerpb;datamanage" - + "rpb\252\002\031Google.Ads.DataManager.V1\312\002\031Google" - + "\\Ads\\DataManager\\V1\352\002\034Google::Ads::DataM" - + "anager::V1b\006proto3" + + "google/ads/datamanager/v1/ad_event.proto" + + "\032(google/ads/datamanager/v1/audience.pro" + + "to\032\'google/ads/datamanager/v1/consent.pr" + + "oto\032+google/ads/datamanager/v1/destinati" + + "on.proto\032/google/ads/datamanager/v1/encr" + + "yption_info.proto\032%google/ads/datamanage" + + "r/v1/event.proto\032>google/ads/datamanager" + + "/v1/request_status_per_destination.proto" + + "\0320google/ads/datamanager/v1/terms_of_ser" + + "vice.proto\032\034google/api/annotations.proto" + + "\032\027google/api/client.proto\032\037google/api/fi" + + "eld_behavior.proto\"\320\003\n\034IngestAudienceMem" + + "bersRequest\022A\n\014destinations\030\001 \003(\0132&.goog" + + "le.ads.datamanager.v1.DestinationB\003\340A\002\022H" + + "\n\020audience_members\030\002 \003(\0132).google.ads.da" + + "tamanager.v1.AudienceMemberB\003\340A\002\0228\n\007cons" + + "ent\030\003 \001(\0132\".google.ads.datamanager.v1.Co" + + "nsentB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001\022:" + + "\n\010encoding\030\005 \001(\0162#.google.ads.datamanage" + + "r.v1.EncodingB\003\340A\001\022G\n\017encryption_info\030\006 " + + "\001(\0132).google.ads.datamanager.v1.Encrypti" + + "onInfoB\003\340A\001\022H\n\020terms_of_service\030\007 \001(\0132)." + + "google.ads.datamanager.v1.TermsOfService" + + "B\003\340A\001\"3\n\035IngestAudienceMembersResponse\022\022" + + "\n\nrequest_id\030\001 \001(\t\"\314\002\n\034RemoveAudienceMem" + + "bersRequest\022A\n\014destinations\030\001 \003(\0132&.goog" + + "le.ads.datamanager.v1.DestinationB\003\340A\002\022H" + + "\n\020audience_members\030\002 \003(\0132).google.ads.da" + + "tamanager.v1.AudienceMemberB\003\340A\002\022\032\n\rvali" + + "date_only\030\003 \001(\010B\003\340A\001\022:\n\010encoding\030\004 \001(\0162#" + + ".google.ads.datamanager.v1.EncodingB\003\340A\001" + + "\022G\n\017encryption_info\030\005 \001(\0132).google.ads.d" + + "atamanager.v1.EncryptionInfoB\003\340A\001\"3\n\035Rem" + + "oveAudienceMembersResponse\022\022\n\nrequest_id" + + "\030\001 \001(\t\"\352\002\n\023IngestEventsRequest\022A\n\014destin" + + "ations\030\001 \003(\0132&.google.ads.datamanager.v1" + + ".DestinationB\003\340A\002\0225\n\006events\030\002 \003(\0132 .goog" + + "le.ads.datamanager.v1.EventB\003\340A\002\0228\n\007cons" + + "ent\030\003 \001(\0132\".google.ads.datamanager.v1.Co" + + "nsentB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001\022:" + + "\n\010encoding\030\005 \001(\0162#.google.ads.datamanage" + + "r.v1.EncodingB\003\340A\001\022G\n\017encryption_info\030\006 " + + "\001(\0132).google.ads.datamanager.v1.Encrypti" + + "onInfoB\003\340A\001\"*\n\024IngestEventsResponse\022\022\n\nr" + + "equest_id\030\001 \001(\t\"\270\001\n\025IngestAdEventsReques" + + "t\022:\n\tad_events\030\001 \003(\0132\".google.ads.datama" + + "nager.v1.AdEventB\003\340A\002\022G\n\017encryption_info" + + "\030\002 \001(\0132).google.ads.datamanager.v1.Encry" + + "ptionInfoB\003\340A\001\022\032\n\rvalidate_only\030\003 \001(\010B\003\340" + + "A\001\"\030\n\026IngestAdEventsResponse\"7\n\034Retrieve" + + "RequestStatusRequest\022\027\n\nrequest_id\030\001 \001(\t" + + "B\003\340A\002\"\177\n\035RetrieveRequestStatusResponse\022^" + + "\n\036request_status_per_destination\030\001 \003(\01326" + + ".google.ads.datamanager.v1.RequestStatus" + + "PerDestination*9\n\010Encoding\022\030\n\024ENCODING_U" + + "NSPECIFIED\020\000\022\007\n\003HEX\020\001\022\n\n\006BASE64\020\0022\240\007\n\020In" + + "gestionService\022\261\001\n\025IngestAudienceMembers" + + "\0227.google.ads.datamanager.v1.IngestAudie" + + "nceMembersRequest\0328.google.ads.datamanag" + + "er.v1.IngestAudienceMembersResponse\"%\202\323\344" + + "\223\002\037\"\032/v1/audienceMembers:ingest:\001*\022\261\001\n\025R" + + "emoveAudienceMembers\0227.google.ads.datama" + + "nager.v1.RemoveAudienceMembersRequest\0328." + + "google.ads.datamanager.v1.RemoveAudience" + + "MembersResponse\"%\202\323\344\223\002\037\"\032/v1/audienceMem" + + "bers:remove:\001*\022\215\001\n\014IngestEvents\022..google" + + ".ads.datamanager.v1.IngestEventsRequest\032" + + "/.google.ads.datamanager.v1.IngestEvents" + + "Response\"\034\202\323\344\223\002\026\"\021/v1/events:ingest:\001*\022\225" + + "\001\n\016IngestAdEvents\0220.google.ads.datamanag" + + "er.v1.IngestAdEventsRequest\0321.google.ads" + + ".datamanager.v1.IngestAdEventsResponse\"\036" + + "\202\323\344\223\002\030\"\023/v1/adEvents:ingest:\001*\022\256\001\n\025Retri" + + "eveRequestStatus\0227.google.ads.datamanage" + + "r.v1.RetrieveRequestStatusRequest\0328.goog" + + "le.ads.datamanager.v1.RetrieveRequestSta" + + "tusResponse\"\"\202\323\344\223\002\034\022\032/v1/requestStatus:r" + + "etrieve\032K\312A\032datamanager.googleapis.com\322A" + + "+https://www.googleapis.com/auth/dataman" + + "agerB\322\001\n\035com.google.ads.datamanager.v1B\025" + + "IngestionServiceProtoP\001ZAcloud.google.co" + + "m/go/datamanager/apiv1/datamanagerpb;dat" + + "amanagerpb\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( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.datamanager.v1.AdEventProto.getDescriptor(), com.google.ads.datamanager.v1.AudienceProto.getDescriptor(), com.google.ads.datamanager.v1.ConsentProto.getDescriptor(), com.google.ads.datamanager.v1.DestinationProto.getDescriptor(), @@ -228,8 +247,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "RequestId", }); - internal_static_google_ads_datamanager_v1_RetrieveRequestStatusRequest_descriptor = + internal_static_google_ads_datamanager_v1_IngestAdEventsRequest_descriptor = getDescriptor().getMessageType(6); + internal_static_google_ads_datamanager_v1_IngestAdEventsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_ads_datamanager_v1_IngestAdEventsRequest_descriptor, + new java.lang.String[] { + "AdEvents", "EncryptionInfo", "ValidateOnly", + }); + internal_static_google_ads_datamanager_v1_IngestAdEventsResponse_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_ads_datamanager_v1_IngestAdEventsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_ads_datamanager_v1_IngestAdEventsResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_ads_datamanager_v1_RetrieveRequestStatusRequest_descriptor = + getDescriptor().getMessageType(8); internal_static_google_ads_datamanager_v1_RetrieveRequestStatusRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_RetrieveRequestStatusRequest_descriptor, @@ -237,7 +270,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestId", }); internal_static_google_ads_datamanager_v1_RetrieveRequestStatusResponse_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(9); internal_static_google_ads_datamanager_v1_RetrieveRequestStatusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_RetrieveRequestStatusResponse_descriptor, @@ -245,6 +278,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestStatusPerDestination", }); descriptor.resolveAllFeaturesImmutable(); + com.google.ads.datamanager.v1.AdEventProto.getDescriptor(); com.google.ads.datamanager.v1.AudienceProto.getDescriptor(); com.google.ads.datamanager.v1.ConsentProto.getDescriptor(); com.google.ads.datamanager.v1.DestinationProto.getDescriptor(); diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MediaQuartile.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MediaQuartile.java new file mode 100644 index 000000000000..f10745307b70 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MediaQuartile.java @@ -0,0 +1,260 @@ +/* + * 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; + +/** + * + * + *
+ * 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 internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MediaQuartile findValueByNumber(int number) { + return MediaQuartile.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.datamanager.v1.ViewabilityInfoProto.getDescriptor().getEnumTypes().get(1); + } + + private static final MediaQuartile[] VALUES = values(); + + public static MediaQuartile valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MediaQuartile(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.datamanager.v1.MediaQuartile) +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerCustomerAccount.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerCustomerAccount.java new file mode 100644 index 000000000000..7a639085e49e --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerCustomerAccount.java @@ -0,0 +1,981 @@ +/* + * 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 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 + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.PartnerCustomerAccount) + com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder { + 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); + } + + // Construct using com.google.ads.datamanager.v1.PartnerCustomerAccount.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + accountId_ = ""; + accountName_ = ""; + accountType_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.PartnerLinkServiceProto + .internal_static_google_ads_datamanager_v1_PartnerCustomerAccount_descriptor; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerCustomerAccount getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.PartnerCustomerAccount.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerCustomerAccount build() { + com.google.ads.datamanager.v1.PartnerCustomerAccount result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerCustomerAccount buildPartial() { + com.google.ads.datamanager.v1.PartnerCustomerAccount result = + new com.google.ads.datamanager.v1.PartnerCustomerAccount(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.datamanager.v1.PartnerCustomerAccount result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.accountId_ = accountId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.accountName_ = accountName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.accountType_ = accountType_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.datamanager.v1.PartnerCustomerAccount) { + return mergeFrom((com.google.ads.datamanager.v1.PartnerCustomerAccount) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.datamanager.v1.PartnerCustomerAccount other) { + if (other == com.google.ads.datamanager.v1.PartnerCustomerAccount.getDefaultInstance()) + return this; + if (!other.getAccountId().isEmpty()) { + accountId_ = other.accountId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAccountName().isEmpty()) { + accountName_ = other.accountName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getAccountType().isEmpty()) { + accountType_ = other.accountType_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + accountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + accountName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + accountType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object 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. + */ + 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PartnerCustomerAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerCustomerAccount getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerCustomerAccountOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerCustomerAccountOrBuilder.java new file mode 100644 index 000000000000..4cb27fa98ff0 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerCustomerAccountOrBuilder.java @@ -0,0 +1,108 @@ +/* + * 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; + +@com.google.protobuf.Generated +public interface PartnerCustomerAccountOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.PartnerCustomerAccount) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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 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 java.util.List + getImplicitAccountsList() { + 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 java.util.List + 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 + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.PartnerLinkMetadata) + com.google.ads.datamanager.v1.PartnerLinkMetadataOrBuilder { + 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); + } + + // Construct using com.google.ads.datamanager.v1.PartnerLinkMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (implicitAccountsBuilder_ == null) { + implicitAccounts_ = java.util.Collections.emptyList(); + } else { + implicitAccounts_ = null; + implicitAccountsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.PartnerLinkServiceProto + .internal_static_google_ads_datamanager_v1_PartnerLinkMetadata_descriptor; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerLinkMetadata getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.PartnerLinkMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerLinkMetadata build() { + com.google.ads.datamanager.v1.PartnerLinkMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerLinkMetadata buildPartial() { + com.google.ads.datamanager.v1.PartnerLinkMetadata result = + new com.google.ads.datamanager.v1.PartnerLinkMetadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.datamanager.v1.PartnerLinkMetadata result) { + if (implicitAccountsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + implicitAccounts_ = java.util.Collections.unmodifiableList(implicitAccounts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.implicitAccounts_ = implicitAccounts_; + } else { + result.implicitAccounts_ = implicitAccountsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.datamanager.v1.PartnerLinkMetadata result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.datamanager.v1.PartnerLinkMetadata) { + return mergeFrom((com.google.ads.datamanager.v1.PartnerLinkMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.datamanager.v1.PartnerLinkMetadata other) { + if (other == com.google.ads.datamanager.v1.PartnerLinkMetadata.getDefaultInstance()) + return this; + if (implicitAccountsBuilder_ == null) { + if (!other.implicitAccounts_.isEmpty()) { + if (implicitAccounts_.isEmpty()) { + implicitAccounts_ = other.implicitAccounts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureImplicitAccountsIsMutable(); + implicitAccounts_.addAll(other.implicitAccounts_); + } + onChanged(); + } + } else { + if (!other.implicitAccounts_.isEmpty()) { + if (implicitAccountsBuilder_.isEmpty()) { + implicitAccountsBuilder_.dispose(); + implicitAccountsBuilder_ = null; + implicitAccounts_ = other.implicitAccounts_; + bitField0_ = (bitField0_ & ~0x00000001); + implicitAccountsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetImplicitAccountsFieldBuilder() + : null; + } else { + implicitAccountsBuilder_.addAllMessages(other.implicitAccounts_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.ads.datamanager.v1.PartnerCustomerAccount m = + input.readMessage( + com.google.ads.datamanager.v1.PartnerCustomerAccount.parser(), + extensionRegistry); + if (implicitAccountsBuilder_ == null) { + ensureImplicitAccountsIsMutable(); + implicitAccounts_.add(m); + } else { + implicitAccountsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List implicitAccounts_ = + java.util.Collections.emptyList(); + + private void ensureImplicitAccountsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + implicitAccounts_ = + new java.util.ArrayList( + implicitAccounts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.ads.datamanager.v1.PartnerCustomerAccount, + com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder, + com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder> + implicitAccountsBuilder_; + + /** + * + * + *
+     * Optional. The list of implicit accounts.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getImplicitAccountsList() { + if (implicitAccountsBuilder_ == null) { + return java.util.Collections.unmodifiableList(implicitAccounts_); + } else { + return implicitAccountsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * 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 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 + 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 + getImplicitAccountsBuilderList() { + return internalGetImplicitAccountsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.ads.datamanager.v1.PartnerCustomerAccount, + com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder, + com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder> + internalGetImplicitAccountsFieldBuilder() { + if (implicitAccountsBuilder_ == null) { + implicitAccountsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.ads.datamanager.v1.PartnerCustomerAccount, + com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder, + com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder>( + implicitAccounts_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + implicitAccounts_ = null; + } + return implicitAccountsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.PartnerLinkMetadata) + } + + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.PartnerLinkMetadata) + private static final com.google.ads.datamanager.v1.PartnerLinkMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.datamanager.v1.PartnerLinkMetadata(); + } + + public static com.google.ads.datamanager.v1.PartnerLinkMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PartnerLinkMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerLinkMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkMetadataOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkMetadataOrBuilder.java new file mode 100644 index 000000000000..8968f8349543 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkMetadataOrBuilder.java @@ -0,0 +1,95 @@ +/* + * 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; + +@com.google.protobuf.Generated +public interface PartnerLinkMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.PartnerLinkMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The list of implicit accounts.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getImplicitAccountsList(); + + /** + * + * + *
+   * 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 + 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 internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Platform findValueByNumber(int number) { + return Platform.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.datamanager.v1.AdEventProto.getDescriptor().getEnumTypes().get(5); + } + + private static final Platform[] VALUES = values(); + + public static Platform valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Platform(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.datamanager.v1.Platform) +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PlatformType.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PlatformType.java new file mode 100644 index 000000000000..8be32849c2b4 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PlatformType.java @@ -0,0 +1,260 @@ +/* + * 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 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 internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PlatformType findValueByNumber(int number) { + return PlatformType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.datamanager.v1.AdEventProto.getDescriptor().getEnumTypes().get(4); + } + + private static final PlatformType[] VALUES = values(); + + public static PlatformType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PlatformType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.datamanager.v1.PlatformType) +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProductAccount.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProductAccount.java index 255205f00259..77419700a60d 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProductAccount.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProductAccount.java @@ -464,13 +464,13 @@ public com.google.protobuf.ByteString getAccountIdBytes() { * * *
-   * 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 internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TargetingType findValueByNumber(int number) { + return TargetingType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.datamanager.v1.AdEventProto.getDescriptor().getEnumTypes().get(3); + } + + private static final TargetingType[] VALUES = values(); + + public static TargetingType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TargetingType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.datamanager.v1.TargetingType) +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewType.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewType.java new file mode 100644 index 000000000000..0df0028928e6 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewType.java @@ -0,0 +1,191 @@ +/* + * 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; + +/** + * + * + *
+ * 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 internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ViewType findValueByNumber(int number) { + return ViewType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.datamanager.v1.ViewabilityInfoProto.getDescriptor().getEnumTypes().get(0); + } + + private static final ViewType[] VALUES = values(); + + public static ViewType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ViewType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.datamanager.v1.ViewType) +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewabilityInfo.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewabilityInfo.java new file mode 100644 index 000000000000..653ab9493b17 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewabilityInfo.java @@ -0,0 +1,1970 @@ +/* + * 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; + +/** + * + * + *
+ * 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 + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.ViewabilityInfo) + com.google.ads.datamanager.v1.ViewabilityInfoOrBuilder { + 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); + } + + // Construct using com.google.ads.datamanager.v1.ViewabilityInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetViewableDurationFieldBuilder(); + internalGetMediaDurationFieldBuilder(); + internalGetPlaybackDurationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + viewType_ = 0; + viewablePercent_ = 0; + viewableDuration_ = null; + if (viewableDurationBuilder_ != null) { + viewableDurationBuilder_.dispose(); + viewableDurationBuilder_ = null; + } + mediaSkippable_ = false; + mediaQuartile_ = 0; + mediaDuration_ = null; + if (mediaDurationBuilder_ != null) { + mediaDurationBuilder_.dispose(); + mediaDurationBuilder_ = null; + } + mediaVolumePercent_ = 0; + playbackDuration_ = null; + if (playbackDurationBuilder_ != null) { + playbackDurationBuilder_.dispose(); + playbackDurationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.ViewabilityInfoProto + .internal_static_google_ads_datamanager_v1_ViewabilityInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.ViewabilityInfo getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.ViewabilityInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.datamanager.v1.ViewabilityInfo build() { + com.google.ads.datamanager.v1.ViewabilityInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.ViewabilityInfo buildPartial() { + com.google.ads.datamanager.v1.ViewabilityInfo result = + new com.google.ads.datamanager.v1.ViewabilityInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.datamanager.v1.ViewabilityInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.viewType_ = viewType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.viewablePercent_ = viewablePercent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.viewableDuration_ = + viewableDurationBuilder_ == null ? viewableDuration_ : viewableDurationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.mediaSkippable_ = mediaSkippable_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.mediaQuartile_ = mediaQuartile_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.mediaDuration_ = + mediaDurationBuilder_ == null ? mediaDuration_ : mediaDurationBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.mediaVolumePercent_ = mediaVolumePercent_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.playbackDuration_ = + playbackDurationBuilder_ == null ? playbackDuration_ : playbackDurationBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.datamanager.v1.ViewabilityInfo) { + return mergeFrom((com.google.ads.datamanager.v1.ViewabilityInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.datamanager.v1.ViewabilityInfo other) { + if (other == com.google.ads.datamanager.v1.ViewabilityInfo.getDefaultInstance()) return this; + if (other.viewType_ != 0) { + setViewTypeValue(other.getViewTypeValue()); + } + if (other.getViewablePercent() != 0) { + setViewablePercent(other.getViewablePercent()); + } + if (other.hasViewableDuration()) { + mergeViewableDuration(other.getViewableDuration()); + } + if (other.getMediaSkippable() != false) { + setMediaSkippable(other.getMediaSkippable()); + } + if (other.mediaQuartile_ != 0) { + setMediaQuartileValue(other.getMediaQuartileValue()); + } + if (other.hasMediaDuration()) { + mergeMediaDuration(other.getMediaDuration()); + } + if (other.getMediaVolumePercent() != 0) { + setMediaVolumePercent(other.getMediaVolumePercent()); + } + if (other.hasPlaybackDuration()) { + mergePlaybackDuration(other.getPlaybackDuration()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + viewType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + viewablePercent_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + internalGetViewableDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + mediaSkippable_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + mediaQuartile_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + input.readMessage( + internalGetMediaDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + mediaVolumePercent_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: + { + input.readMessage( + internalGetPlaybackDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private 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]; + * + * + * @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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ViewabilityInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.ViewabilityInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewabilityInfoOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewabilityInfoOrBuilder.java new file mode 100644 index 000000000000..7ed0e0a15a0a --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewabilityInfoOrBuilder.java @@ -0,0 +1,257 @@ +/* + * 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 interface ViewabilityInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.ViewabilityInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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 ArrayList()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setValidateOnly(true) + .build(); + ApiFuture future = + ingestionServiceClient.ingestAdEventsCallable().futureCall(request); + // Do something. + IngestAdEventsResponse response = future.get(); + } + } +} +// [END datamanager_v1_generated_IngestionService_IngestAdEvents_async] diff --git a/java-datamanager/samples/snippets/generated/com/google/ads/datamanager/v1/ingestionservice/ingestadevents/SyncIngestAdEvents.java b/java-datamanager/samples/snippets/generated/com/google/ads/datamanager/v1/ingestionservice/ingestadevents/SyncIngestAdEvents.java new file mode 100644 index 000000000000..547cfbf78820 --- /dev/null +++ b/java-datamanager/samples/snippets/generated/com/google/ads/datamanager/v1/ingestionservice/ingestadevents/SyncIngestAdEvents.java @@ -0,0 +1,50 @@ +/* + * 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_sync] +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 java.util.ArrayList; + +public class SyncIngestAdEvents { + + public static void main(String[] args) throws Exception { + syncIngestAdEvents(); + } + + public static void syncIngestAdEvents() 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 ArrayList()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setValidateOnly(true) + .build(); + IngestAdEventsResponse response = ingestionServiceClient.ingestAdEvents(request); + } + } +} +// [END datamanager_v1_generated_IngestionService_IngestAdEvents_sync] diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesClient.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesClient.java index b2f72bf1b0a3..00a59869cb0b 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesClient.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesClient.java @@ -1217,6 +1217,104 @@ * * * + *

ListAgentGateways + *

Lists AgentGateways in a given project and location. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listAgentGateways(ListAgentGatewaysRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listAgentGateways(LocationName parent) + *

  • listAgentGateways(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listAgentGatewaysPagedCallable() + *

  • listAgentGatewaysCallable() + *

+ * + * + * + *

GetAgentGateway + *

Gets details of a single AgentGateway. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getAgentGateway(GetAgentGatewayRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getAgentGateway(AgentGatewayName name) + *

  • getAgentGateway(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getAgentGatewayCallable() + *

+ * + * + * + *

CreateAgentGateway + *

Creates a new AgentGateway in a given project and location. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createAgentGatewayAsync(CreateAgentGatewayRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • createAgentGatewayAsync(LocationName parent, AgentGateway agentGateway, String agentGatewayId) + *

  • createAgentGatewayAsync(String parent, AgentGateway agentGateway, String agentGatewayId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createAgentGatewayOperationCallable() + *

  • createAgentGatewayCallable() + *

+ * + * + * + *

UpdateAgentGateway + *

Updates the parameters of a single AgentGateway. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateAgentGatewayAsync(UpdateAgentGatewayRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • updateAgentGatewayAsync(AgentGateway agentGateway, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateAgentGatewayOperationCallable() + *

  • updateAgentGatewayCallable() + *

+ * + * + * + *

DeleteAgentGateway + *

Deletes a single AgentGateway. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteAgentGatewayAsync(DeleteAgentGatewayRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • deleteAgentGatewayAsync(AgentGatewayName name) + *

  • deleteAgentGatewayAsync(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteAgentGatewayOperationCallable() + *

  • deleteAgentGatewayCallable() + *

+ * + * + * *

ListLocations *

Lists information about the supported locations for this service. * @@ -1444,7 +1542,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * } * * @param parent Required. The project and location from which the EndpointPolicies should be - * listed, specified in the format `projects/*/locations/global`. + * listed, specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEndpointPoliciesPagedResponse listEndpointPolicies(LocationName parent) { @@ -1477,7 +1575,7 @@ public final ListEndpointPoliciesPagedResponse listEndpointPolicies(LocationName * } * * @param parent Required. The project and location from which the EndpointPolicies should be - * listed, specified in the format `projects/*/locations/global`. + * listed, specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEndpointPoliciesPagedResponse listEndpointPolicies(String parent) { @@ -1616,7 +1714,7 @@ public final ListEndpointPoliciesPagedResponse listEndpointPolicies( * } * * @param name Required. A name of the EndpointPolicy to get. Must be in the format - * `projects/*/locations/global/endpointPolicies/*`. + * `projects/*/locations/*/endpointPolicies/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EndpointPolicy getEndpointPolicy(EndpointPolicyName name) { @@ -1647,7 +1745,7 @@ public final EndpointPolicy getEndpointPolicy(EndpointPolicyName name) { * } * * @param name Required. A name of the EndpointPolicy to get. Must be in the format - * `projects/*/locations/global/endpointPolicies/*`. + * `projects/*/locations/*/endpointPolicies/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EndpointPolicy getEndpointPolicy(String name) { @@ -1737,7 +1835,7 @@ public final UnaryCallable getEndpoint * } * * @param parent Required. The parent resource of the EndpointPolicy. Must be in the format - * `projects/*/locations/global`. + * `projects/*/locations/*`. * @param endpointPolicy Required. EndpointPolicy resource to be created. * @param endpointPolicyId Required. Short name of the EndpointPolicy resource to be created. E.g. * "CustomECS". @@ -1778,7 +1876,7 @@ public final OperationFuture createEndpointPo * } * * @param parent Required. The parent resource of the EndpointPolicy. Must be in the format - * `projects/*/locations/global`. + * `projects/*/locations/*`. * @param endpointPolicy Required. EndpointPolicy resource to be created. * @param endpointPolicyId Required. Short name of the EndpointPolicy resource to be created. E.g. * "CustomECS". @@ -2035,7 +2133,7 @@ public final OperationFuture updateEndpointPo * } * * @param name Required. A name of the EndpointPolicy to delete. Must be in the format - * `projects/*/locations/global/endpointPolicies/*`. + * `projects/*/locations/*/endpointPolicies/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteEndpointPolicyAsync( @@ -2067,7 +2165,7 @@ public final OperationFuture deleteEndpointPolicyAsync * } * * @param name Required. A name of the EndpointPolicy to delete. Must be in the format - * `projects/*/locations/global/endpointPolicies/*`. + * `projects/*/locations/*/endpointPolicies/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteEndpointPolicyAsync(String name) { @@ -4246,7 +4344,7 @@ public final UnaryCallable deleteGatewayCallabl * } * * @param parent Required. The project and location from which the GrpcRoutes should be listed, - * specified in the format `projects/*/locations/global`. + * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListGrpcRoutesPagedResponse listGrpcRoutes(LocationName parent) { @@ -4278,7 +4376,7 @@ public final ListGrpcRoutesPagedResponse listGrpcRoutes(LocationName parent) { * } * * @param parent Required. The project and location from which the GrpcRoutes should be listed, - * specified in the format `projects/*/locations/global`. + * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListGrpcRoutesPagedResponse listGrpcRoutes(String parent) { @@ -4413,7 +4511,7 @@ public final ListGrpcRoutesPagedResponse listGrpcRoutes(ListGrpcRoutesRequest re * } * * @param name Required. A name of the GrpcRoute to get. Must be in the format - * `projects/*/locations/global/grpcRoutes/*`. + * `projects/*/locations/*/grpcRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final GrpcRoute getGrpcRoute(GrpcRouteName name) { @@ -4441,7 +4539,7 @@ public final GrpcRoute getGrpcRoute(GrpcRouteName name) { * } * * @param name Required. A name of the GrpcRoute to get. Must be in the format - * `projects/*/locations/global/grpcRoutes/*`. + * `projects/*/locations/*/grpcRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final GrpcRoute getGrpcRoute(String name) { @@ -4527,7 +4625,7 @@ public final UnaryCallable getGrpcRouteCallable( * } * * @param parent Required. The parent resource of the GrpcRoute. Must be in the format - * `projects/*/locations/global`. + * `projects/*/locations/*`. * @param grpcRoute Required. GrpcRoute resource to be created. * @param grpcRouteId Required. Short name of the GrpcRoute resource to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -4565,7 +4663,7 @@ public final OperationFuture createGrpcRouteAsync( * } * * @param parent Required. The parent resource of the GrpcRoute. Must be in the format - * `projects/*/locations/global`. + * `projects/*/locations/*`. * @param grpcRoute Required. GrpcRoute resource to be created. * @param grpcRouteId Required. Short name of the GrpcRoute resource to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -4817,7 +4915,7 @@ public final UnaryCallable updateGrpcRouteCal * } * * @param name Required. A name of the GrpcRoute to delete. Must be in the format - * `projects/*/locations/global/grpcRoutes/*`. + * `projects/*/locations/*/grpcRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteGrpcRouteAsync(GrpcRouteName name) { @@ -4845,7 +4943,7 @@ public final OperationFuture deleteGrpcRouteAsync(Grpc * } * * @param name Required. A name of the GrpcRoute to delete. Must be in the format - * `projects/*/locations/global/grpcRoutes/*`. + * `projects/*/locations/*/grpcRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteGrpcRouteAsync(String name) { @@ -4960,7 +5058,7 @@ public final UnaryCallable deleteGrpcRouteCal * } * * @param parent Required. The project and location from which the HttpRoutes should be listed, - * specified in the format `projects/*/locations/global`. + * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListHttpRoutesPagedResponse listHttpRoutes(LocationName parent) { @@ -4992,7 +5090,7 @@ public final ListHttpRoutesPagedResponse listHttpRoutes(LocationName parent) { * } * * @param parent Required. The project and location from which the HttpRoutes should be listed, - * specified in the format `projects/*/locations/global`. + * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListHttpRoutesPagedResponse listHttpRoutes(String parent) { @@ -5019,6 +5117,7 @@ public final ListHttpRoutesPagedResponse listHttpRoutes(String parent) { * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setReturnPartialSuccess(true) + * .setFilter("filter-1274492040") * .build(); * for (HttpRoute element : networkServicesClient.listHttpRoutes(request).iterateAll()) { * // doThingsWith(element); @@ -5052,6 +5151,7 @@ public final ListHttpRoutesPagedResponse listHttpRoutes(ListHttpRoutesRequest re * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setReturnPartialSuccess(true) + * .setFilter("filter-1274492040") * .build(); * ApiFuture future = * networkServicesClient.listHttpRoutesPagedCallable().futureCall(request); @@ -5086,6 +5186,7 @@ public final ListHttpRoutesPagedResponse listHttpRoutes(ListHttpRoutesRequest re * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setReturnPartialSuccess(true) + * .setFilter("filter-1274492040") * .build(); * while (true) { * ListHttpRoutesResponse response = @@ -5127,7 +5228,7 @@ public final ListHttpRoutesPagedResponse listHttpRoutes(ListHttpRoutesRequest re * } * * @param name Required. A name of the HttpRoute to get. Must be in the format - * `projects/*/locations/global/httpRoutes/*`. + * `projects/*/locations/*/httpRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final HttpRoute getHttpRoute(HttpRouteName name) { @@ -5155,7 +5256,7 @@ public final HttpRoute getHttpRoute(HttpRouteName name) { * } * * @param name Required. A name of the HttpRoute to get. Must be in the format - * `projects/*/locations/global/httpRoutes/*`. + * `projects/*/locations/*/httpRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final HttpRoute getHttpRoute(String name) { @@ -5241,7 +5342,7 @@ public final UnaryCallable getHttpRouteCallable( * } * * @param parent Required. The parent resource of the HttpRoute. Must be in the format - * `projects/*/locations/global`. + * `projects/*/locations/*`. * @param httpRoute Required. HttpRoute resource to be created. * @param httpRouteId Required. Short name of the HttpRoute resource to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -5279,7 +5380,7 @@ public final OperationFuture createHttpRouteAsync( * } * * @param parent Required. The parent resource of the HttpRoute. Must be in the format - * `projects/*/locations/global`. + * `projects/*/locations/*`. * @param httpRoute Required. HttpRoute resource to be created. * @param httpRouteId Required. Short name of the HttpRoute resource to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -5313,6 +5414,7 @@ public final OperationFuture createHttpRouteAsync( * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setHttpRouteId("httpRouteId-2054835300") * .setHttpRoute(HttpRoute.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); * HttpRoute response = networkServicesClient.createHttpRouteAsync(request).get(); * } @@ -5344,6 +5446,7 @@ public final OperationFuture createHttpRouteAsync( * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setHttpRouteId("httpRouteId-2054835300") * .setHttpRoute(HttpRoute.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); * OperationFuture future = * networkServicesClient.createHttpRouteOperationCallable().futureCall(request); @@ -5375,6 +5478,7 @@ public final OperationFuture createHttpRouteAsync( * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setHttpRouteId("httpRouteId-2054835300") * .setHttpRoute(HttpRoute.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); * ApiFuture future = * networkServicesClient.createHttpRouteCallable().futureCall(request); @@ -5531,7 +5635,7 @@ public final UnaryCallable updateHttpRouteCal * } * * @param name Required. A name of the HttpRoute to delete. Must be in the format - * `projects/*/locations/global/httpRoutes/*`. + * `projects/*/locations/*/httpRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteHttpRouteAsync(HttpRouteName name) { @@ -5559,7 +5663,7 @@ public final OperationFuture deleteHttpRouteAsync(Http * } * * @param name Required. A name of the HttpRoute to delete. Must be in the format - * `projects/*/locations/global/httpRoutes/*`. + * `projects/*/locations/*/httpRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteHttpRouteAsync(String name) { @@ -5674,7 +5778,7 @@ public final UnaryCallable deleteHttpRouteCal * } * * @param parent Required. The project and location from which the TcpRoutes should be listed, - * specified in the format `projects/*/locations/global`. + * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTcpRoutesPagedResponse listTcpRoutes(LocationName parent) { @@ -5706,7 +5810,7 @@ public final ListTcpRoutesPagedResponse listTcpRoutes(LocationName parent) { * } * * @param parent Required. The project and location from which the TcpRoutes should be listed, - * specified in the format `projects/*/locations/global`. + * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTcpRoutesPagedResponse listTcpRoutes(String parent) { @@ -5840,7 +5944,7 @@ public final UnaryCallable listTcpR * } * * @param name Required. A name of the TcpRoute to get. Must be in the format - * `projects/*/locations/global/tcpRoutes/*`. + * `projects/*/locations/*/tcpRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TcpRoute getTcpRoute(TcpRouteName name) { @@ -5868,7 +5972,7 @@ public final TcpRoute getTcpRoute(TcpRouteName name) { * } * * @param name Required. A name of the TcpRoute to get. Must be in the format - * `projects/*/locations/global/tcpRoutes/*`. + * `projects/*/locations/*/tcpRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TcpRoute getTcpRoute(String name) { @@ -5953,7 +6057,7 @@ public final UnaryCallable getTcpRouteCallable() { * } * * @param parent Required. The parent resource of the TcpRoute. Must be in the format - * `projects/*/locations/global`. + * `projects/*/locations/*`. * @param tcpRoute Required. TcpRoute resource to be created. * @param tcpRouteId Required. Short name of the TcpRoute resource to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -5991,7 +6095,7 @@ public final OperationFuture createTcpRouteAsync( * } * * @param parent Required. The parent resource of the TcpRoute. Must be in the format - * `projects/*/locations/global`. + * `projects/*/locations/*`. * @param tcpRoute Required. TcpRoute resource to be created. * @param tcpRouteId Required. Short name of the TcpRoute resource to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -6240,7 +6344,7 @@ public final UnaryCallable updateTcpRouteCalla * } * * @param name Required. A name of the TcpRoute to delete. Must be in the format - * `projects/*/locations/global/tcpRoutes/*`. + * `projects/*/locations/*/tcpRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTcpRouteAsync(TcpRouteName name) { @@ -6268,7 +6372,7 @@ public final OperationFuture deleteTcpRouteAsync(TcpRo * } * * @param name Required. A name of the TcpRoute to delete. Must be in the format - * `projects/*/locations/global/tcpRoutes/*`. + * `projects/*/locations/*/tcpRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTcpRouteAsync(String name) { @@ -6383,7 +6487,7 @@ public final UnaryCallable deleteTcpRouteCalla * } * * @param parent Required. The project and location from which the TlsRoutes should be listed, - * specified in the format `projects/*/locations/global`. + * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTlsRoutesPagedResponse listTlsRoutes(LocationName parent) { @@ -6415,7 +6519,7 @@ public final ListTlsRoutesPagedResponse listTlsRoutes(LocationName parent) { * } * * @param parent Required. The project and location from which the TlsRoutes should be listed, - * specified in the format `projects/*/locations/global`. + * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTlsRoutesPagedResponse listTlsRoutes(String parent) { @@ -6549,7 +6653,7 @@ public final UnaryCallable listTlsR * } * * @param name Required. A name of the TlsRoute to get. Must be in the format - * `projects/*/locations/global/tlsRoutes/*`. + * `projects/*/locations/*/tlsRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TlsRoute getTlsRoute(TlsRouteName name) { @@ -6577,7 +6681,7 @@ public final TlsRoute getTlsRoute(TlsRouteName name) { * } * * @param name Required. A name of the TlsRoute to get. Must be in the format - * `projects/*/locations/global/tlsRoutes/*`. + * `projects/*/locations/*/tlsRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TlsRoute getTlsRoute(String name) { @@ -6662,7 +6766,7 @@ public final UnaryCallable getTlsRouteCallable() { * } * * @param parent Required. The parent resource of the TlsRoute. Must be in the format - * `projects/*/locations/global`. + * `projects/*/locations/*`. * @param tlsRoute Required. TlsRoute resource to be created. * @param tlsRouteId Required. Short name of the TlsRoute resource to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -6700,7 +6804,7 @@ public final OperationFuture createTlsRouteAsync( * } * * @param parent Required. The parent resource of the TlsRoute. Must be in the format - * `projects/*/locations/global`. + * `projects/*/locations/*`. * @param tlsRoute Required. TlsRoute resource to be created. * @param tlsRouteId Required. Short name of the TlsRoute resource to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -6949,7 +7053,7 @@ public final UnaryCallable updateTlsRouteCalla * } * * @param name Required. A name of the TlsRoute to delete. Must be in the format - * `projects/*/locations/global/tlsRoutes/*`. + * `projects/*/locations/*/tlsRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTlsRouteAsync(TlsRouteName name) { @@ -6977,7 +7081,7 @@ public final OperationFuture deleteTlsRouteAsync(TlsRo * } * * @param name Required. A name of the TlsRoute to delete. Must be in the format - * `projects/*/locations/global/tlsRoutes/*`. + * `projects/*/locations/*/tlsRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTlsRouteAsync(String name) { @@ -7831,7 +7935,7 @@ public final OperationFuture deleteServiceBindingAsync * } * * @param parent Required. The project and location from which the Meshes should be listed, - * specified in the format `projects/*/locations/global`. + * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMeshesPagedResponse listMeshes(LocationName parent) { @@ -7861,7 +7965,7 @@ public final ListMeshesPagedResponse listMeshes(LocationName parent) { * } * * @param parent Required. The project and location from which the Meshes should be listed, - * specified in the format `projects/*/locations/global`. + * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMeshesPagedResponse listMeshes(String parent) { @@ -7992,7 +8096,7 @@ public final UnaryCallable listMeshesCall * } * * @param name Required. A name of the Mesh to get. Must be in the format - * `projects/*/locations/global/meshes/*`. + * `projects/*/locations/*/meshes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Mesh getMesh(MeshName name) { @@ -8020,7 +8124,7 @@ public final Mesh getMesh(MeshName name) { * } * * @param name Required. A name of the Mesh to get. Must be in the format - * `projects/*/locations/global/meshes/*`. + * `projects/*/locations/*/meshes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Mesh getMesh(String name) { @@ -8104,7 +8208,7 @@ public final UnaryCallable getMeshCallable() { * } * * @param parent Required. The parent resource of the Mesh. Must be in the format - * `projects/*/locations/global`. + * `projects/*/locations/*`. * @param mesh Required. Mesh resource to be created. * @param meshId Required. Short name of the Mesh resource to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -8141,7 +8245,7 @@ public final OperationFuture createMeshAsync( * } * * @param parent Required. The parent resource of the Mesh. Must be in the format - * `projects/*/locations/global`. + * `projects/*/locations/*`. * @param mesh Required. Mesh resource to be created. * @param meshId Required. Short name of the Mesh resource to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -8382,7 +8486,7 @@ public final UnaryCallable updateMeshCallable() { * } * * @param name Required. A name of the Mesh to delete. Must be in the format - * `projects/*/locations/global/meshes/*`. + * `projects/*/locations/*/meshes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteMeshAsync(MeshName name) { @@ -8410,7 +8514,7 @@ public final OperationFuture deleteMeshAsync(MeshName * } * * @param name Required. A name of the Mesh to delete. Must be in the format - * `projects/*/locations/global/meshes/*`. + * `projects/*/locations/*/meshes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteMeshAsync(String name) { @@ -9835,7 +9939,7 @@ public final ListMeshRouteViewsPagedResponse listMeshRouteViews( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists AgentGateways in a given project and location. * *

Sample code: * @@ -9846,14 +9950,76 @@ public final ListMeshRouteViewsPagedResponse listMeshRouteViews( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (AgentGateway element : networkServicesClient.listAgentGateways(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * } + * + * @param parent Required. The project and location from which the AgentGateways should be listed, + * specified in the format `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAgentGatewaysPagedResponse listAgentGateways(LocationName parent) { + ListAgentGatewaysRequest request = + ListAgentGatewaysRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAgentGateways(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AgentGateways in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (AgentGateway element : networkServicesClient.listAgentGateways(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The project and location from which the AgentGateways should be listed, + * specified in the format `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAgentGatewaysPagedResponse listAgentGateways(String parent) { + ListAgentGatewaysRequest request = + ListAgentGatewaysRequest.newBuilder().setParent(parent).build(); + return listAgentGateways(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AgentGateways in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+   *   ListAgentGatewaysRequest request =
+   *       ListAgentGatewaysRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
+   *           .setReturnPartialSuccess(true)
    *           .build();
-   *   for (Location element : networkServicesClient.listLocations(request).iterateAll()) {
+   *   for (AgentGateway element : networkServicesClient.listAgentGateways(request).iterateAll()) {
    *     // doThingsWith(element);
    *   }
    * }
@@ -9862,13 +10028,13 @@ public final ListMeshRouteViewsPagedResponse listMeshRouteViews(
    * @param request The request object containing all of the parameters for the API call.
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
-  public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) {
-    return listLocationsPagedCallable().call(request);
+  public final ListAgentGatewaysPagedResponse listAgentGateways(ListAgentGatewaysRequest request) {
+    return listAgentGatewaysPagedCallable().call(request);
   }
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD.
   /**
-   * Lists information about the supported locations for this service.
+   * Lists AgentGateways in a given project and location.
    *
    * 

Sample code: * @@ -9879,30 +10045,30 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") + * ListAgentGatewaysRequest request = + * ListAgentGatewaysRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setReturnPartialSuccess(true) * .build(); - * ApiFuture future = - * networkServicesClient.listLocationsPagedCallable().futureCall(request); + * ApiFuture future = + * networkServicesClient.listAgentGatewaysPagedCallable().futureCall(request); * // Do something. - * for (Location element : future.get().iterateAll()) { + * for (AgentGateway element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * }

*/ - public final UnaryCallable - listLocationsPagedCallable() { - return stub.listLocationsPagedCallable(); + public final UnaryCallable + listAgentGatewaysPagedCallable() { + return stub.listAgentGatewaysPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists AgentGateways in a given project and location. * *

Sample code: * @@ -9913,17 +10079,17 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") + * ListAgentGatewaysRequest request = + * ListAgentGatewaysRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setReturnPartialSuccess(true) * .build(); * while (true) { - * ListLocationsResponse response = - * networkServicesClient.listLocationsCallable().call(request); - * for (Location element : response.getLocationsList()) { + * ListAgentGatewaysResponse response = + * networkServicesClient.listAgentGatewaysCallable().call(request); + * for (AgentGateway element : response.getAgentGatewaysList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -9936,13 +10102,14 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * } * } */ - public final UnaryCallable listLocationsCallable() { - return stub.listLocationsCallable(); + public final UnaryCallable + listAgentGatewaysCallable() { + return stub.listAgentGatewaysCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a location. + * Gets details of a single AgentGateway. * *

Sample code: * @@ -9953,21 +10120,24 @@ public final UnaryCallable listLoca * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { - * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - * Location response = networkServicesClient.getLocation(request); + * AgentGatewayName name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]"); + * AgentGateway response = networkServicesClient.getAgentGateway(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. A name of the AgentGateway to get. Must be in the format + * `projects/*/locations/*/agentGateways/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Location getLocation(GetLocationRequest request) { - return getLocationCallable().call(request); + public final AgentGateway getAgentGateway(AgentGatewayName name) { + GetAgentGatewayRequest request = + GetAgentGatewayRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAgentGateway(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a location. + * Gets details of a single AgentGateway. * *

Sample code: * @@ -9978,22 +10148,23 @@ public final Location getLocation(GetLocationRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { - * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - * ApiFuture future = networkServicesClient.getLocationCallable().futureCall(request); - * // Do something. - * Location response = future.get(); + * String name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString(); + * AgentGateway response = networkServicesClient.getAgentGateway(name); * } * } + * + * @param name Required. A name of the AgentGateway to get. Must be in the format + * `projects/*/locations/*/agentGateways/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable getLocationCallable() { - return stub.getLocationCallable(); + public final AgentGateway getAgentGateway(String name) { + GetAgentGatewayRequest request = GetAgentGatewayRequest.newBuilder().setName(name).build(); + return getAgentGateway(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Sets the access control policy on the specified resource. Replacesany existing policy. - * - *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * Gets details of a single AgentGateway. * *

Sample code: * @@ -10004,29 +10175,24 @@ public final UnaryCallable getLocationCallable() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { - * SetIamPolicyRequest request = - * SetIamPolicyRequest.newBuilder() - * .setResource( - * EndpointPolicyName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]").toString()) - * .setPolicy(Policy.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * GetAgentGatewayRequest request = + * GetAgentGatewayRequest.newBuilder() + * .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) * .build(); - * Policy response = networkServicesClient.setIamPolicy(request); + * AgentGateway response = networkServicesClient.getAgentGateway(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); + public final AgentGateway getAgentGateway(GetAgentGatewayRequest request) { + return getAgentGatewayCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Sets the access control policy on the specified resource. Replacesany existing policy. - * - *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * Gets details of a single AgentGateway. * *

Sample code: * @@ -10037,27 +10203,24 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { - * SetIamPolicyRequest request = - * SetIamPolicyRequest.newBuilder() - * .setResource( - * EndpointPolicyName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]").toString()) - * .setPolicy(Policy.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * GetAgentGatewayRequest request = + * GetAgentGatewayRequest.newBuilder() + * .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) * .build(); - * ApiFuture future = networkServicesClient.setIamPolicyCallable().futureCall(request); + * ApiFuture future = + * networkServicesClient.getAgentGatewayCallable().futureCall(request); * // Do something. - * Policy response = future.get(); + * AgentGateway response = future.get(); * } * } */ - public final UnaryCallable setIamPolicyCallable() { - return stub.setIamPolicyCallable(); + public final UnaryCallable getAgentGatewayCallable() { + return stub.getAgentGatewayCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the access control policy for a resource. Returns an empty policyif the resource exists - * and does not have a policy set. + * Creates a new AgentGateway in a given project and location. * *

Sample code: * @@ -10068,27 +10231,34 @@ public final UnaryCallable setIamPolicyCallable() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { - * GetIamPolicyRequest request = - * GetIamPolicyRequest.newBuilder() - * .setResource( - * EndpointPolicyName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]").toString()) - * .setOptions(GetPolicyOptions.newBuilder().build()) - * .build(); - * Policy response = networkServicesClient.getIamPolicy(request); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * AgentGateway agentGateway = AgentGateway.newBuilder().build(); + * String agentGatewayId = "agentGatewayId1729577210"; + * AgentGateway response = + * networkServicesClient.createAgentGatewayAsync(parent, agentGateway, agentGatewayId).get(); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The parent resource of the AgentGateway. Must be in the format + * `projects/*/locations/*`. + * @param agentGateway Required. AgentGateway resource to be created. + * @param agentGatewayId Required. Short name of the AgentGateway resource to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(GetIamPolicyRequest request) { - return getIamPolicyCallable().call(request); + public final OperationFuture createAgentGatewayAsync( + LocationName parent, AgentGateway agentGateway, String agentGatewayId) { + CreateAgentGatewayRequest request = + CreateAgentGatewayRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAgentGateway(agentGateway) + .setAgentGatewayId(agentGatewayId) + .build(); + return createAgentGatewayAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the access control policy for a resource. Returns an empty policyif the resource exists - * and does not have a policy set. + * Creates a new AgentGateway in a given project and location. * *

Sample code: * @@ -10099,30 +10269,687 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { - * GetIamPolicyRequest request = - * GetIamPolicyRequest.newBuilder() - * .setResource( - * EndpointPolicyName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]").toString()) - * .setOptions(GetPolicyOptions.newBuilder().build()) - * .build(); - * ApiFuture future = networkServicesClient.getIamPolicyCallable().futureCall(request); - * // Do something. - * Policy response = future.get(); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * AgentGateway agentGateway = AgentGateway.newBuilder().build(); + * String agentGatewayId = "agentGatewayId1729577210"; + * AgentGateway response = + * networkServicesClient.createAgentGatewayAsync(parent, agentGateway, agentGatewayId).get(); * } * } + * + * @param parent Required. The parent resource of the AgentGateway. Must be in the format + * `projects/*/locations/*`. + * @param agentGateway Required. AgentGateway resource to be created. + * @param agentGatewayId Required. Short name of the AgentGateway resource to be created. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable getIamPolicyCallable() { - return stub.getIamPolicyCallable(); + public final OperationFuture createAgentGatewayAsync( + String parent, AgentGateway agentGateway, String agentGatewayId) { + CreateAgentGatewayRequest request = + CreateAgentGatewayRequest.newBuilder() + .setParent(parent) + .setAgentGateway(agentGateway) + .setAgentGatewayId(agentGatewayId) + .build(); + return createAgentGatewayAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns permissions that a caller has on the specified resource. If theresource does not exist, - * this will return an empty set ofpermissions, not a `NOT_FOUND` error. - * - *

Note: This operation is designed to be used for buildingpermission-aware UIs and - * command-line tools, not for authorizationchecking. This operation may "fail open" without - * warning. + * Creates a new AgentGateway in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+   *   CreateAgentGatewayRequest request =
+   *       CreateAgentGatewayRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setAgentGatewayId("agentGatewayId1729577210")
+   *           .setAgentGateway(AgentGateway.newBuilder().build())
+   *           .build();
+   *   AgentGateway response = networkServicesClient.createAgentGatewayAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAgentGatewayAsync( + CreateAgentGatewayRequest request) { + return createAgentGatewayOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new AgentGateway in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+   *   CreateAgentGatewayRequest request =
+   *       CreateAgentGatewayRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setAgentGatewayId("agentGatewayId1729577210")
+   *           .setAgentGateway(AgentGateway.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       networkServicesClient.createAgentGatewayOperationCallable().futureCall(request);
+   *   // Do something.
+   *   AgentGateway response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createAgentGatewayOperationCallable() { + return stub.createAgentGatewayOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new AgentGateway in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+   *   CreateAgentGatewayRequest request =
+   *       CreateAgentGatewayRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setAgentGatewayId("agentGatewayId1729577210")
+   *           .setAgentGateway(AgentGateway.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       networkServicesClient.createAgentGatewayCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createAgentGatewayCallable() { + return stub.createAgentGatewayCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single AgentGateway. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+   *   AgentGateway agentGateway = AgentGateway.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   AgentGateway response =
+   *       networkServicesClient.updateAgentGatewayAsync(agentGateway, updateMask).get();
+   * }
+   * }
+ * + * @param agentGateway Required. Updated AgentGateway resource. + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * AgentGateway resource by the update. The fields specified in the update_mask are relative + * to the resource, not the full request. A field will be overwritten if it is in the mask. If + * the user does not provide a mask then all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateAgentGatewayAsync( + AgentGateway agentGateway, FieldMask updateMask) { + UpdateAgentGatewayRequest request = + UpdateAgentGatewayRequest.newBuilder() + .setAgentGateway(agentGateway) + .setUpdateMask(updateMask) + .build(); + return updateAgentGatewayAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single AgentGateway. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+   *   UpdateAgentGatewayRequest request =
+   *       UpdateAgentGatewayRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setAgentGateway(AgentGateway.newBuilder().build())
+   *           .build();
+   *   AgentGateway response = networkServicesClient.updateAgentGatewayAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateAgentGatewayAsync( + UpdateAgentGatewayRequest request) { + return updateAgentGatewayOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single AgentGateway. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+   *   UpdateAgentGatewayRequest request =
+   *       UpdateAgentGatewayRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setAgentGateway(AgentGateway.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       networkServicesClient.updateAgentGatewayOperationCallable().futureCall(request);
+   *   // Do something.
+   *   AgentGateway response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateAgentGatewayOperationCallable() { + return stub.updateAgentGatewayOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single AgentGateway. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+   *   UpdateAgentGatewayRequest request =
+   *       UpdateAgentGatewayRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setAgentGateway(AgentGateway.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       networkServicesClient.updateAgentGatewayCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateAgentGatewayCallable() { + return stub.updateAgentGatewayCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single AgentGateway. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+   *   AgentGatewayName name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]");
+   *   networkServicesClient.deleteAgentGatewayAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. A name of the AgentGateway to delete. Must be in the format + * `projects/*/locations/*/agentGateways/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAgentGatewayAsync( + AgentGatewayName name) { + DeleteAgentGatewayRequest request = + DeleteAgentGatewayRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteAgentGatewayAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single AgentGateway. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+   *   String name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString();
+   *   networkServicesClient.deleteAgentGatewayAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. A name of the AgentGateway to delete. Must be in the format + * `projects/*/locations/*/agentGateways/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAgentGatewayAsync(String name) { + DeleteAgentGatewayRequest request = + DeleteAgentGatewayRequest.newBuilder().setName(name).build(); + return deleteAgentGatewayAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single AgentGateway. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+   *   DeleteAgentGatewayRequest request =
+   *       DeleteAgentGatewayRequest.newBuilder()
+   *           .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString())
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   networkServicesClient.deleteAgentGatewayAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAgentGatewayAsync( + DeleteAgentGatewayRequest request) { + return deleteAgentGatewayOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single AgentGateway. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+   *   DeleteAgentGatewayRequest request =
+   *       DeleteAgentGatewayRequest.newBuilder()
+   *           .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString())
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   OperationFuture future =
+   *       networkServicesClient.deleteAgentGatewayOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteAgentGatewayOperationCallable() { + return stub.deleteAgentGatewayOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single AgentGateway. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+   *   DeleteAgentGatewayRequest request =
+   *       DeleteAgentGatewayRequest.newBuilder()
+   *           .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString())
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   ApiFuture future =
+   *       networkServicesClient.deleteAgentGatewayCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteAgentGatewayCallable() { + return stub.deleteAgentGatewayCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : networkServicesClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       networkServicesClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         networkServicesClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = networkServicesClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = networkServicesClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointPolicyName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]").toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = networkServicesClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointPolicyName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]").toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = networkServicesClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointPolicyName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]").toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = networkServicesClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointPolicyName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]").toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = networkServicesClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. * *

Sample code: * @@ -11249,6 +12076,86 @@ protected ListMeshRouteViewsFixedSizeCollection createCollection( } } + public static class ListAgentGatewaysPagedResponse + extends AbstractPagedListResponse< + ListAgentGatewaysRequest, + ListAgentGatewaysResponse, + AgentGateway, + ListAgentGatewaysPage, + ListAgentGatewaysFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAgentGatewaysPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAgentGatewaysPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAgentGatewaysPagedResponse(ListAgentGatewaysPage page) { + super(page, ListAgentGatewaysFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAgentGatewaysPage + extends AbstractPage< + ListAgentGatewaysRequest, + ListAgentGatewaysResponse, + AgentGateway, + ListAgentGatewaysPage> { + + private ListAgentGatewaysPage( + PageContext context, + ListAgentGatewaysResponse response) { + super(context, response); + } + + private static ListAgentGatewaysPage createEmptyPage() { + return new ListAgentGatewaysPage(null, null); + } + + @Override + protected ListAgentGatewaysPage createPage( + PageContext context, + ListAgentGatewaysResponse response) { + return new ListAgentGatewaysPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAgentGatewaysFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAgentGatewaysRequest, + ListAgentGatewaysResponse, + AgentGateway, + ListAgentGatewaysPage, + ListAgentGatewaysFixedSizeCollection> { + + private ListAgentGatewaysFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAgentGatewaysFixedSizeCollection createEmptyCollection() { + return new ListAgentGatewaysFixedSizeCollection(null, 0); + } + + @Override + protected ListAgentGatewaysFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAgentGatewaysFixedSizeCollection(pages, collectionSize); + } + } + public static class ListLocationsPagedResponse extends AbstractPagedListResponse< ListLocationsRequest, diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesSettings.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesSettings.java index a4a5becdfe4d..27e2743c5d9b 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesSettings.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesSettings.java @@ -16,6 +16,7 @@ package com.google.cloud.networkservices.v1; +import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListAgentGatewaysPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListEndpointPoliciesPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewayRouteViewsPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewaysPagedResponse; @@ -671,6 +672,51 @@ public UnaryCallSettings getMeshRouteVie return ((NetworkServicesStubSettings) getStubSettings()).listMeshRouteViewsSettings(); } + /** Returns the object with the settings used for calls to listAgentGateways. */ + public PagedCallSettings< + ListAgentGatewaysRequest, ListAgentGatewaysResponse, ListAgentGatewaysPagedResponse> + listAgentGatewaysSettings() { + return ((NetworkServicesStubSettings) getStubSettings()).listAgentGatewaysSettings(); + } + + /** Returns the object with the settings used for calls to getAgentGateway. */ + public UnaryCallSettings getAgentGatewaySettings() { + return ((NetworkServicesStubSettings) getStubSettings()).getAgentGatewaySettings(); + } + + /** Returns the object with the settings used for calls to createAgentGateway. */ + public UnaryCallSettings createAgentGatewaySettings() { + return ((NetworkServicesStubSettings) getStubSettings()).createAgentGatewaySettings(); + } + + /** Returns the object with the settings used for calls to createAgentGateway. */ + public OperationCallSettings + createAgentGatewayOperationSettings() { + return ((NetworkServicesStubSettings) getStubSettings()).createAgentGatewayOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateAgentGateway. */ + public UnaryCallSettings updateAgentGatewaySettings() { + return ((NetworkServicesStubSettings) getStubSettings()).updateAgentGatewaySettings(); + } + + /** Returns the object with the settings used for calls to updateAgentGateway. */ + public OperationCallSettings + updateAgentGatewayOperationSettings() { + return ((NetworkServicesStubSettings) getStubSettings()).updateAgentGatewayOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteAgentGateway. */ + public UnaryCallSettings deleteAgentGatewaySettings() { + return ((NetworkServicesStubSettings) getStubSettings()).deleteAgentGatewaySettings(); + } + + /** Returns the object with the settings used for calls to deleteAgentGateway. */ + public OperationCallSettings + deleteAgentGatewayOperationSettings() { + return ((NetworkServicesStubSettings) getStubSettings()).deleteAgentGatewayOperationSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -1354,6 +1400,55 @@ public UnaryCallSettings.Builder deleteMeshSetting return getStubSettingsBuilder().listMeshRouteViewsSettings(); } + /** Returns the builder for the settings used for calls to listAgentGateways. */ + public PagedCallSettings.Builder< + ListAgentGatewaysRequest, ListAgentGatewaysResponse, ListAgentGatewaysPagedResponse> + listAgentGatewaysSettings() { + return getStubSettingsBuilder().listAgentGatewaysSettings(); + } + + /** Returns the builder for the settings used for calls to getAgentGateway. */ + public UnaryCallSettings.Builder + getAgentGatewaySettings() { + return getStubSettingsBuilder().getAgentGatewaySettings(); + } + + /** Returns the builder for the settings used for calls to createAgentGateway. */ + public UnaryCallSettings.Builder + createAgentGatewaySettings() { + return getStubSettingsBuilder().createAgentGatewaySettings(); + } + + /** Returns the builder for the settings used for calls to createAgentGateway. */ + public OperationCallSettings.Builder + createAgentGatewayOperationSettings() { + return getStubSettingsBuilder().createAgentGatewayOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateAgentGateway. */ + public UnaryCallSettings.Builder + updateAgentGatewaySettings() { + return getStubSettingsBuilder().updateAgentGatewaySettings(); + } + + /** Returns the builder for the settings used for calls to updateAgentGateway. */ + public OperationCallSettings.Builder + updateAgentGatewayOperationSettings() { + return getStubSettingsBuilder().updateAgentGatewayOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAgentGateway. */ + public UnaryCallSettings.Builder + deleteAgentGatewaySettings() { + return getStubSettingsBuilder().deleteAgentGatewaySettings(); + } + + /** Returns the builder for the settings used for calls to deleteAgentGateway. */ + public OperationCallSettings.Builder + deleteAgentGatewayOperationSettings() { + return getStubSettingsBuilder().deleteAgentGatewayOperationSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/gapic_metadata.json b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/gapic_metadata.json index 52d3ed7c7c54..8cc5cf055a66 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/gapic_metadata.json +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/gapic_metadata.json @@ -94,6 +94,9 @@ "grpc": { "libraryClient": "NetworkServicesClient", "rpcs": { + "CreateAgentGateway": { + "methods": ["createAgentGatewayAsync", "createAgentGatewayAsync", "createAgentGatewayAsync", "createAgentGatewayOperationCallable", "createAgentGatewayCallable"] + }, "CreateEndpointPolicy": { "methods": ["createEndpointPolicyAsync", "createEndpointPolicyAsync", "createEndpointPolicyAsync", "createEndpointPolicyOperationCallable", "createEndpointPolicyCallable"] }, @@ -127,6 +130,9 @@ "CreateWasmPluginVersion": { "methods": ["createWasmPluginVersionAsync", "createWasmPluginVersionAsync", "createWasmPluginVersionAsync", "createWasmPluginVersionOperationCallable", "createWasmPluginVersionCallable"] }, + "DeleteAgentGateway": { + "methods": ["deleteAgentGatewayAsync", "deleteAgentGatewayAsync", "deleteAgentGatewayAsync", "deleteAgentGatewayOperationCallable", "deleteAgentGatewayCallable"] + }, "DeleteEndpointPolicy": { "methods": ["deleteEndpointPolicyAsync", "deleteEndpointPolicyAsync", "deleteEndpointPolicyAsync", "deleteEndpointPolicyOperationCallable", "deleteEndpointPolicyCallable"] }, @@ -160,6 +166,9 @@ "DeleteWasmPluginVersion": { "methods": ["deleteWasmPluginVersionAsync", "deleteWasmPluginVersionAsync", "deleteWasmPluginVersionAsync", "deleteWasmPluginVersionOperationCallable", "deleteWasmPluginVersionCallable"] }, + "GetAgentGateway": { + "methods": ["getAgentGateway", "getAgentGateway", "getAgentGateway", "getAgentGatewayCallable"] + }, "GetEndpointPolicy": { "methods": ["getEndpointPolicy", "getEndpointPolicy", "getEndpointPolicy", "getEndpointPolicyCallable"] }, @@ -205,6 +214,9 @@ "GetWasmPluginVersion": { "methods": ["getWasmPluginVersion", "getWasmPluginVersion", "getWasmPluginVersion", "getWasmPluginVersionCallable"] }, + "ListAgentGateways": { + "methods": ["listAgentGateways", "listAgentGateways", "listAgentGateways", "listAgentGatewaysPagedCallable", "listAgentGatewaysCallable"] + }, "ListEndpointPolicies": { "methods": ["listEndpointPolicies", "listEndpointPolicies", "listEndpointPolicies", "listEndpointPoliciesPagedCallable", "listEndpointPoliciesCallable"] }, @@ -253,6 +265,9 @@ "TestIamPermissions": { "methods": ["testIamPermissions", "testIamPermissionsCallable"] }, + "UpdateAgentGateway": { + "methods": ["updateAgentGatewayAsync", "updateAgentGatewayAsync", "updateAgentGatewayOperationCallable", "updateAgentGatewayCallable"] + }, "UpdateEndpointPolicy": { "methods": ["updateEndpointPolicyAsync", "updateEndpointPolicyAsync", "updateEndpointPolicyOperationCallable", "updateEndpointPolicyCallable"] }, diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/GrpcNetworkServicesStub.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/GrpcNetworkServicesStub.java index 892a8d6e9f85..7b15319ff5fc 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/GrpcNetworkServicesStub.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/GrpcNetworkServicesStub.java @@ -16,6 +16,7 @@ package com.google.cloud.networkservices.v1.stub; +import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListAgentGatewaysPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListEndpointPoliciesPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewayRouteViewsPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewaysPagedResponse; @@ -43,6 +44,8 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.CreateAgentGatewayRequest; import com.google.cloud.networkservices.v1.CreateEndpointPolicyRequest; import com.google.cloud.networkservices.v1.CreateGatewayRequest; import com.google.cloud.networkservices.v1.CreateGrpcRouteRequest; @@ -54,6 +57,7 @@ import com.google.cloud.networkservices.v1.CreateTlsRouteRequest; import com.google.cloud.networkservices.v1.CreateWasmPluginRequest; import com.google.cloud.networkservices.v1.CreateWasmPluginVersionRequest; +import com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest; import com.google.cloud.networkservices.v1.DeleteEndpointPolicyRequest; import com.google.cloud.networkservices.v1.DeleteGatewayRequest; import com.google.cloud.networkservices.v1.DeleteGrpcRouteRequest; @@ -68,6 +72,7 @@ import com.google.cloud.networkservices.v1.EndpointPolicy; import com.google.cloud.networkservices.v1.Gateway; import com.google.cloud.networkservices.v1.GatewayRouteView; +import com.google.cloud.networkservices.v1.GetAgentGatewayRequest; import com.google.cloud.networkservices.v1.GetEndpointPolicyRequest; import com.google.cloud.networkservices.v1.GetGatewayRequest; import com.google.cloud.networkservices.v1.GetGatewayRouteViewRequest; @@ -83,6 +88,8 @@ import com.google.cloud.networkservices.v1.GetWasmPluginVersionRequest; import com.google.cloud.networkservices.v1.GrpcRoute; import com.google.cloud.networkservices.v1.HttpRoute; +import com.google.cloud.networkservices.v1.ListAgentGatewaysRequest; +import com.google.cloud.networkservices.v1.ListAgentGatewaysResponse; import com.google.cloud.networkservices.v1.ListEndpointPoliciesRequest; import com.google.cloud.networkservices.v1.ListEndpointPoliciesResponse; import com.google.cloud.networkservices.v1.ListGatewayRouteViewsRequest; @@ -116,6 +123,7 @@ import com.google.cloud.networkservices.v1.ServiceLbPolicy; import com.google.cloud.networkservices.v1.TcpRoute; import com.google.cloud.networkservices.v1.TlsRoute; +import com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest; import com.google.cloud.networkservices.v1.UpdateEndpointPolicyRequest; import com.google.cloud.networkservices.v1.UpdateGatewayRequest; import com.google.cloud.networkservices.v1.UpdateGrpcRouteRequest; @@ -806,6 +814,66 @@ public class GrpcNetworkServicesStub extends NetworkServicesStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + listAgentGatewaysMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkservices.v1.NetworkServices/ListAgentGateways") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAgentGatewaysRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAgentGatewaysResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAgentGatewayMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.networkservices.v1.NetworkServices/GetAgentGateway") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAgentGatewayRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AgentGateway.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createAgentGatewayMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkservices.v1.NetworkServices/CreateAgentGateway") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateAgentGatewayRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateAgentGatewayMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkservices.v1.NetworkServices/UpdateAgentGateway") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAgentGatewayRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteAgentGatewayMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkservices.v1.NetworkServices/DeleteAgentGateway") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAgentGatewayRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -1020,6 +1088,20 @@ public class GrpcNetworkServicesStub extends NetworkServicesStub { listMeshRouteViewsCallable; private final UnaryCallable listMeshRouteViewsPagedCallable; + private final UnaryCallable + listAgentGatewaysCallable; + private final UnaryCallable + listAgentGatewaysPagedCallable; + private final UnaryCallable getAgentGatewayCallable; + private final UnaryCallable createAgentGatewayCallable; + private final OperationCallable + createAgentGatewayOperationCallable; + private final UnaryCallable updateAgentGatewayCallable; + private final OperationCallable + updateAgentGatewayOperationCallable; + private final UnaryCallable deleteAgentGatewayCallable; + private final OperationCallable + deleteAgentGatewayOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -1728,6 +1810,62 @@ protected GrpcNetworkServicesStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + GrpcCallSettings + listAgentGatewaysTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAgentGatewaysMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getAgentGatewayTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAgentGatewayMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings createAgentGatewayTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAgentGatewayMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings updateAgentGatewayTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAgentGatewayMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "agent_gateway.name", String.valueOf(request.getAgentGateway().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteAgentGatewayTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAgentGatewayMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -2244,6 +2382,52 @@ protected GrpcNetworkServicesStub( listMeshRouteViewsTransportSettings, settings.listMeshRouteViewsSettings(), clientContext); + this.listAgentGatewaysCallable = + callableFactory.createUnaryCallable( + listAgentGatewaysTransportSettings, + settings.listAgentGatewaysSettings(), + clientContext); + this.listAgentGatewaysPagedCallable = + callableFactory.createPagedCallable( + listAgentGatewaysTransportSettings, + settings.listAgentGatewaysSettings(), + clientContext); + this.getAgentGatewayCallable = + callableFactory.createUnaryCallable( + getAgentGatewayTransportSettings, settings.getAgentGatewaySettings(), clientContext); + this.createAgentGatewayCallable = + callableFactory.createUnaryCallable( + createAgentGatewayTransportSettings, + settings.createAgentGatewaySettings(), + clientContext); + this.createAgentGatewayOperationCallable = + callableFactory.createOperationCallable( + createAgentGatewayTransportSettings, + settings.createAgentGatewayOperationSettings(), + clientContext, + operationsStub); + this.updateAgentGatewayCallable = + callableFactory.createUnaryCallable( + updateAgentGatewayTransportSettings, + settings.updateAgentGatewaySettings(), + clientContext); + this.updateAgentGatewayOperationCallable = + callableFactory.createOperationCallable( + updateAgentGatewayTransportSettings, + settings.updateAgentGatewayOperationSettings(), + clientContext, + operationsStub); + this.deleteAgentGatewayCallable = + callableFactory.createUnaryCallable( + deleteAgentGatewayTransportSettings, + settings.deleteAgentGatewaySettings(), + clientContext); + this.deleteAgentGatewayOperationCallable = + callableFactory.createOperationCallable( + deleteAgentGatewayTransportSettings, + settings.deleteAgentGatewayOperationSettings(), + clientContext, + operationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -2840,6 +3024,56 @@ public UnaryCallable getMeshRouteViewCal return listMeshRouteViewsPagedCallable; } + @Override + public UnaryCallable + listAgentGatewaysCallable() { + return listAgentGatewaysCallable; + } + + @Override + public UnaryCallable + listAgentGatewaysPagedCallable() { + return listAgentGatewaysPagedCallable; + } + + @Override + public UnaryCallable getAgentGatewayCallable() { + return getAgentGatewayCallable; + } + + @Override + public UnaryCallable createAgentGatewayCallable() { + return createAgentGatewayCallable; + } + + @Override + public OperationCallable + createAgentGatewayOperationCallable() { + return createAgentGatewayOperationCallable; + } + + @Override + public UnaryCallable updateAgentGatewayCallable() { + return updateAgentGatewayCallable; + } + + @Override + public OperationCallable + updateAgentGatewayOperationCallable() { + return updateAgentGatewayOperationCallable; + } + + @Override + public UnaryCallable deleteAgentGatewayCallable() { + return deleteAgentGatewayCallable; + } + + @Override + public OperationCallable + deleteAgentGatewayOperationCallable() { + return deleteAgentGatewayOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/HttpJsonNetworkServicesStub.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/HttpJsonNetworkServicesStub.java index 89b4b6814079..72e58e3add30 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/HttpJsonNetworkServicesStub.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/HttpJsonNetworkServicesStub.java @@ -16,6 +16,7 @@ package com.google.cloud.networkservices.v1.stub; +import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListAgentGatewaysPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListEndpointPoliciesPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewayRouteViewsPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewaysPagedResponse; @@ -51,6 +52,8 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.CreateAgentGatewayRequest; import com.google.cloud.networkservices.v1.CreateEndpointPolicyRequest; import com.google.cloud.networkservices.v1.CreateGatewayRequest; import com.google.cloud.networkservices.v1.CreateGrpcRouteRequest; @@ -62,6 +65,7 @@ import com.google.cloud.networkservices.v1.CreateTlsRouteRequest; import com.google.cloud.networkservices.v1.CreateWasmPluginRequest; import com.google.cloud.networkservices.v1.CreateWasmPluginVersionRequest; +import com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest; import com.google.cloud.networkservices.v1.DeleteEndpointPolicyRequest; import com.google.cloud.networkservices.v1.DeleteGatewayRequest; import com.google.cloud.networkservices.v1.DeleteGrpcRouteRequest; @@ -76,6 +80,7 @@ import com.google.cloud.networkservices.v1.EndpointPolicy; import com.google.cloud.networkservices.v1.Gateway; import com.google.cloud.networkservices.v1.GatewayRouteView; +import com.google.cloud.networkservices.v1.GetAgentGatewayRequest; import com.google.cloud.networkservices.v1.GetEndpointPolicyRequest; import com.google.cloud.networkservices.v1.GetGatewayRequest; import com.google.cloud.networkservices.v1.GetGatewayRouteViewRequest; @@ -91,6 +96,8 @@ import com.google.cloud.networkservices.v1.GetWasmPluginVersionRequest; import com.google.cloud.networkservices.v1.GrpcRoute; import com.google.cloud.networkservices.v1.HttpRoute; +import com.google.cloud.networkservices.v1.ListAgentGatewaysRequest; +import com.google.cloud.networkservices.v1.ListAgentGatewaysResponse; import com.google.cloud.networkservices.v1.ListEndpointPoliciesRequest; import com.google.cloud.networkservices.v1.ListEndpointPoliciesResponse; import com.google.cloud.networkservices.v1.ListGatewayRouteViewsRequest; @@ -124,6 +131,7 @@ import com.google.cloud.networkservices.v1.ServiceLbPolicy; import com.google.cloud.networkservices.v1.TcpRoute; import com.google.cloud.networkservices.v1.TlsRoute; +import com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest; import com.google.cloud.networkservices.v1.UpdateEndpointPolicyRequest; import com.google.cloud.networkservices.v1.UpdateGatewayRequest; import com.google.cloud.networkservices.v1.UpdateGrpcRouteRequest; @@ -175,6 +183,7 @@ public class HttpJsonNetworkServicesStub extends NetworkServicesStub { .add(Empty.getDescriptor()) .add(Gateway.getDescriptor()) .add(ServiceLbPolicy.getDescriptor()) + .add(AgentGateway.getDescriptor()) .add(GrpcRoute.getDescriptor()) .build(); @@ -1132,6 +1141,7 @@ public class HttpJsonNetworkServicesStub extends NetworkServicesStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam( @@ -1206,6 +1216,7 @@ public class HttpJsonNetworkServicesStub extends NetworkServicesStub { ProtoRestSerializer.create(); serializer.putQueryParam( fields, "httpRouteId", request.getHttpRouteId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) @@ -2419,6 +2430,204 @@ public class HttpJsonNetworkServicesStub extends NetworkServicesStub { .build()) .build(); + private static final ApiMethodDescriptor + listAgentGatewaysMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networkservices.v1.NetworkServices/ListAgentGateways") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/agentGateways", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam( + fields, "returnPartialSuccess", request.getReturnPartialSuccess()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAgentGatewaysResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAgentGatewayMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.networkservices.v1.NetworkServices/GetAgentGateway") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/agentGateways/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AgentGateway.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createAgentGatewayMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networkservices.v1.NetworkServices/CreateAgentGateway") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/agentGateways", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "agentGatewayId", request.getAgentGatewayId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("agentGateway", request.getAgentGateway(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateAgentGatewayRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateAgentGatewayMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networkservices.v1.NetworkServices/UpdateAgentGateway") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{agentGateway.name=projects/*/locations/*/agentGateways/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "agentGateway.name", request.getAgentGateway().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("agentGateway", request.getAgentGateway(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateAgentGatewayRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteAgentGatewayMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networkservices.v1.NetworkServices/DeleteAgentGateway") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/agentGateways/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteAgentGatewayRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -2779,6 +2988,20 @@ public class HttpJsonNetworkServicesStub extends NetworkServicesStub { listMeshRouteViewsCallable; private final UnaryCallable listMeshRouteViewsPagedCallable; + private final UnaryCallable + listAgentGatewaysCallable; + private final UnaryCallable + listAgentGatewaysPagedCallable; + private final UnaryCallable getAgentGatewayCallable; + private final UnaryCallable createAgentGatewayCallable; + private final OperationCallable + createAgentGatewayOperationCallable; + private final UnaryCallable updateAgentGatewayCallable; + private final OperationCallable + updateAgentGatewayOperationCallable; + private final UnaryCallable deleteAgentGatewayCallable; + private final OperationCallable + deleteAgentGatewayOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -3583,6 +3806,67 @@ protected HttpJsonNetworkServicesStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + HttpJsonCallSettings + listAgentGatewaysTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAgentGatewaysMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getAgentGatewayTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAgentGatewayMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings createAgentGatewayTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAgentGatewayMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings updateAgentGatewayTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAgentGatewayMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "agent_gateway.name", String.valueOf(request.getAgentGateway().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteAgentGatewayTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAgentGatewayMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -4105,6 +4389,52 @@ protected HttpJsonNetworkServicesStub( listMeshRouteViewsTransportSettings, settings.listMeshRouteViewsSettings(), clientContext); + this.listAgentGatewaysCallable = + callableFactory.createUnaryCallable( + listAgentGatewaysTransportSettings, + settings.listAgentGatewaysSettings(), + clientContext); + this.listAgentGatewaysPagedCallable = + callableFactory.createPagedCallable( + listAgentGatewaysTransportSettings, + settings.listAgentGatewaysSettings(), + clientContext); + this.getAgentGatewayCallable = + callableFactory.createUnaryCallable( + getAgentGatewayTransportSettings, settings.getAgentGatewaySettings(), clientContext); + this.createAgentGatewayCallable = + callableFactory.createUnaryCallable( + createAgentGatewayTransportSettings, + settings.createAgentGatewaySettings(), + clientContext); + this.createAgentGatewayOperationCallable = + callableFactory.createOperationCallable( + createAgentGatewayTransportSettings, + settings.createAgentGatewayOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateAgentGatewayCallable = + callableFactory.createUnaryCallable( + updateAgentGatewayTransportSettings, + settings.updateAgentGatewaySettings(), + clientContext); + this.updateAgentGatewayOperationCallable = + callableFactory.createOperationCallable( + updateAgentGatewayTransportSettings, + settings.updateAgentGatewayOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteAgentGatewayCallable = + callableFactory.createUnaryCallable( + deleteAgentGatewayTransportSettings, + settings.deleteAgentGatewaySettings(), + clientContext); + this.deleteAgentGatewayOperationCallable = + callableFactory.createOperationCallable( + deleteAgentGatewayTransportSettings, + settings.deleteAgentGatewayOperationSettings(), + clientContext, + httpJsonOperationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -4191,6 +4521,11 @@ public static List getMethodDescriptors() { methodDescriptors.add(getMeshRouteViewMethodDescriptor); methodDescriptors.add(listGatewayRouteViewsMethodDescriptor); methodDescriptors.add(listMeshRouteViewsMethodDescriptor); + methodDescriptors.add(listAgentGatewaysMethodDescriptor); + methodDescriptors.add(getAgentGatewayMethodDescriptor); + methodDescriptors.add(createAgentGatewayMethodDescriptor); + methodDescriptors.add(updateAgentGatewayMethodDescriptor); + methodDescriptors.add(deleteAgentGatewayMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); methodDescriptors.add(setIamPolicyMethodDescriptor); @@ -4770,6 +5105,56 @@ public UnaryCallable getMeshRouteViewCal return listMeshRouteViewsPagedCallable; } + @Override + public UnaryCallable + listAgentGatewaysCallable() { + return listAgentGatewaysCallable; + } + + @Override + public UnaryCallable + listAgentGatewaysPagedCallable() { + return listAgentGatewaysPagedCallable; + } + + @Override + public UnaryCallable getAgentGatewayCallable() { + return getAgentGatewayCallable; + } + + @Override + public UnaryCallable createAgentGatewayCallable() { + return createAgentGatewayCallable; + } + + @Override + public OperationCallable + createAgentGatewayOperationCallable() { + return createAgentGatewayOperationCallable; + } + + @Override + public UnaryCallable updateAgentGatewayCallable() { + return updateAgentGatewayCallable; + } + + @Override + public OperationCallable + updateAgentGatewayOperationCallable() { + return updateAgentGatewayOperationCallable; + } + + @Override + public UnaryCallable deleteAgentGatewayCallable() { + return deleteAgentGatewayCallable; + } + + @Override + public OperationCallable + deleteAgentGatewayOperationCallable() { + return deleteAgentGatewayOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStub.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStub.java index 081b43fe5e2a..2f9db30fa5d3 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStub.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStub.java @@ -16,6 +16,7 @@ package com.google.cloud.networkservices.v1.stub; +import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListAgentGatewaysPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListEndpointPoliciesPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewayRouteViewsPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewaysPagedResponse; @@ -38,6 +39,8 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.CreateAgentGatewayRequest; import com.google.cloud.networkservices.v1.CreateEndpointPolicyRequest; import com.google.cloud.networkservices.v1.CreateGatewayRequest; import com.google.cloud.networkservices.v1.CreateGrpcRouteRequest; @@ -49,6 +52,7 @@ import com.google.cloud.networkservices.v1.CreateTlsRouteRequest; import com.google.cloud.networkservices.v1.CreateWasmPluginRequest; import com.google.cloud.networkservices.v1.CreateWasmPluginVersionRequest; +import com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest; import com.google.cloud.networkservices.v1.DeleteEndpointPolicyRequest; import com.google.cloud.networkservices.v1.DeleteGatewayRequest; import com.google.cloud.networkservices.v1.DeleteGrpcRouteRequest; @@ -63,6 +67,7 @@ import com.google.cloud.networkservices.v1.EndpointPolicy; import com.google.cloud.networkservices.v1.Gateway; import com.google.cloud.networkservices.v1.GatewayRouteView; +import com.google.cloud.networkservices.v1.GetAgentGatewayRequest; import com.google.cloud.networkservices.v1.GetEndpointPolicyRequest; import com.google.cloud.networkservices.v1.GetGatewayRequest; import com.google.cloud.networkservices.v1.GetGatewayRouteViewRequest; @@ -78,6 +83,8 @@ import com.google.cloud.networkservices.v1.GetWasmPluginVersionRequest; import com.google.cloud.networkservices.v1.GrpcRoute; import com.google.cloud.networkservices.v1.HttpRoute; +import com.google.cloud.networkservices.v1.ListAgentGatewaysRequest; +import com.google.cloud.networkservices.v1.ListAgentGatewaysResponse; import com.google.cloud.networkservices.v1.ListEndpointPoliciesRequest; import com.google.cloud.networkservices.v1.ListEndpointPoliciesResponse; import com.google.cloud.networkservices.v1.ListGatewayRouteViewsRequest; @@ -111,6 +118,7 @@ import com.google.cloud.networkservices.v1.ServiceLbPolicy; import com.google.cloud.networkservices.v1.TcpRoute; import com.google.cloud.networkservices.v1.TlsRoute; +import com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest; import com.google.cloud.networkservices.v1.UpdateEndpointPolicyRequest; import com.google.cloud.networkservices.v1.UpdateGatewayRequest; import com.google.cloud.networkservices.v1.UpdateGrpcRouteRequest; @@ -628,6 +636,50 @@ public UnaryCallable getMeshRouteViewCal throw new UnsupportedOperationException("Not implemented: listMeshRouteViewsCallable()"); } + public UnaryCallable + listAgentGatewaysPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAgentGatewaysPagedCallable()"); + } + + public UnaryCallable + listAgentGatewaysCallable() { + throw new UnsupportedOperationException("Not implemented: listAgentGatewaysCallable()"); + } + + public UnaryCallable getAgentGatewayCallable() { + throw new UnsupportedOperationException("Not implemented: getAgentGatewayCallable()"); + } + + public OperationCallable + createAgentGatewayOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createAgentGatewayOperationCallable()"); + } + + public UnaryCallable createAgentGatewayCallable() { + throw new UnsupportedOperationException("Not implemented: createAgentGatewayCallable()"); + } + + public OperationCallable + updateAgentGatewayOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateAgentGatewayOperationCallable()"); + } + + public UnaryCallable updateAgentGatewayCallable() { + throw new UnsupportedOperationException("Not implemented: updateAgentGatewayCallable()"); + } + + public OperationCallable + deleteAgentGatewayOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteAgentGatewayOperationCallable()"); + } + + public UnaryCallable deleteAgentGatewayCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAgentGatewayCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStubSettings.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStubSettings.java index 1d0d4fd3d99b..b7fcf4a19ccf 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStubSettings.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStubSettings.java @@ -16,6 +16,7 @@ package com.google.cloud.networkservices.v1.stub; +import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListAgentGatewaysPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListEndpointPoliciesPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewayRouteViewsPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewaysPagedResponse; @@ -66,6 +67,8 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.CreateAgentGatewayRequest; import com.google.cloud.networkservices.v1.CreateEndpointPolicyRequest; import com.google.cloud.networkservices.v1.CreateGatewayRequest; import com.google.cloud.networkservices.v1.CreateGrpcRouteRequest; @@ -77,6 +80,7 @@ import com.google.cloud.networkservices.v1.CreateTlsRouteRequest; import com.google.cloud.networkservices.v1.CreateWasmPluginRequest; import com.google.cloud.networkservices.v1.CreateWasmPluginVersionRequest; +import com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest; import com.google.cloud.networkservices.v1.DeleteEndpointPolicyRequest; import com.google.cloud.networkservices.v1.DeleteGatewayRequest; import com.google.cloud.networkservices.v1.DeleteGrpcRouteRequest; @@ -91,6 +95,7 @@ import com.google.cloud.networkservices.v1.EndpointPolicy; import com.google.cloud.networkservices.v1.Gateway; import com.google.cloud.networkservices.v1.GatewayRouteView; +import com.google.cloud.networkservices.v1.GetAgentGatewayRequest; import com.google.cloud.networkservices.v1.GetEndpointPolicyRequest; import com.google.cloud.networkservices.v1.GetGatewayRequest; import com.google.cloud.networkservices.v1.GetGatewayRouteViewRequest; @@ -106,6 +111,8 @@ import com.google.cloud.networkservices.v1.GetWasmPluginVersionRequest; import com.google.cloud.networkservices.v1.GrpcRoute; import com.google.cloud.networkservices.v1.HttpRoute; +import com.google.cloud.networkservices.v1.ListAgentGatewaysRequest; +import com.google.cloud.networkservices.v1.ListAgentGatewaysResponse; import com.google.cloud.networkservices.v1.ListEndpointPoliciesRequest; import com.google.cloud.networkservices.v1.ListEndpointPoliciesResponse; import com.google.cloud.networkservices.v1.ListGatewayRouteViewsRequest; @@ -139,6 +146,7 @@ import com.google.cloud.networkservices.v1.ServiceLbPolicy; import com.google.cloud.networkservices.v1.TcpRoute; import com.google.cloud.networkservices.v1.TlsRoute; +import com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest; import com.google.cloud.networkservices.v1.UpdateEndpointPolicyRequest; import com.google.cloud.networkservices.v1.UpdateGatewayRequest; import com.google.cloud.networkservices.v1.UpdateGrpcRouteRequest; @@ -429,6 +437,19 @@ public class NetworkServicesStubSettings extends StubSettings listMeshRouteViewsSettings; + private final PagedCallSettings< + ListAgentGatewaysRequest, ListAgentGatewaysResponse, ListAgentGatewaysPagedResponse> + listAgentGatewaysSettings; + private final UnaryCallSettings getAgentGatewaySettings; + private final UnaryCallSettings createAgentGatewaySettings; + private final OperationCallSettings + createAgentGatewayOperationSettings; + private final UnaryCallSettings updateAgentGatewaySettings; + private final OperationCallSettings + updateAgentGatewayOperationSettings; + private final UnaryCallSettings deleteAgentGatewaySettings; + private final OperationCallSettings + deleteAgentGatewayOperationSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -914,6 +935,44 @@ public Iterable extractResources(ListMeshRouteViewsResponse paylo } }; + private static final PagedListDescriptor< + ListAgentGatewaysRequest, ListAgentGatewaysResponse, AgentGateway> + LIST_AGENT_GATEWAYS_PAGE_STR_DESC = + new PagedListDescriptor< + ListAgentGatewaysRequest, ListAgentGatewaysResponse, AgentGateway>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAgentGatewaysRequest injectToken( + ListAgentGatewaysRequest payload, String token) { + return ListAgentGatewaysRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAgentGatewaysRequest injectPageSize( + ListAgentGatewaysRequest payload, int pageSize) { + return ListAgentGatewaysRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAgentGatewaysRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAgentGatewaysResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAgentGatewaysResponse payload) { + return payload.getAgentGatewaysList(); + } + }; + private static final PagedListDescriptor LIST_LOCATIONS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -1207,6 +1266,27 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListAgentGatewaysRequest, ListAgentGatewaysResponse, ListAgentGatewaysPagedResponse> + LIST_AGENT_GATEWAYS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAgentGatewaysRequest, + ListAgentGatewaysResponse, + ListAgentGatewaysPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAgentGatewaysRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_AGENT_GATEWAYS_PAGE_STR_DESC, request, context); + return ListAgentGatewaysPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> LIST_LOCATIONS_PAGE_STR_FACT = @@ -1744,6 +1824,51 @@ public UnaryCallSettings getMeshRouteVie return listMeshRouteViewsSettings; } + /** Returns the object with the settings used for calls to listAgentGateways. */ + public PagedCallSettings< + ListAgentGatewaysRequest, ListAgentGatewaysResponse, ListAgentGatewaysPagedResponse> + listAgentGatewaysSettings() { + return listAgentGatewaysSettings; + } + + /** Returns the object with the settings used for calls to getAgentGateway. */ + public UnaryCallSettings getAgentGatewaySettings() { + return getAgentGatewaySettings; + } + + /** Returns the object with the settings used for calls to createAgentGateway. */ + public UnaryCallSettings createAgentGatewaySettings() { + return createAgentGatewaySettings; + } + + /** Returns the object with the settings used for calls to createAgentGateway. */ + public OperationCallSettings + createAgentGatewayOperationSettings() { + return createAgentGatewayOperationSettings; + } + + /** Returns the object with the settings used for calls to updateAgentGateway. */ + public UnaryCallSettings updateAgentGatewaySettings() { + return updateAgentGatewaySettings; + } + + /** Returns the object with the settings used for calls to updateAgentGateway. */ + public OperationCallSettings + updateAgentGatewayOperationSettings() { + return updateAgentGatewayOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteAgentGateway. */ + public UnaryCallSettings deleteAgentGatewaySettings() { + return deleteAgentGatewaySettings; + } + + /** Returns the object with the settings used for calls to deleteAgentGateway. */ + public OperationCallSettings + deleteAgentGatewayOperationSettings() { + return deleteAgentGatewayOperationSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -1983,6 +2108,17 @@ protected NetworkServicesStubSettings(Builder settingsBuilder) throws IOExceptio getMeshRouteViewSettings = settingsBuilder.getMeshRouteViewSettings().build(); listGatewayRouteViewsSettings = settingsBuilder.listGatewayRouteViewsSettings().build(); listMeshRouteViewsSettings = settingsBuilder.listMeshRouteViewsSettings().build(); + listAgentGatewaysSettings = settingsBuilder.listAgentGatewaysSettings().build(); + getAgentGatewaySettings = settingsBuilder.getAgentGatewaySettings().build(); + createAgentGatewaySettings = settingsBuilder.createAgentGatewaySettings().build(); + createAgentGatewayOperationSettings = + settingsBuilder.createAgentGatewayOperationSettings().build(); + updateAgentGatewaySettings = settingsBuilder.updateAgentGatewaySettings().build(); + updateAgentGatewayOperationSettings = + settingsBuilder.updateAgentGatewayOperationSettings().build(); + deleteAgentGatewaySettings = settingsBuilder.deleteAgentGatewaySettings().build(); + deleteAgentGatewayOperationSettings = + settingsBuilder.deleteAgentGatewayOperationSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -2209,6 +2345,25 @@ public static class Builder extends StubSettings.Builder listMeshRouteViewsSettings; + private final PagedCallSettings.Builder< + ListAgentGatewaysRequest, ListAgentGatewaysResponse, ListAgentGatewaysPagedResponse> + listAgentGatewaysSettings; + private final UnaryCallSettings.Builder + getAgentGatewaySettings; + private final UnaryCallSettings.Builder + createAgentGatewaySettings; + private final OperationCallSettings.Builder< + CreateAgentGatewayRequest, AgentGateway, OperationMetadata> + createAgentGatewayOperationSettings; + private final UnaryCallSettings.Builder + updateAgentGatewaySettings; + private final OperationCallSettings.Builder< + UpdateAgentGatewayRequest, AgentGateway, OperationMetadata> + updateAgentGatewayOperationSettings; + private final UnaryCallSettings.Builder + deleteAgentGatewaySettings; + private final OperationCallSettings.Builder + deleteAgentGatewayOperationSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -2347,6 +2502,14 @@ protected Builder(ClientContext clientContext) { PagedCallSettings.newBuilder(LIST_GATEWAY_ROUTE_VIEWS_PAGE_STR_FACT); listMeshRouteViewsSettings = PagedCallSettings.newBuilder(LIST_MESH_ROUTE_VIEWS_PAGE_STR_FACT); + listAgentGatewaysSettings = PagedCallSettings.newBuilder(LIST_AGENT_GATEWAYS_PAGE_STR_FACT); + getAgentGatewaySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createAgentGatewaySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createAgentGatewayOperationSettings = OperationCallSettings.newBuilder(); + updateAgentGatewaySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAgentGatewayOperationSettings = OperationCallSettings.newBuilder(); + deleteAgentGatewaySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteAgentGatewayOperationSettings = OperationCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -2413,6 +2576,11 @@ protected Builder(ClientContext clientContext) { getMeshRouteViewSettings, listGatewayRouteViewsSettings, listMeshRouteViewsSettings, + listAgentGatewaysSettings, + getAgentGatewaySettings, + createAgentGatewaySettings, + updateAgentGatewaySettings, + deleteAgentGatewaySettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -2525,6 +2693,17 @@ protected Builder(NetworkServicesStubSettings settings) { getMeshRouteViewSettings = settings.getMeshRouteViewSettings.toBuilder(); listGatewayRouteViewsSettings = settings.listGatewayRouteViewsSettings.toBuilder(); listMeshRouteViewsSettings = settings.listMeshRouteViewsSettings.toBuilder(); + listAgentGatewaysSettings = settings.listAgentGatewaysSettings.toBuilder(); + getAgentGatewaySettings = settings.getAgentGatewaySettings.toBuilder(); + createAgentGatewaySettings = settings.createAgentGatewaySettings.toBuilder(); + createAgentGatewayOperationSettings = + settings.createAgentGatewayOperationSettings.toBuilder(); + updateAgentGatewaySettings = settings.updateAgentGatewaySettings.toBuilder(); + updateAgentGatewayOperationSettings = + settings.updateAgentGatewayOperationSettings.toBuilder(); + deleteAgentGatewaySettings = settings.deleteAgentGatewaySettings.toBuilder(); + deleteAgentGatewayOperationSettings = + settings.deleteAgentGatewayOperationSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -2591,6 +2770,11 @@ protected Builder(NetworkServicesStubSettings settings) { getMeshRouteViewSettings, listGatewayRouteViewsSettings, listMeshRouteViewsSettings, + listAgentGatewaysSettings, + getAgentGatewaySettings, + createAgentGatewaySettings, + updateAgentGatewaySettings, + deleteAgentGatewaySettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -2913,6 +3097,31 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .listAgentGatewaysSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .getAgentGatewaySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .createAgentGatewaySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .updateAgentGatewaySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .deleteAgentGatewaySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) @@ -3701,6 +3910,78 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .createAgentGatewayOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AgentGateway.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateAgentGatewayOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AgentGateway.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteAgentGatewayOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -4263,6 +4544,55 @@ public UnaryCallSettings.Builder deleteMeshSetting return listMeshRouteViewsSettings; } + /** Returns the builder for the settings used for calls to listAgentGateways. */ + public PagedCallSettings.Builder< + ListAgentGatewaysRequest, ListAgentGatewaysResponse, ListAgentGatewaysPagedResponse> + listAgentGatewaysSettings() { + return listAgentGatewaysSettings; + } + + /** Returns the builder for the settings used for calls to getAgentGateway. */ + public UnaryCallSettings.Builder + getAgentGatewaySettings() { + return getAgentGatewaySettings; + } + + /** Returns the builder for the settings used for calls to createAgentGateway. */ + public UnaryCallSettings.Builder + createAgentGatewaySettings() { + return createAgentGatewaySettings; + } + + /** Returns the builder for the settings used for calls to createAgentGateway. */ + public OperationCallSettings.Builder + createAgentGatewayOperationSettings() { + return createAgentGatewayOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateAgentGateway. */ + public UnaryCallSettings.Builder + updateAgentGatewaySettings() { + return updateAgentGatewaySettings; + } + + /** Returns the builder for the settings used for calls to updateAgentGateway. */ + public OperationCallSettings.Builder + updateAgentGatewayOperationSettings() { + return updateAgentGatewayOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteAgentGateway. */ + public UnaryCallSettings.Builder + deleteAgentGatewaySettings() { + return deleteAgentGatewaySettings; + } + + /** Returns the builder for the settings used for calls to deleteAgentGateway. */ + public OperationCallSettings.Builder + deleteAgentGatewayOperationSettings() { + return deleteAgentGatewayOperationSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-networkservices/google-cloud-networkservices/src/main/resources/META-INF/native-image/com.google.cloud.networkservices.v1/reflect-config.json b/java-networkservices/google-cloud-networkservices/src/main/resources/META-INF/native-image/com.google.cloud.networkservices.v1/reflect-config.json index a7bc72219571..76caf494c802 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/resources/META-INF/native-image/com.google.cloud.networkservices.v1/reflect-config.json +++ b/java-networkservices/google-cloud-networkservices/src/main/resources/META-INF/native-image/com.google.cloud.networkservices.v1/reflect-config.json @@ -593,6 +593,168 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$AgentGatewayOutputCard", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$AgentGatewayOutputCard$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$GoogleManaged", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$GoogleManaged$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$GoogleManaged$GovernedAccessPath", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$NetworkConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$NetworkConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$NetworkConfig$DnsPeeringConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$NetworkConfig$DnsPeeringConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$NetworkConfig$Egress", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$NetworkConfig$Egress$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$NetworkConfig$Egress$TrustConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$NetworkConfig$Egress$TrustConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$Protocol", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$SelfManaged", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$SelfManaged$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkservices.v1.AuthzExtension", "queryAllDeclaredConstructors": true, @@ -611,6 +773,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkservices.v1.BodySendMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.CreateAgentGatewayRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.CreateAgentGatewayRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkservices.v1.CreateAuthzExtensionRequest", "queryAllDeclaredConstructors": true, @@ -881,6 +1070,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkservices.v1.DeleteAuthzExtensionRequest", "queryAllDeclaredConstructors": true, @@ -1376,6 +1583,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkservices.v1.GetAgentGatewayRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.GetAgentGatewayRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkservices.v1.GetAuthzExtensionRequest", "queryAllDeclaredConstructors": true, @@ -2321,6 +2546,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkservices.v1.ListAgentGatewaysRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.ListAgentGatewaysRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.ListAgentGatewaysResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.ListAgentGatewaysResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkservices.v1.ListAuthzExtensionsRequest", "queryAllDeclaredConstructors": true, @@ -3311,6 +3572,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkservices.v1.UpdateAuthzExtensionRequest", "queryAllDeclaredConstructors": true, diff --git a/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/DepServiceClientHttpJsonTest.java b/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/DepServiceClientHttpJsonTest.java index 046166836ff8..a3d839af83cd 100644 --- a/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/DepServiceClientHttpJsonTest.java +++ b/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/DepServiceClientHttpJsonTest.java @@ -1775,6 +1775,7 @@ public void getAuthzExtensionTest() throws Exception { .setFailOpen(true) .setMetadata(Struct.newBuilder().build()) .addAllForwardHeaders(new ArrayList()) + .addAllForwardAttributes(new ArrayList()) .setWireFormat(WireFormat.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -1833,6 +1834,7 @@ public void getAuthzExtensionTest2() throws Exception { .setFailOpen(true) .setMetadata(Struct.newBuilder().build()) .addAllForwardHeaders(new ArrayList()) + .addAllForwardAttributes(new ArrayList()) .setWireFormat(WireFormat.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -1892,6 +1894,7 @@ public void createAuthzExtensionTest() throws Exception { .setFailOpen(true) .setMetadata(Struct.newBuilder().build()) .addAllForwardHeaders(new ArrayList()) + .addAllForwardAttributes(new ArrayList()) .setWireFormat(WireFormat.forNumber(0)) .build(); Operation resultOperation = @@ -1959,6 +1962,7 @@ public void createAuthzExtensionTest2() throws Exception { .setFailOpen(true) .setMetadata(Struct.newBuilder().build()) .addAllForwardHeaders(new ArrayList()) + .addAllForwardAttributes(new ArrayList()) .setWireFormat(WireFormat.forNumber(0)) .build(); Operation resultOperation = @@ -2026,6 +2030,7 @@ public void updateAuthzExtensionTest() throws Exception { .setFailOpen(true) .setMetadata(Struct.newBuilder().build()) .addAllForwardHeaders(new ArrayList()) + .addAllForwardAttributes(new ArrayList()) .setWireFormat(WireFormat.forNumber(0)) .build(); Operation resultOperation = @@ -2051,6 +2056,7 @@ public void updateAuthzExtensionTest() throws Exception { .setFailOpen(true) .setMetadata(Struct.newBuilder().build()) .addAllForwardHeaders(new ArrayList()) + .addAllForwardAttributes(new ArrayList()) .setWireFormat(WireFormat.forNumber(0)) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -2097,6 +2103,7 @@ public void updateAuthzExtensionExceptionTest() throws Exception { .setFailOpen(true) .setMetadata(Struct.newBuilder().build()) .addAllForwardHeaders(new ArrayList()) + .addAllForwardAttributes(new ArrayList()) .setWireFormat(WireFormat.forNumber(0)) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/DepServiceClientTest.java b/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/DepServiceClientTest.java index 9658fb789687..09dacc1bc7d0 100644 --- a/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/DepServiceClientTest.java +++ b/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/DepServiceClientTest.java @@ -1607,6 +1607,7 @@ public void getAuthzExtensionTest() throws Exception { .setFailOpen(true) .setMetadata(Struct.newBuilder().build()) .addAllForwardHeaders(new ArrayList()) + .addAllForwardAttributes(new ArrayList()) .setWireFormat(WireFormat.forNumber(0)) .build(); mockDepService.addResponse(expectedResponse); @@ -1659,6 +1660,7 @@ public void getAuthzExtensionTest2() throws Exception { .setFailOpen(true) .setMetadata(Struct.newBuilder().build()) .addAllForwardHeaders(new ArrayList()) + .addAllForwardAttributes(new ArrayList()) .setWireFormat(WireFormat.forNumber(0)) .build(); mockDepService.addResponse(expectedResponse); @@ -1710,6 +1712,7 @@ public void createAuthzExtensionTest() throws Exception { .setFailOpen(true) .setMetadata(Struct.newBuilder().build()) .addAllForwardHeaders(new ArrayList()) + .addAllForwardAttributes(new ArrayList()) .setWireFormat(WireFormat.forNumber(0)) .build(); Operation resultOperation = @@ -1777,6 +1780,7 @@ public void createAuthzExtensionTest2() throws Exception { .setFailOpen(true) .setMetadata(Struct.newBuilder().build()) .addAllForwardHeaders(new ArrayList()) + .addAllForwardAttributes(new ArrayList()) .setWireFormat(WireFormat.forNumber(0)) .build(); Operation resultOperation = @@ -1844,6 +1848,7 @@ public void updateAuthzExtensionTest() throws Exception { .setFailOpen(true) .setMetadata(Struct.newBuilder().build()) .addAllForwardHeaders(new ArrayList()) + .addAllForwardAttributes(new ArrayList()) .setWireFormat(WireFormat.forNumber(0)) .build(); Operation resultOperation = diff --git a/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/MockNetworkServicesImpl.java b/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/MockNetworkServicesImpl.java index 06cd180267e1..2ffa2940dffe 100644 --- a/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/MockNetworkServicesImpl.java +++ b/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/MockNetworkServicesImpl.java @@ -1291,4 +1291,110 @@ public void listMeshRouteViews( Exception.class.getName()))); } } + + @Override + public void listAgentGateways( + ListAgentGatewaysRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAgentGatewaysResponse) { + requests.add(request); + responseObserver.onNext(((ListAgentGatewaysResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListAgentGateways, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAgentGatewaysResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAgentGateway( + GetAgentGatewayRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AgentGateway) { + requests.add(request); + responseObserver.onNext(((AgentGateway) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetAgentGateway, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AgentGateway.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createAgentGateway( + CreateAgentGatewayRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateAgentGateway, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateAgentGateway( + UpdateAgentGatewayRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateAgentGateway, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteAgentGateway( + DeleteAgentGatewayRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteAgentGateway, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/NetworkServicesClientHttpJsonTest.java b/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/NetworkServicesClientHttpJsonTest.java index 3bafed144056..c6da7fb99e8c 100644 --- a/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/NetworkServicesClientHttpJsonTest.java +++ b/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/NetworkServicesClientHttpJsonTest.java @@ -16,6 +16,7 @@ package com.google.cloud.networkservices.v1; +import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListAgentGatewaysPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListEndpointPoliciesPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewayRouteViewsPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewaysPagedResponse; @@ -1678,6 +1679,7 @@ public void getGatewayTest() throws Exception { .setDescription("description-1724546052") .addAllAddresses(new ArrayList()) .addAllPorts(new ArrayList()) + .setAllPorts(true) .setScope("scope109264468") .setServerTlsPolicy("serverTlsPolicy-1897015798") .addAllCertificateUrls(new ArrayList()) @@ -1685,6 +1687,7 @@ public void getGatewayTest() throws Exception { .setNetwork("network1843485230") .setSubnetwork("subnetwork-1302785042") .setEnvoyHeaders(EnvoyHeaders.forNumber(0)) + .setAllowGlobalAccess(true) .build(); mockService.addResponse(expectedResponse); @@ -1736,6 +1739,7 @@ public void getGatewayTest2() throws Exception { .setDescription("description-1724546052") .addAllAddresses(new ArrayList()) .addAllPorts(new ArrayList()) + .setAllPorts(true) .setScope("scope109264468") .setServerTlsPolicy("serverTlsPolicy-1897015798") .addAllCertificateUrls(new ArrayList()) @@ -1743,6 +1747,7 @@ public void getGatewayTest2() throws Exception { .setNetwork("network1843485230") .setSubnetwork("subnetwork-1302785042") .setEnvoyHeaders(EnvoyHeaders.forNumber(0)) + .setAllowGlobalAccess(true) .build(); mockService.addResponse(expectedResponse); @@ -1794,6 +1799,7 @@ public void createGatewayTest() throws Exception { .setDescription("description-1724546052") .addAllAddresses(new ArrayList()) .addAllPorts(new ArrayList()) + .setAllPorts(true) .setScope("scope109264468") .setServerTlsPolicy("serverTlsPolicy-1897015798") .addAllCertificateUrls(new ArrayList()) @@ -1801,6 +1807,7 @@ public void createGatewayTest() throws Exception { .setNetwork("network1843485230") .setSubnetwork("subnetwork-1302785042") .setEnvoyHeaders(EnvoyHeaders.forNumber(0)) + .setAllowGlobalAccess(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1861,6 +1868,7 @@ public void createGatewayTest2() throws Exception { .setDescription("description-1724546052") .addAllAddresses(new ArrayList()) .addAllPorts(new ArrayList()) + .setAllPorts(true) .setScope("scope109264468") .setServerTlsPolicy("serverTlsPolicy-1897015798") .addAllCertificateUrls(new ArrayList()) @@ -1868,6 +1876,7 @@ public void createGatewayTest2() throws Exception { .setNetwork("network1843485230") .setSubnetwork("subnetwork-1302785042") .setEnvoyHeaders(EnvoyHeaders.forNumber(0)) + .setAllowGlobalAccess(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1928,6 +1937,7 @@ public void updateGatewayTest() throws Exception { .setDescription("description-1724546052") .addAllAddresses(new ArrayList()) .addAllPorts(new ArrayList()) + .setAllPorts(true) .setScope("scope109264468") .setServerTlsPolicy("serverTlsPolicy-1897015798") .addAllCertificateUrls(new ArrayList()) @@ -1935,6 +1945,7 @@ public void updateGatewayTest() throws Exception { .setNetwork("network1843485230") .setSubnetwork("subnetwork-1302785042") .setEnvoyHeaders(EnvoyHeaders.forNumber(0)) + .setAllowGlobalAccess(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1954,6 +1965,7 @@ public void updateGatewayTest() throws Exception { .setDescription("description-1724546052") .addAllAddresses(new ArrayList()) .addAllPorts(new ArrayList()) + .setAllPorts(true) .setScope("scope109264468") .setServerTlsPolicy("serverTlsPolicy-1897015798") .addAllCertificateUrls(new ArrayList()) @@ -1961,6 +1973,7 @@ public void updateGatewayTest() throws Exception { .setNetwork("network1843485230") .setSubnetwork("subnetwork-1302785042") .setEnvoyHeaders(EnvoyHeaders.forNumber(0)) + .setAllowGlobalAccess(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -2000,6 +2013,7 @@ public void updateGatewayExceptionTest() throws Exception { .setDescription("description-1724546052") .addAllAddresses(new ArrayList()) .addAllPorts(new ArrayList()) + .setAllPorts(true) .setScope("scope109264468") .setServerTlsPolicy("serverTlsPolicy-1897015798") .addAllCertificateUrls(new ArrayList()) @@ -2007,6 +2021,7 @@ public void updateGatewayExceptionTest() throws Exception { .setNetwork("network1843485230") .setSubnetwork("subnetwork-1302785042") .setEnvoyHeaders(EnvoyHeaders.forNumber(0)) + .setAllowGlobalAccess(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateGatewayAsync(gateway, updateMask).get(); @@ -3722,6 +3737,7 @@ public void getTlsRouteTest() throws Exception { .addAllRules(new ArrayList()) .addAllMeshes(new ArrayList()) .addAllGateways(new ArrayList()) + .addAllTargetProxies(new ArrayList()) .putAllLabels(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -3774,6 +3790,7 @@ public void getTlsRouteTest2() throws Exception { .addAllRules(new ArrayList()) .addAllMeshes(new ArrayList()) .addAllGateways(new ArrayList()) + .addAllTargetProxies(new ArrayList()) .putAllLabels(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -3826,6 +3843,7 @@ public void createTlsRouteTest() throws Exception { .addAllRules(new ArrayList()) .addAllMeshes(new ArrayList()) .addAllGateways(new ArrayList()) + .addAllTargetProxies(new ArrayList()) .putAllLabels(new HashMap()) .build(); Operation resultOperation = @@ -3887,6 +3905,7 @@ public void createTlsRouteTest2() throws Exception { .addAllRules(new ArrayList()) .addAllMeshes(new ArrayList()) .addAllGateways(new ArrayList()) + .addAllTargetProxies(new ArrayList()) .putAllLabels(new HashMap()) .build(); Operation resultOperation = @@ -3948,6 +3967,7 @@ public void updateTlsRouteTest() throws Exception { .addAllRules(new ArrayList()) .addAllMeshes(new ArrayList()) .addAllGateways(new ArrayList()) + .addAllTargetProxies(new ArrayList()) .putAllLabels(new HashMap()) .build(); Operation resultOperation = @@ -3968,6 +3988,7 @@ public void updateTlsRouteTest() throws Exception { .addAllRules(new ArrayList()) .addAllMeshes(new ArrayList()) .addAllGateways(new ArrayList()) + .addAllTargetProxies(new ArrayList()) .putAllLabels(new HashMap()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -4008,6 +4029,7 @@ public void updateTlsRouteExceptionTest() throws Exception { .addAllRules(new ArrayList()) .addAllMeshes(new ArrayList()) .addAllGateways(new ArrayList()) + .addAllTargetProxies(new ArrayList()) .putAllLabels(new HashMap()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -6013,6 +6035,512 @@ public void listMeshRouteViewsExceptionTest2() throws Exception { } } + @Test + public void listAgentGatewaysTest() throws Exception { + AgentGateway responsesElement = AgentGateway.newBuilder().build(); + ListAgentGatewaysResponse expectedResponse = + ListAgentGatewaysResponse.newBuilder() + .setNextPageToken("") + .addAllAgentGateways(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAgentGatewaysPagedResponse pagedListResponse = client.listAgentGateways(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAgentGatewaysList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAgentGatewaysExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAgentGateways(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAgentGatewaysTest2() throws Exception { + AgentGateway responsesElement = AgentGateway.newBuilder().build(); + ListAgentGatewaysResponse expectedResponse = + ListAgentGatewaysResponse.newBuilder() + .setNextPageToken("") + .addAllAgentGateways(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListAgentGatewaysPagedResponse pagedListResponse = client.listAgentGateways(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAgentGatewaysList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAgentGatewaysExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listAgentGateways(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAgentGatewayTest() throws Exception { + AgentGateway expectedResponse = + AgentGateway.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setEtag("etag3123477") + .addAllProtocols(new ArrayList()) + .addAllRegistries(new ArrayList()) + .setNetworkConfig(AgentGateway.NetworkConfig.newBuilder().build()) + .setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AgentGatewayName name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]"); + + AgentGateway actualResponse = client.getAgentGateway(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAgentGatewayExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AgentGatewayName name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]"); + client.getAgentGateway(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAgentGatewayTest2() throws Exception { + AgentGateway expectedResponse = + AgentGateway.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setEtag("etag3123477") + .addAllProtocols(new ArrayList()) + .addAllRegistries(new ArrayList()) + .setNetworkConfig(AgentGateway.NetworkConfig.newBuilder().build()) + .setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7322/locations/location-7322/agentGateways/agentGateway-7322"; + + AgentGateway actualResponse = client.getAgentGateway(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAgentGatewayExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7322/locations/location-7322/agentGateways/agentGateway-7322"; + client.getAgentGateway(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAgentGatewayTest() throws Exception { + AgentGateway expectedResponse = + AgentGateway.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setEtag("etag3123477") + .addAllProtocols(new ArrayList()) + .addAllRegistries(new ArrayList()) + .setNetworkConfig(AgentGateway.NetworkConfig.newBuilder().build()) + .setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAgentGatewayTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AgentGateway agentGateway = AgentGateway.newBuilder().build(); + String agentGatewayId = "agentGatewayId1729577210"; + + AgentGateway actualResponse = + client.createAgentGatewayAsync(parent, agentGateway, agentGatewayId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAgentGatewayExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AgentGateway agentGateway = AgentGateway.newBuilder().build(); + String agentGatewayId = "agentGatewayId1729577210"; + client.createAgentGatewayAsync(parent, agentGateway, agentGatewayId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createAgentGatewayTest2() throws Exception { + AgentGateway expectedResponse = + AgentGateway.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setEtag("etag3123477") + .addAllProtocols(new ArrayList()) + .addAllRegistries(new ArrayList()) + .setNetworkConfig(AgentGateway.NetworkConfig.newBuilder().build()) + .setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAgentGatewayTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + AgentGateway agentGateway = AgentGateway.newBuilder().build(); + String agentGatewayId = "agentGatewayId1729577210"; + + AgentGateway actualResponse = + client.createAgentGatewayAsync(parent, agentGateway, agentGatewayId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAgentGatewayExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + AgentGateway agentGateway = AgentGateway.newBuilder().build(); + String agentGatewayId = "agentGatewayId1729577210"; + client.createAgentGatewayAsync(parent, agentGateway, agentGatewayId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateAgentGatewayTest() throws Exception { + AgentGateway expectedResponse = + AgentGateway.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setEtag("etag3123477") + .addAllProtocols(new ArrayList()) + .addAllRegistries(new ArrayList()) + .setNetworkConfig(AgentGateway.NetworkConfig.newBuilder().build()) + .setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateAgentGatewayTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AgentGateway agentGateway = + AgentGateway.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setEtag("etag3123477") + .addAllProtocols(new ArrayList()) + .addAllRegistries(new ArrayList()) + .setNetworkConfig(AgentGateway.NetworkConfig.newBuilder().build()) + .setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AgentGateway actualResponse = client.updateAgentGatewayAsync(agentGateway, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateAgentGatewayExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AgentGateway agentGateway = + AgentGateway.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setEtag("etag3123477") + .addAllProtocols(new ArrayList()) + .addAllRegistries(new ArrayList()) + .setNetworkConfig(AgentGateway.NetworkConfig.newBuilder().build()) + .setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAgentGatewayAsync(agentGateway, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteAgentGatewayTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAgentGatewayTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AgentGatewayName name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]"); + + client.deleteAgentGatewayAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAgentGatewayExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AgentGatewayName name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]"); + client.deleteAgentGatewayAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteAgentGatewayTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAgentGatewayTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-7322/locations/location-7322/agentGateways/agentGateway-7322"; + + client.deleteAgentGatewayAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAgentGatewayExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7322/locations/location-7322/agentGateways/agentGateway-7322"; + client.deleteAgentGatewayAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/NetworkServicesClientTest.java b/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/NetworkServicesClientTest.java index 7ca5705d9539..4364ecd50977 100644 --- a/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/NetworkServicesClientTest.java +++ b/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/NetworkServicesClientTest.java @@ -16,6 +16,7 @@ package com.google.cloud.networkservices.v1; +import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListAgentGatewaysPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListEndpointPoliciesPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewayRouteViewsPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewaysPagedResponse; @@ -1534,6 +1535,7 @@ public void getGatewayTest() throws Exception { .setDescription("description-1724546052") .addAllAddresses(new ArrayList()) .addAllPorts(new ArrayList()) + .setAllPorts(true) .setScope("scope109264468") .setServerTlsPolicy("serverTlsPolicy-1897015798") .addAllCertificateUrls(new ArrayList()) @@ -1541,6 +1543,7 @@ public void getGatewayTest() throws Exception { .setNetwork("network1843485230") .setSubnetwork("subnetwork-1302785042") .setEnvoyHeaders(EnvoyHeaders.forNumber(0)) + .setAllowGlobalAccess(true) .build(); mockNetworkServices.addResponse(expectedResponse); @@ -1586,6 +1589,7 @@ public void getGatewayTest2() throws Exception { .setDescription("description-1724546052") .addAllAddresses(new ArrayList()) .addAllPorts(new ArrayList()) + .setAllPorts(true) .setScope("scope109264468") .setServerTlsPolicy("serverTlsPolicy-1897015798") .addAllCertificateUrls(new ArrayList()) @@ -1593,6 +1597,7 @@ public void getGatewayTest2() throws Exception { .setNetwork("network1843485230") .setSubnetwork("subnetwork-1302785042") .setEnvoyHeaders(EnvoyHeaders.forNumber(0)) + .setAllowGlobalAccess(true) .build(); mockNetworkServices.addResponse(expectedResponse); @@ -1638,6 +1643,7 @@ public void createGatewayTest() throws Exception { .setDescription("description-1724546052") .addAllAddresses(new ArrayList()) .addAllPorts(new ArrayList()) + .setAllPorts(true) .setScope("scope109264468") .setServerTlsPolicy("serverTlsPolicy-1897015798") .addAllCertificateUrls(new ArrayList()) @@ -1645,6 +1651,7 @@ public void createGatewayTest() throws Exception { .setNetwork("network1843485230") .setSubnetwork("subnetwork-1302785042") .setEnvoyHeaders(EnvoyHeaders.forNumber(0)) + .setAllowGlobalAccess(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1704,6 +1711,7 @@ public void createGatewayTest2() throws Exception { .setDescription("description-1724546052") .addAllAddresses(new ArrayList()) .addAllPorts(new ArrayList()) + .setAllPorts(true) .setScope("scope109264468") .setServerTlsPolicy("serverTlsPolicy-1897015798") .addAllCertificateUrls(new ArrayList()) @@ -1711,6 +1719,7 @@ public void createGatewayTest2() throws Exception { .setNetwork("network1843485230") .setSubnetwork("subnetwork-1302785042") .setEnvoyHeaders(EnvoyHeaders.forNumber(0)) + .setAllowGlobalAccess(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1770,6 +1779,7 @@ public void updateGatewayTest() throws Exception { .setDescription("description-1724546052") .addAllAddresses(new ArrayList()) .addAllPorts(new ArrayList()) + .setAllPorts(true) .setScope("scope109264468") .setServerTlsPolicy("serverTlsPolicy-1897015798") .addAllCertificateUrls(new ArrayList()) @@ -1777,6 +1787,7 @@ public void updateGatewayTest() throws Exception { .setNetwork("network1843485230") .setSubnetwork("subnetwork-1302785042") .setEnvoyHeaders(EnvoyHeaders.forNumber(0)) + .setAllowGlobalAccess(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -3338,6 +3349,7 @@ public void getTlsRouteTest() throws Exception { .addAllRules(new ArrayList()) .addAllMeshes(new ArrayList()) .addAllGateways(new ArrayList()) + .addAllTargetProxies(new ArrayList()) .putAllLabels(new HashMap()) .build(); mockNetworkServices.addResponse(expectedResponse); @@ -3384,6 +3396,7 @@ public void getTlsRouteTest2() throws Exception { .addAllRules(new ArrayList()) .addAllMeshes(new ArrayList()) .addAllGateways(new ArrayList()) + .addAllTargetProxies(new ArrayList()) .putAllLabels(new HashMap()) .build(); mockNetworkServices.addResponse(expectedResponse); @@ -3430,6 +3443,7 @@ public void createTlsRouteTest() throws Exception { .addAllRules(new ArrayList()) .addAllMeshes(new ArrayList()) .addAllGateways(new ArrayList()) + .addAllTargetProxies(new ArrayList()) .putAllLabels(new HashMap()) .build(); Operation resultOperation = @@ -3490,6 +3504,7 @@ public void createTlsRouteTest2() throws Exception { .addAllRules(new ArrayList()) .addAllMeshes(new ArrayList()) .addAllGateways(new ArrayList()) + .addAllTargetProxies(new ArrayList()) .putAllLabels(new HashMap()) .build(); Operation resultOperation = @@ -3550,6 +3565,7 @@ public void updateTlsRouteTest() throws Exception { .addAllRules(new ArrayList()) .addAllMeshes(new ArrayList()) .addAllGateways(new ArrayList()) + .addAllTargetProxies(new ArrayList()) .putAllLabels(new HashMap()) .build(); Operation resultOperation = @@ -5374,6 +5390,454 @@ public void listMeshRouteViewsExceptionTest2() throws Exception { } } + @Test + public void listAgentGatewaysTest() throws Exception { + AgentGateway responsesElement = AgentGateway.newBuilder().build(); + ListAgentGatewaysResponse expectedResponse = + ListAgentGatewaysResponse.newBuilder() + .setNextPageToken("") + .addAllAgentGateways(Arrays.asList(responsesElement)) + .build(); + mockNetworkServices.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAgentGatewaysPagedResponse pagedListResponse = client.listAgentGateways(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAgentGatewaysList().get(0), resources.get(0)); + + List actualRequests = mockNetworkServices.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAgentGatewaysRequest actualRequest = ((ListAgentGatewaysRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAgentGatewaysExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkServices.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAgentGateways(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAgentGatewaysTest2() throws Exception { + AgentGateway responsesElement = AgentGateway.newBuilder().build(); + ListAgentGatewaysResponse expectedResponse = + ListAgentGatewaysResponse.newBuilder() + .setNextPageToken("") + .addAllAgentGateways(Arrays.asList(responsesElement)) + .build(); + mockNetworkServices.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAgentGatewaysPagedResponse pagedListResponse = client.listAgentGateways(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAgentGatewaysList().get(0), resources.get(0)); + + List actualRequests = mockNetworkServices.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAgentGatewaysRequest actualRequest = ((ListAgentGatewaysRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAgentGatewaysExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkServices.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAgentGateways(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAgentGatewayTest() throws Exception { + AgentGateway expectedResponse = + AgentGateway.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setEtag("etag3123477") + .addAllProtocols(new ArrayList()) + .addAllRegistries(new ArrayList()) + .setNetworkConfig(AgentGateway.NetworkConfig.newBuilder().build()) + .setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard.newBuilder().build()) + .build(); + mockNetworkServices.addResponse(expectedResponse); + + AgentGatewayName name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]"); + + AgentGateway actualResponse = client.getAgentGateway(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkServices.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAgentGatewayRequest actualRequest = ((GetAgentGatewayRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAgentGatewayExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkServices.addException(exception); + + try { + AgentGatewayName name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]"); + client.getAgentGateway(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAgentGatewayTest2() throws Exception { + AgentGateway expectedResponse = + AgentGateway.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setEtag("etag3123477") + .addAllProtocols(new ArrayList()) + .addAllRegistries(new ArrayList()) + .setNetworkConfig(AgentGateway.NetworkConfig.newBuilder().build()) + .setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard.newBuilder().build()) + .build(); + mockNetworkServices.addResponse(expectedResponse); + + String name = "name3373707"; + + AgentGateway actualResponse = client.getAgentGateway(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkServices.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAgentGatewayRequest actualRequest = ((GetAgentGatewayRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAgentGatewayExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkServices.addException(exception); + + try { + String name = "name3373707"; + client.getAgentGateway(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAgentGatewayTest() throws Exception { + AgentGateway expectedResponse = + AgentGateway.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setEtag("etag3123477") + .addAllProtocols(new ArrayList()) + .addAllRegistries(new ArrayList()) + .setNetworkConfig(AgentGateway.NetworkConfig.newBuilder().build()) + .setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAgentGatewayTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkServices.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AgentGateway agentGateway = AgentGateway.newBuilder().build(); + String agentGatewayId = "agentGatewayId1729577210"; + + AgentGateway actualResponse = + client.createAgentGatewayAsync(parent, agentGateway, agentGatewayId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkServices.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAgentGatewayRequest actualRequest = ((CreateAgentGatewayRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(agentGateway, actualRequest.getAgentGateway()); + Assert.assertEquals(agentGatewayId, actualRequest.getAgentGatewayId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAgentGatewayExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkServices.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AgentGateway agentGateway = AgentGateway.newBuilder().build(); + String agentGatewayId = "agentGatewayId1729577210"; + client.createAgentGatewayAsync(parent, agentGateway, agentGatewayId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createAgentGatewayTest2() throws Exception { + AgentGateway expectedResponse = + AgentGateway.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setEtag("etag3123477") + .addAllProtocols(new ArrayList()) + .addAllRegistries(new ArrayList()) + .setNetworkConfig(AgentGateway.NetworkConfig.newBuilder().build()) + .setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAgentGatewayTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkServices.addResponse(resultOperation); + + String parent = "parent-995424086"; + AgentGateway agentGateway = AgentGateway.newBuilder().build(); + String agentGatewayId = "agentGatewayId1729577210"; + + AgentGateway actualResponse = + client.createAgentGatewayAsync(parent, agentGateway, agentGatewayId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkServices.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAgentGatewayRequest actualRequest = ((CreateAgentGatewayRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(agentGateway, actualRequest.getAgentGateway()); + Assert.assertEquals(agentGatewayId, actualRequest.getAgentGatewayId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAgentGatewayExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkServices.addException(exception); + + try { + String parent = "parent-995424086"; + AgentGateway agentGateway = AgentGateway.newBuilder().build(); + String agentGatewayId = "agentGatewayId1729577210"; + client.createAgentGatewayAsync(parent, agentGateway, agentGatewayId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateAgentGatewayTest() throws Exception { + AgentGateway expectedResponse = + AgentGateway.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setEtag("etag3123477") + .addAllProtocols(new ArrayList()) + .addAllRegistries(new ArrayList()) + .setNetworkConfig(AgentGateway.NetworkConfig.newBuilder().build()) + .setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateAgentGatewayTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkServices.addResponse(resultOperation); + + AgentGateway agentGateway = AgentGateway.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AgentGateway actualResponse = client.updateAgentGatewayAsync(agentGateway, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkServices.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAgentGatewayRequest actualRequest = ((UpdateAgentGatewayRequest) actualRequests.get(0)); + + Assert.assertEquals(agentGateway, actualRequest.getAgentGateway()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateAgentGatewayExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkServices.addException(exception); + + try { + AgentGateway agentGateway = AgentGateway.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAgentGatewayAsync(agentGateway, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteAgentGatewayTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAgentGatewayTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkServices.addResponse(resultOperation); + + AgentGatewayName name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]"); + + client.deleteAgentGatewayAsync(name).get(); + + List actualRequests = mockNetworkServices.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAgentGatewayRequest actualRequest = ((DeleteAgentGatewayRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAgentGatewayExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkServices.addException(exception); + + try { + AgentGatewayName name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]"); + client.deleteAgentGatewayAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteAgentGatewayTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAgentGatewayTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkServices.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteAgentGatewayAsync(name).get(); + + List actualRequests = mockNetworkServices.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAgentGatewayRequest actualRequest = ((DeleteAgentGatewayRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAgentGatewayExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkServices.addException(exception); + + try { + String name = "name3373707"; + client.deleteAgentGatewayAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-networkservices/grpc-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesGrpc.java b/java-networkservices/grpc-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesGrpc.java index 456fbecf0b9e..9f836c3575ec 100644 --- a/java-networkservices/grpc-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesGrpc.java +++ b/java-networkservices/grpc-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesGrpc.java @@ -2766,6 +2766,241 @@ private NetworkServicesGrpc() {} return getListMeshRouteViewsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest, + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse> + getListAgentGatewaysMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAgentGateways", + requestType = com.google.cloud.networkservices.v1.ListAgentGatewaysRequest.class, + responseType = com.google.cloud.networkservices.v1.ListAgentGatewaysResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest, + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse> + getListAgentGatewaysMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest, + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse> + getListAgentGatewaysMethod; + if ((getListAgentGatewaysMethod = NetworkServicesGrpc.getListAgentGatewaysMethod) == null) { + synchronized (NetworkServicesGrpc.class) { + if ((getListAgentGatewaysMethod = NetworkServicesGrpc.getListAgentGatewaysMethod) == null) { + NetworkServicesGrpc.getListAgentGatewaysMethod = + getListAgentGatewaysMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAgentGateways")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new NetworkServicesMethodDescriptorSupplier("ListAgentGateways")) + .build(); + } + } + } + return getListAgentGatewaysMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.GetAgentGatewayRequest, + com.google.cloud.networkservices.v1.AgentGateway> + getGetAgentGatewayMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAgentGateway", + requestType = com.google.cloud.networkservices.v1.GetAgentGatewayRequest.class, + responseType = com.google.cloud.networkservices.v1.AgentGateway.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.GetAgentGatewayRequest, + com.google.cloud.networkservices.v1.AgentGateway> + getGetAgentGatewayMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.GetAgentGatewayRequest, + com.google.cloud.networkservices.v1.AgentGateway> + getGetAgentGatewayMethod; + if ((getGetAgentGatewayMethod = NetworkServicesGrpc.getGetAgentGatewayMethod) == null) { + synchronized (NetworkServicesGrpc.class) { + if ((getGetAgentGatewayMethod = NetworkServicesGrpc.getGetAgentGatewayMethod) == null) { + NetworkServicesGrpc.getGetAgentGatewayMethod = + getGetAgentGatewayMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAgentGateway")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkservices.v1.GetAgentGatewayRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkservices.v1.AgentGateway + .getDefaultInstance())) + .setSchemaDescriptor( + new NetworkServicesMethodDescriptorSupplier("GetAgentGateway")) + .build(); + } + } + } + return getGetAgentGatewayMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest, + com.google.longrunning.Operation> + getCreateAgentGatewayMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAgentGateway", + requestType = com.google.cloud.networkservices.v1.CreateAgentGatewayRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest, + com.google.longrunning.Operation> + getCreateAgentGatewayMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest, + com.google.longrunning.Operation> + getCreateAgentGatewayMethod; + if ((getCreateAgentGatewayMethod = NetworkServicesGrpc.getCreateAgentGatewayMethod) == null) { + synchronized (NetworkServicesGrpc.class) { + if ((getCreateAgentGatewayMethod = NetworkServicesGrpc.getCreateAgentGatewayMethod) + == null) { + NetworkServicesGrpc.getCreateAgentGatewayMethod = + getCreateAgentGatewayMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAgentGateway")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NetworkServicesMethodDescriptorSupplier("CreateAgentGateway")) + .build(); + } + } + } + return getCreateAgentGatewayMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest, + com.google.longrunning.Operation> + getUpdateAgentGatewayMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAgentGateway", + requestType = com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest, + com.google.longrunning.Operation> + getUpdateAgentGatewayMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest, + com.google.longrunning.Operation> + getUpdateAgentGatewayMethod; + if ((getUpdateAgentGatewayMethod = NetworkServicesGrpc.getUpdateAgentGatewayMethod) == null) { + synchronized (NetworkServicesGrpc.class) { + if ((getUpdateAgentGatewayMethod = NetworkServicesGrpc.getUpdateAgentGatewayMethod) + == null) { + NetworkServicesGrpc.getUpdateAgentGatewayMethod = + getUpdateAgentGatewayMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAgentGateway")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NetworkServicesMethodDescriptorSupplier("UpdateAgentGateway")) + .build(); + } + } + } + return getUpdateAgentGatewayMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest, + com.google.longrunning.Operation> + getDeleteAgentGatewayMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAgentGateway", + requestType = com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest, + com.google.longrunning.Operation> + getDeleteAgentGatewayMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest, + com.google.longrunning.Operation> + getDeleteAgentGatewayMethod; + if ((getDeleteAgentGatewayMethod = NetworkServicesGrpc.getDeleteAgentGatewayMethod) == null) { + synchronized (NetworkServicesGrpc.class) { + if ((getDeleteAgentGatewayMethod = NetworkServicesGrpc.getDeleteAgentGatewayMethod) + == null) { + NetworkServicesGrpc.getDeleteAgentGatewayMethod = + getDeleteAgentGatewayMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAgentGateway")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NetworkServicesMethodDescriptorSupplier("DeleteAgentGateway")) + .build(); + } + } + } + return getDeleteAgentGatewayMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static NetworkServicesStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -3666,6 +3901,78 @@ default void listMeshRouteViews( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListMeshRouteViewsMethod(), responseObserver); } + + /** + * + * + *

+     * Lists AgentGateways in a given project and location.
+     * 
+ */ + default void listAgentGateways( + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAgentGatewaysMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single AgentGateway.
+     * 
+ */ + default void getAgentGateway( + com.google.cloud.networkservices.v1.GetAgentGatewayRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAgentGatewayMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new AgentGateway in a given project and location.
+     * 
+ */ + default void createAgentGateway( + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAgentGatewayMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single AgentGateway.
+     * 
+ */ + default void updateAgentGateway( + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAgentGatewayMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single AgentGateway.
+     * 
+ */ + default void deleteAgentGateway( + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAgentGatewayMethod(), responseObserver); + } } /** @@ -4649,6 +4956,88 @@ public void listMeshRouteViews( request, responseObserver); } + + /** + * + * + *
+     * Lists AgentGateways in a given project and location.
+     * 
+ */ + public void listAgentGateways( + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAgentGatewaysMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single AgentGateway.
+     * 
+ */ + public void getAgentGateway( + com.google.cloud.networkservices.v1.GetAgentGatewayRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAgentGatewayMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new AgentGateway in a given project and location.
+     * 
+ */ + public void createAgentGateway( + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAgentGatewayMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single AgentGateway.
+     * 
+ */ + public void updateAgentGateway( + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAgentGatewayMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single AgentGateway.
+     * 
+ */ + public void deleteAgentGateway( + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAgentGatewayMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -5486,6 +5875,76 @@ public com.google.cloud.networkservices.v1.ListMeshRouteViewsResponse listMeshRo return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMeshRouteViewsMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Lists AgentGateways in a given project and location.
+     * 
+ */ + public com.google.cloud.networkservices.v1.ListAgentGatewaysResponse listAgentGateways( + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAgentGatewaysMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single AgentGateway.
+     * 
+ */ + public com.google.cloud.networkservices.v1.AgentGateway getAgentGateway( + com.google.cloud.networkservices.v1.GetAgentGatewayRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAgentGatewayMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new AgentGateway in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createAgentGateway( + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateAgentGatewayMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single AgentGateway.
+     * 
+ */ + public com.google.longrunning.Operation updateAgentGateway( + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateAgentGatewayMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single AgentGateway.
+     * 
+ */ + public com.google.longrunning.Operation deleteAgentGateway( + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteAgentGatewayMethod(), getCallOptions(), request); + } } /** @@ -6265,6 +6724,71 @@ public com.google.cloud.networkservices.v1.ListMeshRouteViewsResponse listMeshRo return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListMeshRouteViewsMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Lists AgentGateways in a given project and location.
+     * 
+ */ + public com.google.cloud.networkservices.v1.ListAgentGatewaysResponse listAgentGateways( + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAgentGatewaysMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single AgentGateway.
+     * 
+ */ + public com.google.cloud.networkservices.v1.AgentGateway getAgentGateway( + com.google.cloud.networkservices.v1.GetAgentGatewayRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAgentGatewayMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new AgentGateway in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createAgentGateway( + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAgentGatewayMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single AgentGateway.
+     * 
+ */ + public com.google.longrunning.Operation updateAgentGateway( + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAgentGatewayMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single AgentGateway.
+     * 
+ */ + public com.google.longrunning.Operation deleteAgentGateway( + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAgentGatewayMethod(), getCallOptions(), request); + } } /** @@ -7087,6 +7611,73 @@ protected NetworkServicesFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListMeshRouteViewsMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Lists AgentGateways in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse> + listAgentGateways(com.google.cloud.networkservices.v1.ListAgentGatewaysRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAgentGatewaysMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single AgentGateway.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkservices.v1.AgentGateway> + getAgentGateway(com.google.cloud.networkservices.v1.GetAgentGatewayRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAgentGatewayMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new AgentGateway in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createAgentGateway(com.google.cloud.networkservices.v1.CreateAgentGatewayRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAgentGatewayMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the parameters of a single AgentGateway.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateAgentGateway(com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAgentGatewayMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single AgentGateway.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteAgentGateway(com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAgentGatewayMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_ENDPOINT_POLICIES = 0; @@ -7147,6 +7738,11 @@ protected NetworkServicesFutureStub build( private static final int METHODID_GET_MESH_ROUTE_VIEW = 55; private static final int METHODID_LIST_GATEWAY_ROUTE_VIEWS = 56; private static final int METHODID_LIST_MESH_ROUTE_VIEWS = 57; + private static final int METHODID_LIST_AGENT_GATEWAYS = 58; + private static final int METHODID_GET_AGENT_GATEWAY = 59; + private static final int METHODID_CREATE_AGENT_GATEWAY = 60; + private static final int METHODID_UPDATE_AGENT_GATEWAY = 61; + private static final int METHODID_DELETE_AGENT_GATEWAY = 62; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -7493,6 +8089,34 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.networkservices.v1.ListMeshRouteViewsResponse>) responseObserver); break; + case METHODID_LIST_AGENT_GATEWAYS: + serviceImpl.listAgentGateways( + (com.google.cloud.networkservices.v1.ListAgentGatewaysRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse>) + responseObserver); + break; + case METHODID_GET_AGENT_GATEWAY: + serviceImpl.getAgentGateway( + (com.google.cloud.networkservices.v1.GetAgentGatewayRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_AGENT_GATEWAY: + serviceImpl.createAgentGateway( + (com.google.cloud.networkservices.v1.CreateAgentGatewayRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_AGENT_GATEWAY: + serviceImpl.updateAgentGateway( + (com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_AGENT_GATEWAY: + serviceImpl.deleteAgentGateway( + (com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -7883,6 +8507,38 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.networkservices.v1.ListMeshRouteViewsRequest, com.google.cloud.networkservices.v1.ListMeshRouteViewsResponse>( service, METHODID_LIST_MESH_ROUTE_VIEWS))) + .addMethod( + getListAgentGatewaysMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest, + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse>( + service, METHODID_LIST_AGENT_GATEWAYS))) + .addMethod( + getGetAgentGatewayMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkservices.v1.GetAgentGatewayRequest, + com.google.cloud.networkservices.v1.AgentGateway>( + service, METHODID_GET_AGENT_GATEWAY))) + .addMethod( + getCreateAgentGatewayMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_AGENT_GATEWAY))) + .addMethod( + getUpdateAgentGatewayMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_AGENT_GATEWAY))) + .addMethod( + getDeleteAgentGatewayMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_AGENT_GATEWAY))) .build(); } @@ -7992,6 +8648,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetMeshRouteViewMethod()) .addMethod(getListGatewayRouteViewsMethod()) .addMethod(getListMeshRouteViewsMethod()) + .addMethod(getListAgentGatewaysMethod()) + .addMethod(getGetAgentGatewayMethod()) + .addMethod(getCreateAgentGatewayMethod()) + .addMethod(getUpdateAgentGatewayMethod()) + .addMethod(getDeleteAgentGatewayMethod()) .build(); } } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGateway.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGateway.java new file mode 100644 index 000000000000..2d4aec8070b5 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGateway.java @@ -0,0 +1,11323 @@ +/* + * 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/cloud/networkservices/v1/agent_gateway.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +/** + * + * + *
+ * AgentGateway represents the agent gateway resource.
+ * 
+ * + * Protobuf type {@code google.cloud.networkservices.v1.AgentGateway} + */ +@com.google.protobuf.Generated +public final class AgentGateway extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.AgentGateway) + AgentGatewayOrBuilder { + 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= */ "", + "AgentGateway"); + } + + // Use AgentGateway.newBuilder() to construct. + private AgentGateway(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentGateway() { + name_ = ""; + description_ = ""; + etag_ = ""; + protocols_ = emptyIntList(); + registries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.class, + com.google.cloud.networkservices.v1.AgentGateway.Builder.class); + } + + /** + * + * + *
+   * Enums of all supported protocols
+   * 
+ * + * Protobuf enum {@code google.cloud.networkservices.v1.AgentGateway.Protocol} + */ + public enum Protocol implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified protocol.
+     * 
+ * + * PROTOCOL_UNSPECIFIED = 0; + */ + PROTOCOL_UNSPECIFIED(0), + /** + * + * + *
+     * Message Control Plane protocol.
+     * 
+ * + * MCP = 1; + */ + MCP(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Protocol"); + } + + /** + * + * + *
+     * Unspecified protocol.
+     * 
+ * + * PROTOCOL_UNSPECIFIED = 0; + */ + public static final int PROTOCOL_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Message Control Plane protocol.
+     * 
+ * + * MCP = 1; + */ + public static final int MCP_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 Protocol 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 Protocol forNumber(int value) { + switch (value) { + case 0: + return PROTOCOL_UNSPECIFIED; + case 1: + return MCP; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Protocol findValueByNumber(int number) { + return Protocol.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGateway.getDescriptor().getEnumTypes().get(0); + } + + private static final Protocol[] VALUES = values(); + + public static Protocol valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Protocol(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkservices.v1.AgentGateway.Protocol) + } + + public interface GoogleManagedOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.AgentGateway.GoogleManaged) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Operating Mode of Agent Gateway.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath governed_access_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for governedAccessPath. + */ + int getGovernedAccessPathValue(); + + /** + * + * + *
+     * Optional. Operating Mode of Agent Gateway.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath governed_access_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The governedAccessPath. + */ + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath + getGovernedAccessPath(); + } + + /** + * + * + *
+   * Configuration for Google Managed deployment mode.
+   * Proxy is orchestrated and managed by GoogleCloud in a tenant project.
+   * 
+ * + * Protobuf type {@code google.cloud.networkservices.v1.AgentGateway.GoogleManaged} + */ + public static final class GoogleManaged extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.AgentGateway.GoogleManaged) + GoogleManagedOrBuilder { + 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= */ "", + "GoogleManaged"); + } + + // Use GoogleManaged.newBuilder() to construct. + private GoogleManaged(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GoogleManaged() { + governedAccessPath_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_GoogleManaged_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_GoogleManaged_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.class, + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.Builder.class); + } + + /** + * + * + *
+     * GovernedAccessPath defines the type of access to protect.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath} + */ + public enum GovernedAccessPath implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Governed access path is not specified.
+       * 
+ * + * GOVERNED_ACCESS_PATH_UNSPECIFIED = 0; + */ + GOVERNED_ACCESS_PATH_UNSPECIFIED(0), + /** + * + * + *
+       * Govern agent conections to destinations.
+       * 
+ * + * AGENT_TO_ANYWHERE = 1; + */ + AGENT_TO_ANYWHERE(1), + /** + * + * + *
+       * Protect connection to Agent or Tool.
+       * 
+ * + * CLIENT_TO_AGENT = 2; + */ + CLIENT_TO_AGENT(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GovernedAccessPath"); + } + + /** + * + * + *
+       * Governed access path is not specified.
+       * 
+ * + * GOVERNED_ACCESS_PATH_UNSPECIFIED = 0; + */ + public static final int GOVERNED_ACCESS_PATH_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * Govern agent conections to destinations.
+       * 
+ * + * AGENT_TO_ANYWHERE = 1; + */ + public static final int AGENT_TO_ANYWHERE_VALUE = 1; + + /** + * + * + *
+       * Protect connection to Agent or Tool.
+       * 
+ * + * CLIENT_TO_AGENT = 2; + */ + public static final int CLIENT_TO_AGENT_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 GovernedAccessPath 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 GovernedAccessPath forNumber(int value) { + switch (value) { + case 0: + return GOVERNED_ACCESS_PATH_UNSPECIFIED; + case 1: + return AGENT_TO_ANYWHERE; + case 2: + return CLIENT_TO_AGENT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GovernedAccessPath findValueByNumber(int number) { + return GovernedAccessPath.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final GovernedAccessPath[] VALUES = values(); + + public static GovernedAccessPath valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private GovernedAccessPath(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath) + } + + public static final int GOVERNED_ACCESS_PATH_FIELD_NUMBER = 1; + private int governedAccessPath_ = 0; + + /** + * + * + *
+     * Optional. Operating Mode of Agent Gateway.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath governed_access_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for governedAccessPath. + */ + @java.lang.Override + public int getGovernedAccessPathValue() { + return governedAccessPath_; + } + + /** + * + * + *
+     * Optional. Operating Mode of Agent Gateway.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath governed_access_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The governedAccessPath. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath + getGovernedAccessPath() { + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath result = + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath + .forNumber(governedAccessPath_); + return result == null + ? com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath + .UNRECOGNIZED + : result; + } + + 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 (governedAccessPath_ + != com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath + .GOVERNED_ACCESS_PATH_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, governedAccessPath_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (governedAccessPath_ + != com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath + .GOVERNED_ACCESS_PATH_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, governedAccessPath_); + } + 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.cloud.networkservices.v1.AgentGateway.GoogleManaged)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged other = + (com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged) obj; + + if (governedAccessPath_ != other.governedAccessPath_) 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) + GOVERNED_ACCESS_PATH_FIELD_NUMBER; + hash = (53 * hash) + governedAccessPath_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged 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.cloud.networkservices.v1.AgentGateway.GoogleManaged parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged 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.cloud.networkservices.v1.AgentGateway.GoogleManaged parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged 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.cloud.networkservices.v1.AgentGateway.GoogleManaged parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged 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.cloud.networkservices.v1.AgentGateway.GoogleManaged 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; + } + + /** + * + * + *
+     * Configuration for Google Managed deployment mode.
+     * Proxy is orchestrated and managed by GoogleCloud in a tenant project.
+     * 
+ * + * Protobuf type {@code google.cloud.networkservices.v1.AgentGateway.GoogleManaged} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.AgentGateway.GoogleManaged) + com.google.cloud.networkservices.v1.AgentGateway.GoogleManagedOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_GoogleManaged_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_GoogleManaged_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.class, + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.Builder.class); + } + + // Construct using com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + governedAccessPath_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_GoogleManaged_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged build() { + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged buildPartial() { + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged result = + new com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.governedAccessPath_ = governedAccessPath_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged) { + return mergeFrom((com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged other) { + if (other + == com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.getDefaultInstance()) + return this; + if (other.governedAccessPath_ != 0) { + setGovernedAccessPathValue(other.getGovernedAccessPathValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + governedAccessPath_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int governedAccessPath_ = 0; + + /** + * + * + *
+       * Optional. Operating Mode of Agent Gateway.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath governed_access_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for governedAccessPath. + */ + @java.lang.Override + public int getGovernedAccessPathValue() { + return governedAccessPath_; + } + + /** + * + * + *
+       * Optional. Operating Mode of Agent Gateway.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath governed_access_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for governedAccessPath to set. + * @return This builder for chaining. + */ + public Builder setGovernedAccessPathValue(int value) { + governedAccessPath_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Operating Mode of Agent Gateway.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath governed_access_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The governedAccessPath. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath + getGovernedAccessPath() { + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath result = + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath + .forNumber(governedAccessPath_); + return result == null + ? com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Optional. Operating Mode of Agent Gateway.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath governed_access_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The governedAccessPath to set. + * @return This builder for chaining. + */ + public Builder setGovernedAccessPath( + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + governedAccessPath_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Operating Mode of Agent Gateway.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath governed_access_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearGovernedAccessPath() { + bitField0_ = (bitField0_ & ~0x00000001); + governedAccessPath_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.AgentGateway.GoogleManaged) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.AgentGateway.GoogleManaged) + private static final com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged(); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleManaged parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SelfManagedOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.AgentGateway.SelfManaged) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. A supported Google Cloud networking proxy in the Project and
+     * Location
+     * 
+ * + * + * string resource_uri = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The resourceUri. + */ + java.lang.String getResourceUri(); + + /** + * + * + *
+     * Optional. A supported Google Cloud networking proxy in the Project and
+     * Location
+     * 
+ * + * + * string resource_uri = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for resourceUri. + */ + com.google.protobuf.ByteString getResourceUriBytes(); + } + + /** + * + * + *
+   * Configuration for Self Managed deployment mode.
+   * Attach to existing Application Load Balancers or Secure Web Proxies.
+   * 
+ * + * Protobuf type {@code google.cloud.networkservices.v1.AgentGateway.SelfManaged} + */ + public static final class SelfManaged extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.AgentGateway.SelfManaged) + SelfManagedOrBuilder { + 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= */ "", + "SelfManaged"); + } + + // Use SelfManaged.newBuilder() to construct. + private SelfManaged(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SelfManaged() { + resourceUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_SelfManaged_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_SelfManaged_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.class, + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.Builder.class); + } + + public static final int RESOURCE_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object resourceUri_ = ""; + + /** + * + * + *
+     * Optional. A supported Google Cloud networking proxy in the Project and
+     * Location
+     * 
+ * + * + * string resource_uri = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The resourceUri. + */ + @java.lang.Override + public java.lang.String getResourceUri() { + java.lang.Object ref = resourceUri_; + 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(); + resourceUri_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. A supported Google Cloud networking proxy in the Project and
+     * Location
+     * 
+ * + * + * string resource_uri = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for resourceUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceUriBytes() { + java.lang.Object ref = resourceUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceUri_ = 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(resourceUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, resourceUri_); + } + 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(resourceUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, resourceUri_); + } + 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.cloud.networkservices.v1.AgentGateway.SelfManaged)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged other = + (com.google.cloud.networkservices.v1.AgentGateway.SelfManaged) obj; + + if (!getResourceUri().equals(other.getResourceUri())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_URI_FIELD_NUMBER; + hash = (53 * hash) + getResourceUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.AgentGateway.SelfManaged parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.SelfManaged parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.SelfManaged parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.SelfManaged 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.cloud.networkservices.v1.AgentGateway.SelfManaged parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.SelfManaged parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.SelfManaged parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.SelfManaged 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.cloud.networkservices.v1.AgentGateway.SelfManaged parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.SelfManaged 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.cloud.networkservices.v1.AgentGateway.SelfManaged parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.SelfManaged 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.cloud.networkservices.v1.AgentGateway.SelfManaged 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; + } + + /** + * + * + *
+     * Configuration for Self Managed deployment mode.
+     * Attach to existing Application Load Balancers or Secure Web Proxies.
+     * 
+ * + * Protobuf type {@code google.cloud.networkservices.v1.AgentGateway.SelfManaged} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.AgentGateway.SelfManaged) + com.google.cloud.networkservices.v1.AgentGateway.SelfManagedOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_SelfManaged_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_SelfManaged_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.class, + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.Builder.class); + } + + // Construct using com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + resourceUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_SelfManaged_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.SelfManaged + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.SelfManaged build() { + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.SelfManaged buildPartial() { + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged result = + new com.google.cloud.networkservices.v1.AgentGateway.SelfManaged(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resourceUri_ = resourceUri_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.AgentGateway.SelfManaged) { + return mergeFrom((com.google.cloud.networkservices.v1.AgentGateway.SelfManaged) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkservices.v1.AgentGateway.SelfManaged other) { + if (other + == com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.getDefaultInstance()) + return this; + if (!other.getResourceUri().isEmpty()) { + resourceUri_ = other.resourceUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + resourceUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object resourceUri_ = ""; + + /** + * + * + *
+       * Optional. A supported Google Cloud networking proxy in the Project and
+       * Location
+       * 
+ * + * + * string resource_uri = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The resourceUri. + */ + public java.lang.String getResourceUri() { + java.lang.Object ref = resourceUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. A supported Google Cloud networking proxy in the Project and
+       * Location
+       * 
+ * + * + * string resource_uri = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for resourceUri. + */ + public com.google.protobuf.ByteString getResourceUriBytes() { + java.lang.Object ref = resourceUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. A supported Google Cloud networking proxy in the Project and
+       * Location
+       * 
+ * + * + * string resource_uri = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The resourceUri to set. + * @return This builder for chaining. + */ + public Builder setResourceUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resourceUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. A supported Google Cloud networking proxy in the Project and
+       * Location
+       * 
+ * + * + * string resource_uri = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearResourceUri() { + resourceUri_ = getDefaultInstance().getResourceUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. A supported Google Cloud networking proxy in the Project and
+       * Location
+       * 
+ * + * + * string resource_uri = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for resourceUri to set. + * @return This builder for chaining. + */ + public Builder setResourceUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.AgentGateway.SelfManaged) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.AgentGateway.SelfManaged) + private static final com.google.cloud.networkservices.v1.AgentGateway.SelfManaged + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.AgentGateway.SelfManaged(); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.SelfManaged + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SelfManaged parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.SelfManaged + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface NetworkConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.AgentGateway.NetworkConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Optional PSC-Interface network attachment for connectivity to
+     * your private VPCs network.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the egress field is set. + */ + boolean hasEgress(); + + /** + * + * + *
+     * Optional. Optional PSC-Interface network attachment for connectivity to
+     * your private VPCs network.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The egress. + */ + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress getEgress(); + + /** + * + * + *
+     * Optional. Optional PSC-Interface network attachment for connectivity to
+     * your private VPCs network.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.EgressOrBuilder + getEgressOrBuilder(); + + /** + * + * + *
+     * Optional. Optional DNS peering configuration for connectivity to your
+     * private VPC network.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dnsPeeringConfig field is set. + */ + boolean hasDnsPeeringConfig(); + + /** + * + * + *
+     * Optional. Optional DNS peering configuration for connectivity to your
+     * private VPC network.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dnsPeeringConfig. + */ + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + getDnsPeeringConfig(); + + /** + * + * + *
+     * Optional. Optional DNS peering configuration for connectivity to your
+     * private VPC network.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfigOrBuilder + getDnsPeeringConfigOrBuilder(); + } + + /** + * + * + *
+   * NetworkConfig contains network configurations for the AgentGateway.
+   * 
+ * + * Protobuf type {@code google.cloud.networkservices.v1.AgentGateway.NetworkConfig} + */ + public static final class NetworkConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.AgentGateway.NetworkConfig) + NetworkConfigOrBuilder { + 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= */ "", + "NetworkConfig"); + } + + // Use NetworkConfig.newBuilder() to construct. + private NetworkConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private NetworkConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.class, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Builder.class); + } + + public interface EgressOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Optional. The URI of the Network Attachment resource.
+       * 
+ * + * string network_attachment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The networkAttachment. + */ + java.lang.String getNetworkAttachment(); + + /** + * + * + *
+       * Optional. The URI of the Network Attachment resource.
+       * 
+ * + * string network_attachment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for networkAttachment. + */ + com.google.protobuf.ByteString getNetworkAttachmentBytes(); + + /** + * + * + *
+       * Optional. TrustConfig defines the trust configuration for egress.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the trustConfig field is set. + */ + boolean hasTrustConfig(); + + /** + * + * + *
+       * Optional. TrustConfig defines the trust configuration for egress.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The trustConfig. + */ + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + getTrustConfig(); + + /** + * + * + *
+       * Optional. TrustConfig defines the trust configuration for egress.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfigOrBuilder + getTrustConfigOrBuilder(); + } + + /** + * + * + *
+     * Configuration for Egress
+     * 
+ * + * Protobuf type {@code google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress} + */ + public static final class Egress extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress) + EgressOrBuilder { + 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= */ "", + "Egress"); + } + + // Use Egress.newBuilder() to construct. + private Egress(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Egress() { + networkAttachment_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.class, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.Builder + .class); + } + + public interface TrustConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * Required. PEM encoded root certificates used to validate the identity
+         * of the upstream servers/destinations during egress connections.
+         * 
+ * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the pemCertificates. + */ + java.util.List getPemCertificatesList(); + + /** + * + * + *
+         * Required. PEM encoded root certificates used to validate the identity
+         * of the upstream servers/destinations during egress connections.
+         * 
+ * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of pemCertificates. + */ + int getPemCertificatesCount(); + + /** + * + * + *
+         * Required. PEM encoded root certificates used to validate the identity
+         * of the upstream servers/destinations during egress connections.
+         * 
+ * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The pemCertificates at the given index. + */ + java.lang.String getPemCertificates(int index); + + /** + * + * + *
+         * Required. PEM encoded root certificates used to validate the identity
+         * of the upstream servers/destinations during egress connections.
+         * 
+ * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The bytes of the pemCertificates at the given index. + */ + com.google.protobuf.ByteString getPemCertificatesBytes(int index); + } + + /** + * + * + *
+       * TrustConfig defines the trust configuration for egress.
+       * 
+ * + * Protobuf type {@code + * google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig} + */ + public static final class TrustConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig) + TrustConfigOrBuilder { + 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= */ "", + "TrustConfig"); + } + + // Use TrustConfig.newBuilder() to construct. + private TrustConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TrustConfig() { + pemCertificates_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_TrustConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_TrustConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + .class, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + .Builder.class); + } + + public static final int PEM_CERTIFICATES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList pemCertificates_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+         * Required. PEM encoded root certificates used to validate the identity
+         * of the upstream servers/destinations during egress connections.
+         * 
+ * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the pemCertificates. + */ + public com.google.protobuf.ProtocolStringList getPemCertificatesList() { + return pemCertificates_; + } + + /** + * + * + *
+         * Required. PEM encoded root certificates used to validate the identity
+         * of the upstream servers/destinations during egress connections.
+         * 
+ * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of pemCertificates. + */ + public int getPemCertificatesCount() { + return pemCertificates_.size(); + } + + /** + * + * + *
+         * Required. PEM encoded root certificates used to validate the identity
+         * of the upstream servers/destinations during egress connections.
+         * 
+ * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The pemCertificates at the given index. + */ + public java.lang.String getPemCertificates(int index) { + return pemCertificates_.get(index); + } + + /** + * + * + *
+         * Required. PEM encoded root certificates used to validate the identity
+         * of the upstream servers/destinations during egress connections.
+         * 
+ * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The bytes of the pemCertificates at the given index. + */ + public com.google.protobuf.ByteString getPemCertificatesBytes(int index) { + return pemCertificates_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < pemCertificates_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, pemCertificates_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < pemCertificates_.size(); i++) { + dataSize += computeStringSizeNoTag(pemCertificates_.getRaw(i)); + } + size += dataSize; + size += 1 * getPemCertificatesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig other = + (com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig) + obj; + + if (!getPemCertificatesList().equals(other.getPemCertificatesList())) 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 (getPemCertificatesCount() > 0) { + hash = (37 * hash) + PEM_CERTIFICATES_FIELD_NUMBER; + hash = (53 * hash) + getPemCertificatesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + 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.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + 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.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + 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.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + 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.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + 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; + } + + /** + * + * + *
+         * TrustConfig defines the trust configuration for egress.
+         * 
+ * + * Protobuf type {@code + * google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig) + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_TrustConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_TrustConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig.class, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig.Builder.class); + } + + // Construct using + // com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pemCertificates_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_TrustConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + build() { + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + buildPartial() { + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + result = + new com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + pemCertificates_.makeImmutable(); + result.pemCertificates_ = pemCertificates_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig) { + return mergeFrom( + (com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + other) { + if (other + == com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + .getDefaultInstance()) return this; + if (!other.pemCertificates_.isEmpty()) { + if (pemCertificates_.isEmpty()) { + pemCertificates_ = other.pemCertificates_; + bitField0_ |= 0x00000001; + } else { + ensurePemCertificatesIsMutable(); + pemCertificates_.addAll(other.pemCertificates_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePemCertificatesIsMutable(); + pemCertificates_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList pemCertificates_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePemCertificatesIsMutable() { + if (!pemCertificates_.isModifiable()) { + pemCertificates_ = new com.google.protobuf.LazyStringArrayList(pemCertificates_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+           * Required. PEM encoded root certificates used to validate the identity
+           * of the upstream servers/destinations during egress connections.
+           * 
+ * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the pemCertificates. + */ + public com.google.protobuf.ProtocolStringList getPemCertificatesList() { + pemCertificates_.makeImmutable(); + return pemCertificates_; + } + + /** + * + * + *
+           * Required. PEM encoded root certificates used to validate the identity
+           * of the upstream servers/destinations during egress connections.
+           * 
+ * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of pemCertificates. + */ + public int getPemCertificatesCount() { + return pemCertificates_.size(); + } + + /** + * + * + *
+           * Required. PEM encoded root certificates used to validate the identity
+           * of the upstream servers/destinations during egress connections.
+           * 
+ * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The pemCertificates at the given index. + */ + public java.lang.String getPemCertificates(int index) { + return pemCertificates_.get(index); + } + + /** + * + * + *
+           * Required. PEM encoded root certificates used to validate the identity
+           * of the upstream servers/destinations during egress connections.
+           * 
+ * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The bytes of the pemCertificates at the given index. + */ + public com.google.protobuf.ByteString getPemCertificatesBytes(int index) { + return pemCertificates_.getByteString(index); + } + + /** + * + * + *
+           * Required. PEM encoded root certificates used to validate the identity
+           * of the upstream servers/destinations during egress connections.
+           * 
+ * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index to set the value at. + * @param value The pemCertificates to set. + * @return This builder for chaining. + */ + public Builder setPemCertificates(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePemCertificatesIsMutable(); + pemCertificates_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+           * Required. PEM encoded root certificates used to validate the identity
+           * of the upstream servers/destinations during egress connections.
+           * 
+ * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The pemCertificates to add. + * @return This builder for chaining. + */ + public Builder addPemCertificates(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePemCertificatesIsMutable(); + pemCertificates_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+           * Required. PEM encoded root certificates used to validate the identity
+           * of the upstream servers/destinations during egress connections.
+           * 
+ * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param values The pemCertificates to add. + * @return This builder for chaining. + */ + public Builder addAllPemCertificates(java.lang.Iterable values) { + ensurePemCertificatesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pemCertificates_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+           * Required. PEM encoded root certificates used to validate the identity
+           * of the upstream servers/destinations during egress connections.
+           * 
+ * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearPemCertificates() { + pemCertificates_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+           * Required. PEM encoded root certificates used to validate the identity
+           * of the upstream servers/destinations during egress connections.
+           * 
+ * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes of the pemCertificates to add. + * @return This builder for chaining. + */ + public Builder addPemCertificatesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePemCertificatesIsMutable(); + pemCertificates_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig) + private static final com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig(); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrustConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NETWORK_ATTACHMENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object networkAttachment_ = ""; + + /** + * + * + *
+       * Optional. The URI of the Network Attachment resource.
+       * 
+ * + * string network_attachment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The networkAttachment. + */ + @java.lang.Override + public java.lang.String getNetworkAttachment() { + java.lang.Object ref = networkAttachment_; + 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(); + networkAttachment_ = s; + return s; + } + } + + /** + * + * + *
+       * Optional. The URI of the Network Attachment resource.
+       * 
+ * + * string network_attachment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for networkAttachment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkAttachmentBytes() { + java.lang.Object ref = networkAttachment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkAttachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRUST_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + trustConfig_; + + /** + * + * + *
+       * Optional. TrustConfig defines the trust configuration for egress.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the trustConfig field is set. + */ + @java.lang.Override + public boolean hasTrustConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Optional. TrustConfig defines the trust configuration for egress.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The trustConfig. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + getTrustConfig() { + return trustConfig_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + .getDefaultInstance() + : trustConfig_; + } + + /** + * + * + *
+       * Optional. TrustConfig defines the trust configuration for egress.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfigOrBuilder + getTrustConfigOrBuilder() { + return trustConfig_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + .getDefaultInstance() + : trustConfig_; + } + + 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(networkAttachment_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, networkAttachment_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getTrustConfig()); + } + 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(networkAttachment_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, networkAttachment_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTrustConfig()); + } + 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.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress other = + (com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress) obj; + + if (!getNetworkAttachment().equals(other.getNetworkAttachment())) return false; + if (hasTrustConfig() != other.hasTrustConfig()) return false; + if (hasTrustConfig()) { + if (!getTrustConfig().equals(other.getTrustConfig())) 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) + NETWORK_ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getNetworkAttachment().hashCode(); + if (hasTrustConfig()) { + hash = (37 * hash) + TRUST_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTrustConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress 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.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress 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.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + 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.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress 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.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress 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; + } + + /** + * + * + *
+       * Configuration for Egress
+       * 
+ * + * Protobuf type {@code google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress) + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.EgressOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.class, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.Builder + .class); + } + + // Construct using + // com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTrustConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + networkAttachment_ = ""; + trustConfig_ = null; + if (trustConfigBuilder_ != null) { + trustConfigBuilder_.dispose(); + trustConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress build() { + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + buildPartial() { + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress result = + new com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.networkAttachment_ = networkAttachment_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.trustConfig_ = + trustConfigBuilder_ == null ? trustConfig_ : trustConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress) { + return mergeFrom( + (com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress other) { + if (other + == com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .getDefaultInstance()) return this; + if (!other.getNetworkAttachment().isEmpty()) { + networkAttachment_ = other.networkAttachment_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasTrustConfig()) { + mergeTrustConfig(other.getTrustConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + networkAttachment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetTrustConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object networkAttachment_ = ""; + + /** + * + * + *
+         * Optional. The URI of the Network Attachment resource.
+         * 
+ * + * string network_attachment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The networkAttachment. + */ + public java.lang.String getNetworkAttachment() { + java.lang.Object ref = networkAttachment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkAttachment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Optional. The URI of the Network Attachment resource.
+         * 
+ * + * string network_attachment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for networkAttachment. + */ + public com.google.protobuf.ByteString getNetworkAttachmentBytes() { + java.lang.Object ref = networkAttachment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkAttachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Optional. The URI of the Network Attachment resource.
+         * 
+ * + * string network_attachment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The networkAttachment to set. + * @return This builder for chaining. + */ + public Builder setNetworkAttachment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + networkAttachment_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. The URI of the Network Attachment resource.
+         * 
+ * + * string network_attachment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNetworkAttachment() { + networkAttachment_ = getDefaultInstance().getNetworkAttachment(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. The URI of the Network Attachment resource.
+         * 
+ * + * string network_attachment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for networkAttachment to set. + * @return This builder for chaining. + */ + public Builder setNetworkAttachmentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkAttachment_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + trustConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + .Builder, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfigOrBuilder> + trustConfigBuilder_; + + /** + * + * + *
+         * Optional. TrustConfig defines the trust configuration for egress.
+         * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the trustConfig field is set. + */ + public boolean hasTrustConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+         * Optional. TrustConfig defines the trust configuration for egress.
+         * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The trustConfig. + */ + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + getTrustConfig() { + if (trustConfigBuilder_ == null) { + return trustConfig_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + .getDefaultInstance() + : trustConfig_; + } else { + return trustConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+         * Optional. TrustConfig defines the trust configuration for egress.
+         * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTrustConfig( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + value) { + if (trustConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trustConfig_ = value; + } else { + trustConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. TrustConfig defines the trust configuration for egress.
+         * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTrustConfig( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + .Builder + builderForValue) { + if (trustConfigBuilder_ == null) { + trustConfig_ = builderForValue.build(); + } else { + trustConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. TrustConfig defines the trust configuration for egress.
+         * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTrustConfig( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + value) { + if (trustConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && trustConfig_ != null + && trustConfig_ + != com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig.getDefaultInstance()) { + getTrustConfigBuilder().mergeFrom(value); + } else { + trustConfig_ = value; + } + } else { + trustConfigBuilder_.mergeFrom(value); + } + if (trustConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+         * Optional. TrustConfig defines the trust configuration for egress.
+         * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTrustConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + trustConfig_ = null; + if (trustConfigBuilder_ != null) { + trustConfigBuilder_.dispose(); + trustConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. TrustConfig defines the trust configuration for egress.
+         * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + .Builder + getTrustConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetTrustConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+         * Optional. TrustConfig defines the trust configuration for egress.
+         * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfigOrBuilder + getTrustConfigOrBuilder() { + if (trustConfigBuilder_ != null) { + return trustConfigBuilder_.getMessageOrBuilder(); + } else { + return trustConfig_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + .getDefaultInstance() + : trustConfig_; + } + } + + /** + * + * + *
+         * Optional. TrustConfig defines the trust configuration for egress.
+         * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + .Builder, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfigOrBuilder> + internalGetTrustConfigFieldBuilder() { + if (trustConfigBuilder_ == null) { + trustConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig.Builder, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfigOrBuilder>(getTrustConfig(), getParentForChildren(), isClean()); + trustConfig_ = null; + } + return trustConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress) + private static final com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress(); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Egress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DnsPeeringConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Required. Domain names for which DNS queries should be forwarded to the
+       * target network.
+       * 
+ * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the domains. + */ + java.util.List getDomainsList(); + + /** + * + * + *
+       * Required. Domain names for which DNS queries should be forwarded to the
+       * target network.
+       * 
+ * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of domains. + */ + int getDomainsCount(); + + /** + * + * + *
+       * Required. Domain names for which DNS queries should be forwarded to the
+       * target network.
+       * 
+ * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The domains at the given index. + */ + java.lang.String getDomains(int index); + + /** + * + * + *
+       * Required. Domain names for which DNS queries should be forwarded to the
+       * target network.
+       * 
+ * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the domains at the given index. + */ + com.google.protobuf.ByteString getDomainsBytes(int index); + + /** + * + * + *
+       * Required. Target project ID to which DNS queries should be forwarded
+       * to. This can be the same project that contains the AgentGateway or a
+       * different project.
+       * 
+ * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The targetProject. + */ + java.lang.String getTargetProject(); + + /** + * + * + *
+       * Required. Target project ID to which DNS queries should be forwarded
+       * to. This can be the same project that contains the AgentGateway or a
+       * different project.
+       * 
+ * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for targetProject. + */ + com.google.protobuf.ByteString getTargetProjectBytes(); + + /** + * + * + *
+       * Required. Target network in 'target project' to which DNS queries
+       * should be forwarded to. Must be in format of
+       * `projects/{project}/global/networks/{network}`.
+       * 
+ * + * + * string target_network = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The targetNetwork. + */ + java.lang.String getTargetNetwork(); + + /** + * + * + *
+       * Required. Target network in 'target project' to which DNS queries
+       * should be forwarded to. Must be in format of
+       * `projects/{project}/global/networks/{network}`.
+       * 
+ * + * + * string target_network = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for targetNetwork. + */ + com.google.protobuf.ByteString getTargetNetworkBytes(); + } + + /** + * + * + *
+     * DNS peering config for the user VPC network.
+     * 
+ * + * Protobuf type {@code + * google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig} + */ + public static final class DnsPeeringConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig) + DnsPeeringConfigOrBuilder { + 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= */ "", + "DnsPeeringConfig"); + } + + // Use DnsPeeringConfig.newBuilder() to construct. + private DnsPeeringConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DnsPeeringConfig() { + domains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetProject_ = ""; + targetNetwork_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_DnsPeeringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_DnsPeeringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .class, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .Builder.class); + } + + public static final int DOMAINS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList domains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+       * Required. Domain names for which DNS queries should be forwarded to the
+       * target network.
+       * 
+ * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the domains. + */ + public com.google.protobuf.ProtocolStringList getDomainsList() { + return domains_; + } + + /** + * + * + *
+       * Required. Domain names for which DNS queries should be forwarded to the
+       * target network.
+       * 
+ * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of domains. + */ + public int getDomainsCount() { + return domains_.size(); + } + + /** + * + * + *
+       * Required. Domain names for which DNS queries should be forwarded to the
+       * target network.
+       * 
+ * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The domains at the given index. + */ + public java.lang.String getDomains(int index) { + return domains_.get(index); + } + + /** + * + * + *
+       * Required. Domain names for which DNS queries should be forwarded to the
+       * target network.
+       * 
+ * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the domains at the given index. + */ + public com.google.protobuf.ByteString getDomainsBytes(int index) { + return domains_.getByteString(index); + } + + public static final int TARGET_PROJECT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetProject_ = ""; + + /** + * + * + *
+       * Required. Target project ID to which DNS queries should be forwarded
+       * to. This can be the same project that contains the AgentGateway or a
+       * different project.
+       * 
+ * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The targetProject. + */ + @java.lang.Override + public java.lang.String getTargetProject() { + java.lang.Object ref = targetProject_; + 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(); + targetProject_ = s; + return s; + } + } + + /** + * + * + *
+       * Required. Target project ID to which DNS queries should be forwarded
+       * to. This can be the same project that contains the AgentGateway or a
+       * different project.
+       * 
+ * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for targetProject. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetProjectBytes() { + java.lang.Object ref = targetProject_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetProject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_NETWORK_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetNetwork_ = ""; + + /** + * + * + *
+       * Required. Target network in 'target project' to which DNS queries
+       * should be forwarded to. Must be in format of
+       * `projects/{project}/global/networks/{network}`.
+       * 
+ * + * + * string target_network = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The targetNetwork. + */ + @java.lang.Override + public java.lang.String getTargetNetwork() { + java.lang.Object ref = targetNetwork_; + 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(); + targetNetwork_ = s; + return s; + } + } + + /** + * + * + *
+       * Required. Target network in 'target project' to which DNS queries
+       * should be forwarded to. Must be in format of
+       * `projects/{project}/global/networks/{network}`.
+       * 
+ * + * + * string target_network = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for targetNetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetNetworkBytes() { + java.lang.Object ref = targetNetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetNetwork_ = 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 { + for (int i = 0; i < domains_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, domains_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(targetProject_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, targetProject_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(targetNetwork_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, targetNetwork_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < domains_.size(); i++) { + dataSize += computeStringSizeNoTag(domains_.getRaw(i)); + } + size += dataSize; + size += 1 * getDomainsList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(targetProject_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, targetProject_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(targetNetwork_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, targetNetwork_); + } + 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.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig other = + (com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig) obj; + + if (!getDomainsList().equals(other.getDomainsList())) return false; + if (!getTargetProject().equals(other.getTargetProject())) return false; + if (!getTargetNetwork().equals(other.getTargetNetwork())) 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 (getDomainsCount() > 0) { + hash = (37 * hash) + DOMAINS_FIELD_NUMBER; + hash = (53 * hash) + getDomainsList().hashCode(); + } + hash = (37 * hash) + TARGET_PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getTargetProject().hashCode(); + hash = (37 * hash) + TARGET_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getTargetNetwork().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + 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.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + 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.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + 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.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + 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.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + 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; + } + + /** + * + * + *
+       * DNS peering config for the user VPC network.
+       * 
+ * + * Protobuf type {@code + * google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig) + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_DnsPeeringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_DnsPeeringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .class, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .Builder.class); + } + + // Construct using + // com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + domains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetProject_ = ""; + targetNetwork_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_DnsPeeringConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + build() { + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + buildPartial() { + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig result = + new com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + domains_.makeImmutable(); + result.domains_ = domains_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.targetProject_ = targetProject_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.targetNetwork_ = targetNetwork_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig) { + return mergeFrom( + (com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig other) { + if (other + == com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .getDefaultInstance()) return this; + if (!other.domains_.isEmpty()) { + if (domains_.isEmpty()) { + domains_ = other.domains_; + bitField0_ |= 0x00000001; + } else { + ensureDomainsIsMutable(); + domains_.addAll(other.domains_); + } + onChanged(); + } + if (!other.getTargetProject().isEmpty()) { + targetProject_ = other.targetProject_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTargetNetwork().isEmpty()) { + targetNetwork_ = other.targetNetwork_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDomainsIsMutable(); + domains_.add(s); + break; + } // case 10 + case 18: + { + targetProject_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + targetNetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList domains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDomainsIsMutable() { + if (!domains_.isModifiable()) { + domains_ = new com.google.protobuf.LazyStringArrayList(domains_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+         * Required. Domain names for which DNS queries should be forwarded to the
+         * target network.
+         * 
+ * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the domains. + */ + public com.google.protobuf.ProtocolStringList getDomainsList() { + domains_.makeImmutable(); + return domains_; + } + + /** + * + * + *
+         * Required. Domain names for which DNS queries should be forwarded to the
+         * target network.
+         * 
+ * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of domains. + */ + public int getDomainsCount() { + return domains_.size(); + } + + /** + * + * + *
+         * Required. Domain names for which DNS queries should be forwarded to the
+         * target network.
+         * 
+ * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The domains at the given index. + */ + public java.lang.String getDomains(int index) { + return domains_.get(index); + } + + /** + * + * + *
+         * Required. Domain names for which DNS queries should be forwarded to the
+         * target network.
+         * 
+ * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the domains at the given index. + */ + public com.google.protobuf.ByteString getDomainsBytes(int index) { + return domains_.getByteString(index); + } + + /** + * + * + *
+         * Required. Domain names for which DNS queries should be forwarded to the
+         * target network.
+         * 
+ * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The domains to set. + * @return This builder for chaining. + */ + public Builder setDomains(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainsIsMutable(); + domains_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. Domain names for which DNS queries should be forwarded to the
+         * target network.
+         * 
+ * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The domains to add. + * @return This builder for chaining. + */ + public Builder addDomains(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainsIsMutable(); + domains_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. Domain names for which DNS queries should be forwarded to the
+         * target network.
+         * 
+ * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The domains to add. + * @return This builder for chaining. + */ + public Builder addAllDomains(java.lang.Iterable values) { + ensureDomainsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, domains_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. Domain names for which DNS queries should be forwarded to the
+         * target network.
+         * 
+ * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDomains() { + domains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. Domain names for which DNS queries should be forwarded to the
+         * target network.
+         * 
+ * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the domains to add. + * @return This builder for chaining. + */ + public Builder addDomainsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDomainsIsMutable(); + domains_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object targetProject_ = ""; + + /** + * + * + *
+         * Required. Target project ID to which DNS queries should be forwarded
+         * to. This can be the same project that contains the AgentGateway or a
+         * different project.
+         * 
+ * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The targetProject. + */ + public java.lang.String getTargetProject() { + java.lang.Object ref = targetProject_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetProject_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Required. Target project ID to which DNS queries should be forwarded
+         * to. This can be the same project that contains the AgentGateway or a
+         * different project.
+         * 
+ * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for targetProject. + */ + public com.google.protobuf.ByteString getTargetProjectBytes() { + java.lang.Object ref = targetProject_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetProject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Required. Target project ID to which DNS queries should be forwarded
+         * to. This can be the same project that contains the AgentGateway or a
+         * different project.
+         * 
+ * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The targetProject to set. + * @return This builder for chaining. + */ + public Builder setTargetProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetProject_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. Target project ID to which DNS queries should be forwarded
+         * to. This can be the same project that contains the AgentGateway or a
+         * different project.
+         * 
+ * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTargetProject() { + targetProject_ = getDefaultInstance().getTargetProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. Target project ID to which DNS queries should be forwarded
+         * to. This can be the same project that contains the AgentGateway or a
+         * different project.
+         * 
+ * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for targetProject to set. + * @return This builder for chaining. + */ + public Builder setTargetProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetProject_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object targetNetwork_ = ""; + + /** + * + * + *
+         * Required. Target network in 'target project' to which DNS queries
+         * should be forwarded to. Must be in format of
+         * `projects/{project}/global/networks/{network}`.
+         * 
+ * + * + * string target_network = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The targetNetwork. + */ + public java.lang.String getTargetNetwork() { + java.lang.Object ref = targetNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetNetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Required. Target network in 'target project' to which DNS queries
+         * should be forwarded to. Must be in format of
+         * `projects/{project}/global/networks/{network}`.
+         * 
+ * + * + * string target_network = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for targetNetwork. + */ + public com.google.protobuf.ByteString getTargetNetworkBytes() { + java.lang.Object ref = targetNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Required. Target network in 'target project' to which DNS queries
+         * should be forwarded to. Must be in format of
+         * `projects/{project}/global/networks/{network}`.
+         * 
+ * + * + * string target_network = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The targetNetwork to set. + * @return This builder for chaining. + */ + public Builder setTargetNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetNetwork_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. Target network in 'target project' to which DNS queries
+         * should be forwarded to. Must be in format of
+         * `projects/{project}/global/networks/{network}`.
+         * 
+ * + * + * string target_network = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTargetNetwork() { + targetNetwork_ = getDefaultInstance().getTargetNetwork(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. Target network in 'target project' to which DNS queries
+         * should be forwarded to. Must be in format of
+         * `projects/{project}/global/networks/{network}`.
+         * 
+ * + * + * string target_network = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for targetNetwork to set. + * @return This builder for chaining. + */ + public Builder setTargetNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetNetwork_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig) + private static final com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig + .DnsPeeringConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig(); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DnsPeeringConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int EGRESS_FIELD_NUMBER = 1; + private com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress_; + + /** + * + * + *
+     * Optional. Optional PSC-Interface network attachment for connectivity to
+     * your private VPCs network.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the egress field is set. + */ + @java.lang.Override + public boolean hasEgress() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Optional PSC-Interface network attachment for connectivity to
+     * your private VPCs network.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The egress. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress getEgress() { + return egress_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .getDefaultInstance() + : egress_; + } + + /** + * + * + *
+     * Optional. Optional PSC-Interface network attachment for connectivity to
+     * your private VPCs network.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.EgressOrBuilder + getEgressOrBuilder() { + return egress_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .getDefaultInstance() + : egress_; + } + + public static final int DNS_PEERING_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + dnsPeeringConfig_; + + /** + * + * + *
+     * Optional. Optional DNS peering configuration for connectivity to your
+     * private VPC network.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dnsPeeringConfig field is set. + */ + @java.lang.Override + public boolean hasDnsPeeringConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Optional DNS peering configuration for connectivity to your
+     * private VPC network.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dnsPeeringConfig. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + getDnsPeeringConfig() { + return dnsPeeringConfig_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .getDefaultInstance() + : dnsPeeringConfig_; + } + + /** + * + * + *
+     * Optional. Optional DNS peering configuration for connectivity to your
+     * private VPC network.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfigOrBuilder + getDnsPeeringConfigOrBuilder() { + return dnsPeeringConfig_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .getDefaultInstance() + : dnsPeeringConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getEgress()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getDnsPeeringConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEgress()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDnsPeeringConfig()); + } + 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.cloud.networkservices.v1.AgentGateway.NetworkConfig)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig other = + (com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig) obj; + + if (hasEgress() != other.hasEgress()) return false; + if (hasEgress()) { + if (!getEgress().equals(other.getEgress())) return false; + } + if (hasDnsPeeringConfig() != other.hasDnsPeeringConfig()) return false; + if (hasDnsPeeringConfig()) { + if (!getDnsPeeringConfig().equals(other.getDnsPeeringConfig())) 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 (hasEgress()) { + hash = (37 * hash) + EGRESS_FIELD_NUMBER; + hash = (53 * hash) + getEgress().hashCode(); + } + if (hasDnsPeeringConfig()) { + hash = (37 * hash) + DNS_PEERING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDnsPeeringConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig 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.cloud.networkservices.v1.AgentGateway.NetworkConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig 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.cloud.networkservices.v1.AgentGateway.NetworkConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig 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.cloud.networkservices.v1.AgentGateway.NetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig 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.cloud.networkservices.v1.AgentGateway.NetworkConfig 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; + } + + /** + * + * + *
+     * NetworkConfig contains network configurations for the AgentGateway.
+     * 
+ * + * Protobuf type {@code google.cloud.networkservices.v1.AgentGateway.NetworkConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.AgentGateway.NetworkConfig) + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.class, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Builder.class); + } + + // Construct using com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetEgressFieldBuilder(); + internalGetDnsPeeringConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + egress_ = null; + if (egressBuilder_ != null) { + egressBuilder_.dispose(); + egressBuilder_ = null; + } + dnsPeeringConfig_ = null; + if (dnsPeeringConfigBuilder_ != null) { + dnsPeeringConfigBuilder_.dispose(); + dnsPeeringConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig build() { + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig buildPartial() { + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig result = + new com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.egress_ = egressBuilder_ == null ? egress_ : egressBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dnsPeeringConfig_ = + dnsPeeringConfigBuilder_ == null + ? dnsPeeringConfig_ + : dnsPeeringConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig) { + return mergeFrom((com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig other) { + if (other + == com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.getDefaultInstance()) + return this; + if (other.hasEgress()) { + mergeEgress(other.getEgress()); + } + if (other.hasDnsPeeringConfig()) { + mergeDnsPeeringConfig(other.getDnsPeeringConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetEgressFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetDnsPeeringConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.Builder, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.EgressOrBuilder> + egressBuilder_; + + /** + * + * + *
+       * Optional. Optional PSC-Interface network attachment for connectivity to
+       * your private VPCs network.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the egress field is set. + */ + public boolean hasEgress() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Optional. Optional PSC-Interface network attachment for connectivity to
+       * your private VPCs network.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The egress. + */ + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress getEgress() { + if (egressBuilder_ == null) { + return egress_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .getDefaultInstance() + : egress_; + } else { + return egressBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. Optional PSC-Interface network attachment for connectivity to
+       * your private VPCs network.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEgress( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress value) { + if (egressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + egress_ = value; + } else { + egressBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Optional PSC-Interface network attachment for connectivity to
+       * your private VPCs network.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEgress( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.Builder + builderForValue) { + if (egressBuilder_ == null) { + egress_ = builderForValue.build(); + } else { + egressBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Optional PSC-Interface network attachment for connectivity to
+       * your private VPCs network.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEgress( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress value) { + if (egressBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && egress_ != null + && egress_ + != com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .getDefaultInstance()) { + getEgressBuilder().mergeFrom(value); + } else { + egress_ = value; + } + } else { + egressBuilder_.mergeFrom(value); + } + if (egress_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. Optional PSC-Interface network attachment for connectivity to
+       * your private VPCs network.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEgress() { + bitField0_ = (bitField0_ & ~0x00000001); + egress_ = null; + if (egressBuilder_ != null) { + egressBuilder_.dispose(); + egressBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Optional PSC-Interface network attachment for connectivity to
+       * your private VPCs network.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.Builder + getEgressBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetEgressFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Optional PSC-Interface network attachment for connectivity to
+       * your private VPCs network.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.EgressOrBuilder + getEgressOrBuilder() { + if (egressBuilder_ != null) { + return egressBuilder_.getMessageOrBuilder(); + } else { + return egress_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .getDefaultInstance() + : egress_; + } + } + + /** + * + * + *
+       * Optional. Optional PSC-Interface network attachment for connectivity to
+       * your private VPCs network.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.Builder, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.EgressOrBuilder> + internalGetEgressFieldBuilder() { + if (egressBuilder_ == null) { + egressBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.Builder, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.EgressOrBuilder>( + getEgress(), getParentForChildren(), isClean()); + egress_ = null; + } + return egressBuilder_; + } + + private com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + dnsPeeringConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .Builder, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig + .DnsPeeringConfigOrBuilder> + dnsPeeringConfigBuilder_; + + /** + * + * + *
+       * Optional. Optional DNS peering configuration for connectivity to your
+       * private VPC network.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dnsPeeringConfig field is set. + */ + public boolean hasDnsPeeringConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Optional. Optional DNS peering configuration for connectivity to your
+       * private VPC network.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dnsPeeringConfig. + */ + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + getDnsPeeringConfig() { + if (dnsPeeringConfigBuilder_ == null) { + return dnsPeeringConfig_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .getDefaultInstance() + : dnsPeeringConfig_; + } else { + return dnsPeeringConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. Optional DNS peering configuration for connectivity to your
+       * private VPC network.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDnsPeeringConfig( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig value) { + if (dnsPeeringConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dnsPeeringConfig_ = value; + } else { + dnsPeeringConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Optional DNS peering configuration for connectivity to your
+       * private VPC network.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDnsPeeringConfig( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig.Builder + builderForValue) { + if (dnsPeeringConfigBuilder_ == null) { + dnsPeeringConfig_ = builderForValue.build(); + } else { + dnsPeeringConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Optional DNS peering configuration for connectivity to your
+       * private VPC network.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDnsPeeringConfig( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig value) { + if (dnsPeeringConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && dnsPeeringConfig_ != null + && dnsPeeringConfig_ + != com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .getDefaultInstance()) { + getDnsPeeringConfigBuilder().mergeFrom(value); + } else { + dnsPeeringConfig_ = value; + } + } else { + dnsPeeringConfigBuilder_.mergeFrom(value); + } + if (dnsPeeringConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. Optional DNS peering configuration for connectivity to your
+       * private VPC network.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDnsPeeringConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + dnsPeeringConfig_ = null; + if (dnsPeeringConfigBuilder_ != null) { + dnsPeeringConfigBuilder_.dispose(); + dnsPeeringConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Optional DNS peering configuration for connectivity to your
+       * private VPC network.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig.Builder + getDnsPeeringConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetDnsPeeringConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Optional DNS peering configuration for connectivity to your
+       * private VPC network.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig + .DnsPeeringConfigOrBuilder + getDnsPeeringConfigOrBuilder() { + if (dnsPeeringConfigBuilder_ != null) { + return dnsPeeringConfigBuilder_.getMessageOrBuilder(); + } else { + return dnsPeeringConfig_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .getDefaultInstance() + : dnsPeeringConfig_; + } + } + + /** + * + * + *
+       * Optional. Optional DNS peering configuration for connectivity to your
+       * private VPC network.
+       * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .Builder, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig + .DnsPeeringConfigOrBuilder> + internalGetDnsPeeringConfigFieldBuilder() { + if (dnsPeeringConfigBuilder_ == null) { + dnsPeeringConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .Builder, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig + .DnsPeeringConfigOrBuilder>( + getDnsPeeringConfig(), getParentForChildren(), isClean()); + dnsPeeringConfig_ = null; + } + return dnsPeeringConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.AgentGateway.NetworkConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.AgentGateway.NetworkConfig) + private static final com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig(); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AgentGatewayOutputCardOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. mTLS Endpoint associated with this AgentGateway
+     * 
+ * + * string mtls_endpoint = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mtlsEndpoint. + */ + java.lang.String getMtlsEndpoint(); + + /** + * + * + *
+     * Output only. mTLS Endpoint associated with this AgentGateway
+     * 
+ * + * string mtls_endpoint = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for mtlsEndpoint. + */ + com.google.protobuf.ByteString getMtlsEndpointBytes(); + + /** + * + * + *
+     * Output only. Root Certificates for Agents to validate this AgentGateway
+     * 
+ * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the rootCertificates. + */ + java.util.List getRootCertificatesList(); + + /** + * + * + *
+     * Output only. Root Certificates for Agents to validate this AgentGateway
+     * 
+ * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of rootCertificates. + */ + int getRootCertificatesCount(); + + /** + * + * + *
+     * Output only. Root Certificates for Agents to validate this AgentGateway
+     * 
+ * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The rootCertificates at the given index. + */ + java.lang.String getRootCertificates(int index); + + /** + * + * + *
+     * Output only. Root Certificates for Agents to validate this AgentGateway
+     * 
+ * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the rootCertificates at the given index. + */ + com.google.protobuf.ByteString getRootCertificatesBytes(int index); + + /** + * + * + *
+     * Output only. Service Account used by Service Extensions to operate.
+     * 
+ * + * + * string service_extensions_service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceExtensionsServiceAccount. + */ + java.lang.String getServiceExtensionsServiceAccount(); + + /** + * + * + *
+     * Output only. Service Account used by Service Extensions to operate.
+     * 
+ * + * + * string service_extensions_service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for serviceExtensionsServiceAccount. + */ + com.google.protobuf.ByteString getServiceExtensionsServiceAccountBytes(); + } + + /** + * + * + *
+   * AgentGatewayOutputCard contains informational output-only fields
+   * 
+ * + * Protobuf type {@code google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard} + */ + public static final class AgentGatewayOutputCard extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard) + AgentGatewayOutputCardOrBuilder { + 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= */ "", + "AgentGatewayOutputCard"); + } + + // Use AgentGatewayOutputCard.newBuilder() to construct. + private AgentGatewayOutputCard(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentGatewayOutputCard() { + mtlsEndpoint_ = ""; + rootCertificates_ = com.google.protobuf.LazyStringArrayList.emptyList(); + serviceExtensionsServiceAccount_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_AgentGatewayOutputCard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_AgentGatewayOutputCard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard.class, + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard.Builder + .class); + } + + public static final int MTLS_ENDPOINT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object mtlsEndpoint_ = ""; + + /** + * + * + *
+     * Output only. mTLS Endpoint associated with this AgentGateway
+     * 
+ * + * string mtls_endpoint = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mtlsEndpoint. + */ + @java.lang.Override + public java.lang.String getMtlsEndpoint() { + java.lang.Object ref = mtlsEndpoint_; + 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(); + mtlsEndpoint_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. mTLS Endpoint associated with this AgentGateway
+     * 
+ * + * string mtls_endpoint = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for mtlsEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMtlsEndpointBytes() { + java.lang.Object ref = mtlsEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mtlsEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROOT_CERTIFICATES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList rootCertificates_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * Output only. Root Certificates for Agents to validate this AgentGateway
+     * 
+ * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the rootCertificates. + */ + public com.google.protobuf.ProtocolStringList getRootCertificatesList() { + return rootCertificates_; + } + + /** + * + * + *
+     * Output only. Root Certificates for Agents to validate this AgentGateway
+     * 
+ * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of rootCertificates. + */ + public int getRootCertificatesCount() { + return rootCertificates_.size(); + } + + /** + * + * + *
+     * Output only. Root Certificates for Agents to validate this AgentGateway
+     * 
+ * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The rootCertificates at the given index. + */ + public java.lang.String getRootCertificates(int index) { + return rootCertificates_.get(index); + } + + /** + * + * + *
+     * Output only. Root Certificates for Agents to validate this AgentGateway
+     * 
+ * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the rootCertificates at the given index. + */ + public com.google.protobuf.ByteString getRootCertificatesBytes(int index) { + return rootCertificates_.getByteString(index); + } + + public static final int SERVICE_EXTENSIONS_SERVICE_ACCOUNT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceExtensionsServiceAccount_ = ""; + + /** + * + * + *
+     * Output only. Service Account used by Service Extensions to operate.
+     * 
+ * + * + * string service_extensions_service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceExtensionsServiceAccount. + */ + @java.lang.Override + public java.lang.String getServiceExtensionsServiceAccount() { + java.lang.Object ref = serviceExtensionsServiceAccount_; + 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(); + serviceExtensionsServiceAccount_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. Service Account used by Service Extensions to operate.
+     * 
+ * + * + * string service_extensions_service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for serviceExtensionsServiceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceExtensionsServiceAccountBytes() { + java.lang.Object ref = serviceExtensionsServiceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceExtensionsServiceAccount_ = 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(mtlsEndpoint_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, mtlsEndpoint_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceExtensionsServiceAccount_)) { + com.google.protobuf.GeneratedMessage.writeString( + output, 4, serviceExtensionsServiceAccount_); + } + for (int i = 0; i < rootCertificates_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, rootCertificates_.getRaw(i)); + } + 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(mtlsEndpoint_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, mtlsEndpoint_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceExtensionsServiceAccount_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize( + 4, serviceExtensionsServiceAccount_); + } + { + int dataSize = 0; + for (int i = 0; i < rootCertificates_.size(); i++) { + dataSize += computeStringSizeNoTag(rootCertificates_.getRaw(i)); + } + size += dataSize; + size += 1 * getRootCertificatesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard other = + (com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard) obj; + + if (!getMtlsEndpoint().equals(other.getMtlsEndpoint())) return false; + if (!getRootCertificatesList().equals(other.getRootCertificatesList())) return false; + if (!getServiceExtensionsServiceAccount().equals(other.getServiceExtensionsServiceAccount())) + 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) + MTLS_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getMtlsEndpoint().hashCode(); + if (getRootCertificatesCount() > 0) { + hash = (37 * hash) + ROOT_CERTIFICATES_FIELD_NUMBER; + hash = (53 * hash) + getRootCertificatesList().hashCode(); + } + hash = (37 * hash) + SERVICE_EXTENSIONS_SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceExtensionsServiceAccount().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard 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.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard 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.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + 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.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard 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.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard 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; + } + + /** + * + * + *
+     * AgentGatewayOutputCard contains informational output-only fields
+     * 
+ * + * Protobuf type {@code google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard) + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCardOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_AgentGatewayOutputCard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_AgentGatewayOutputCard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard.class, + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard.Builder + .class); + } + + // Construct using + // com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mtlsEndpoint_ = ""; + rootCertificates_ = com.google.protobuf.LazyStringArrayList.emptyList(); + serviceExtensionsServiceAccount_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_AgentGatewayOutputCard_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard build() { + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + buildPartial() { + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard result = + new com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mtlsEndpoint_ = mtlsEndpoint_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + rootCertificates_.makeImmutable(); + result.rootCertificates_ = rootCertificates_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.serviceExtensionsServiceAccount_ = serviceExtensionsServiceAccount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard) { + return mergeFrom( + (com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard other) { + if (other + == com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + .getDefaultInstance()) return this; + if (!other.getMtlsEndpoint().isEmpty()) { + mtlsEndpoint_ = other.mtlsEndpoint_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.rootCertificates_.isEmpty()) { + if (rootCertificates_.isEmpty()) { + rootCertificates_ = other.rootCertificates_; + bitField0_ |= 0x00000002; + } else { + ensureRootCertificatesIsMutable(); + rootCertificates_.addAll(other.rootCertificates_); + } + onChanged(); + } + if (!other.getServiceExtensionsServiceAccount().isEmpty()) { + serviceExtensionsServiceAccount_ = other.serviceExtensionsServiceAccount_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + mtlsEndpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 34: + { + serviceExtensionsServiceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRootCertificatesIsMutable(); + rootCertificates_.add(s); + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object mtlsEndpoint_ = ""; + + /** + * + * + *
+       * Output only. mTLS Endpoint associated with this AgentGateway
+       * 
+ * + * string mtls_endpoint = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mtlsEndpoint. + */ + public java.lang.String getMtlsEndpoint() { + java.lang.Object ref = mtlsEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mtlsEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. mTLS Endpoint associated with this AgentGateway
+       * 
+ * + * string mtls_endpoint = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for mtlsEndpoint. + */ + public com.google.protobuf.ByteString getMtlsEndpointBytes() { + java.lang.Object ref = mtlsEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mtlsEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. mTLS Endpoint associated with this AgentGateway
+       * 
+ * + * string mtls_endpoint = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The mtlsEndpoint to set. + * @return This builder for chaining. + */ + public Builder setMtlsEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mtlsEndpoint_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. mTLS Endpoint associated with this AgentGateway
+       * 
+ * + * string mtls_endpoint = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMtlsEndpoint() { + mtlsEndpoint_ = getDefaultInstance().getMtlsEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. mTLS Endpoint associated with this AgentGateway
+       * 
+ * + * string mtls_endpoint = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for mtlsEndpoint to set. + * @return This builder for chaining. + */ + public Builder setMtlsEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mtlsEndpoint_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList rootCertificates_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRootCertificatesIsMutable() { + if (!rootCertificates_.isModifiable()) { + rootCertificates_ = new com.google.protobuf.LazyStringArrayList(rootCertificates_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+       * Output only. Root Certificates for Agents to validate this AgentGateway
+       * 
+ * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the rootCertificates. + */ + public com.google.protobuf.ProtocolStringList getRootCertificatesList() { + rootCertificates_.makeImmutable(); + return rootCertificates_; + } + + /** + * + * + *
+       * Output only. Root Certificates for Agents to validate this AgentGateway
+       * 
+ * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of rootCertificates. + */ + public int getRootCertificatesCount() { + return rootCertificates_.size(); + } + + /** + * + * + *
+       * Output only. Root Certificates for Agents to validate this AgentGateway
+       * 
+ * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The rootCertificates at the given index. + */ + public java.lang.String getRootCertificates(int index) { + return rootCertificates_.get(index); + } + + /** + * + * + *
+       * Output only. Root Certificates for Agents to validate this AgentGateway
+       * 
+ * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the rootCertificates at the given index. + */ + public com.google.protobuf.ByteString getRootCertificatesBytes(int index) { + return rootCertificates_.getByteString(index); + } + + /** + * + * + *
+       * Output only. Root Certificates for Agents to validate this AgentGateway
+       * 
+ * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The rootCertificates to set. + * @return This builder for chaining. + */ + public Builder setRootCertificates(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRootCertificatesIsMutable(); + rootCertificates_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Root Certificates for Agents to validate this AgentGateway
+       * 
+ * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The rootCertificates to add. + * @return This builder for chaining. + */ + public Builder addRootCertificates(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRootCertificatesIsMutable(); + rootCertificates_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Root Certificates for Agents to validate this AgentGateway
+       * 
+ * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The rootCertificates to add. + * @return This builder for chaining. + */ + public Builder addAllRootCertificates(java.lang.Iterable values) { + ensureRootCertificatesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rootCertificates_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Root Certificates for Agents to validate this AgentGateway
+       * 
+ * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearRootCertificates() { + rootCertificates_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Root Certificates for Agents to validate this AgentGateway
+       * 
+ * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the rootCertificates to add. + * @return This builder for chaining. + */ + public Builder addRootCertificatesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRootCertificatesIsMutable(); + rootCertificates_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object serviceExtensionsServiceAccount_ = ""; + + /** + * + * + *
+       * Output only. Service Account used by Service Extensions to operate.
+       * 
+ * + * + * string service_extensions_service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceExtensionsServiceAccount. + */ + public java.lang.String getServiceExtensionsServiceAccount() { + java.lang.Object ref = serviceExtensionsServiceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceExtensionsServiceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. Service Account used by Service Extensions to operate.
+       * 
+ * + * + * string service_extensions_service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for serviceExtensionsServiceAccount. + */ + public com.google.protobuf.ByteString getServiceExtensionsServiceAccountBytes() { + java.lang.Object ref = serviceExtensionsServiceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceExtensionsServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. Service Account used by Service Extensions to operate.
+       * 
+ * + * + * string service_extensions_service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The serviceExtensionsServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceExtensionsServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceExtensionsServiceAccount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Service Account used by Service Extensions to operate.
+       * 
+ * + * + * string service_extensions_service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearServiceExtensionsServiceAccount() { + serviceExtensionsServiceAccount_ = + getDefaultInstance().getServiceExtensionsServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Service Account used by Service Extensions to operate.
+       * 
+ * + * + * string service_extensions_service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for serviceExtensionsServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceExtensionsServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceExtensionsServiceAccount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard) + private static final com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard(); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentGatewayOutputCard parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int deploymentModeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object deploymentMode_; + + public enum DeploymentModeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GOOGLE_MANAGED(8), + SELF_MANAGED(9), + DEPLOYMENTMODE_NOT_SET(0); + private final int value; + + private DeploymentModeCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DeploymentModeCase valueOf(int value) { + return forNumber(value); + } + + public static DeploymentModeCase forNumber(int value) { + switch (value) { + case 8: + return GOOGLE_MANAGED; + case 9: + return SELF_MANAGED; + case 0: + return DEPLOYMENTMODE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DeploymentModeCase getDeploymentModeCase() { + return DeploymentModeCase.forNumber(deploymentModeCase_); + } + + public static final int GOOGLE_MANAGED_FIELD_NUMBER = 8; + + /** + * + * + *
+   * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
+   * project.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the googleManaged field is set. + */ + @java.lang.Override + public boolean hasGoogleManaged() { + return deploymentModeCase_ == 8; + } + + /** + * + * + *
+   * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
+   * project.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The googleManaged. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged getGoogleManaged() { + if (deploymentModeCase_ == 8) { + return (com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged) deploymentMode_; + } + return com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
+   * project.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.GoogleManagedOrBuilder + getGoogleManagedOrBuilder() { + if (deploymentModeCase_ == 8) { + return (com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged) deploymentMode_; + } + return com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.getDefaultInstance(); + } + + public static final int SELF_MANAGED_FIELD_NUMBER = 9; + + /** + * + * + *
+   * Optional. Attach to existing Application Load Balancers or Secure Web
+   * Proxies.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the selfManaged field is set. + */ + @java.lang.Override + public boolean hasSelfManaged() { + return deploymentModeCase_ == 9; + } + + /** + * + * + *
+   * Optional. Attach to existing Application Load Balancers or Secure Web
+   * Proxies.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The selfManaged. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.SelfManaged getSelfManaged() { + if (deploymentModeCase_ == 9) { + return (com.google.cloud.networkservices.v1.AgentGateway.SelfManaged) deploymentMode_; + } + return com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Attach to existing Application Load Balancers or Secure Web
+   * Proxies.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.SelfManagedOrBuilder + getSelfManagedOrBuilder() { + if (deploymentModeCase_ == 9) { + return (com.google.cloud.networkservices.v1.AgentGateway.SelfManaged) deploymentMode_; + } + return com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. Name of the AgentGateway resource. It matches pattern
+   * `projects/*/locations/*/agentGateways/<agent_gateway>`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Identifier. Name of the AgentGateway resource. It matches pattern
+   * `projects/*/locations/*/agentGateways/<agent_gateway>`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. The timestamp when the resource was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+   * Optional. Set of label tags associated with the AgentGateway resource.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+   * Optional. Set of label tags associated with the AgentGateway resource.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+   * Optional. Set of label tags associated with the AgentGateway resource.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. Set of label tags associated with the AgentGateway resource.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. A free-text description of the resource. Max length 1024
+   * characters.
+   * 
+ * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A free-text description of the resource. Max length 1024
+   * characters.
+   * 
+ * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * Optional. Etag of the resource.
+   * If this is provided, it must match the server's etag. If the provided etag
+   * does not match the server's etag, the request will fail with a 409 ABORTED
+   * error.
+   * 
+ * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Etag of the resource.
+   * If this is provided, it must match the server's etag. If the provided etag
+   * does not match the server's etag, the request will fail with a 409 ABORTED
+   * error.
+   * 
+ * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROTOCOLS_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList protocols_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.networkservices.v1.AgentGateway.Protocol> + protocols_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.networkservices.v1.AgentGateway.Protocol>() { + public com.google.cloud.networkservices.v1.AgentGateway.Protocol convert(int from) { + com.google.cloud.networkservices.v1.AgentGateway.Protocol result = + com.google.cloud.networkservices.v1.AgentGateway.Protocol.forNumber(from); + return result == null + ? com.google.cloud.networkservices.v1.AgentGateway.Protocol.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
+   * Optional. Deprecated.
+   * 
+ * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @return A list containing the protocols. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List + getProtocolsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.networkservices.v1.AgentGateway.Protocol>( + protocols_, protocols_converter_); + } + + /** + * + * + *
+   * Optional. Deprecated.
+   * 
+ * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @return The count of protocols. + */ + @java.lang.Override + @java.lang.Deprecated + public int getProtocolsCount() { + return protocols_.size(); + } + + /** + * + * + *
+   * Optional. Deprecated.
+   * 
+ * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @param index The index of the element to return. + * @return The protocols at the given index. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.networkservices.v1.AgentGateway.Protocol getProtocols(int index) { + return protocols_converter_.convert(protocols_.getInt(index)); + } + + /** + * + * + *
+   * Optional. Deprecated.
+   * 
+ * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @return A list containing the enum numeric values on the wire for protocols. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List getProtocolsValueList() { + return protocols_; + } + + /** + * + * + *
+   * Optional. Deprecated.
+   * 
+ * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @param index The index of the value to return. + * @return The enum numeric value on the wire of protocols at the given index. + */ + @java.lang.Override + @java.lang.Deprecated + public int getProtocolsValue(int index) { + return protocols_.getInt(index); + } + + private int protocolsMemoizedSerializedSize; + + public static final int REGISTRIES_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList registries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. A list of Agent registries containing the agents, MCP servers and
+   * tools governed by the Agent Gateway. Note: Currently limited to
+   * project-scoped registries Must be of format
+   * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
+   * 
+ * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the registries. + */ + public com.google.protobuf.ProtocolStringList getRegistriesList() { + return registries_; + } + + /** + * + * + *
+   * Optional. A list of Agent registries containing the agents, MCP servers and
+   * tools governed by the Agent Gateway. Note: Currently limited to
+   * project-scoped registries Must be of format
+   * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
+   * 
+ * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of registries. + */ + public int getRegistriesCount() { + return registries_.size(); + } + + /** + * + * + *
+   * Optional. A list of Agent registries containing the agents, MCP servers and
+   * tools governed by the Agent Gateway. Note: Currently limited to
+   * project-scoped registries Must be of format
+   * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
+   * 
+ * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The registries at the given index. + */ + public java.lang.String getRegistries(int index) { + return registries_.get(index); + } + + /** + * + * + *
+   * Optional. A list of Agent registries containing the agents, MCP servers and
+   * tools governed by the Agent Gateway. Note: Currently limited to
+   * project-scoped registries Must be of format
+   * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
+   * 
+ * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the registries at the given index. + */ + public com.google.protobuf.ByteString getRegistriesBytes(int index) { + return registries_.getByteString(index); + } + + public static final int NETWORK_CONFIG_FIELD_NUMBER = 10; + private com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig networkConfig_; + + /** + * + * + *
+   * Optional. Network configuration for the AgentGateway.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the networkConfig field is set. + */ + @java.lang.Override + public boolean hasNetworkConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. Network configuration for the AgentGateway.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The networkConfig. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig getNetworkConfig() { + return networkConfig_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.getDefaultInstance() + : networkConfig_; + } + + /** + * + * + *
+   * Optional. Network configuration for the AgentGateway.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfigOrBuilder + getNetworkConfigOrBuilder() { + return networkConfig_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.getDefaultInstance() + : networkConfig_; + } + + public static final int AGENT_GATEWAY_CARD_FIELD_NUMBER = 11; + private com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agentGatewayCard_; + + /** + * + * + *
+   * Output only. Field for populated AgentGateway card.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the agentGatewayCard field is set. + */ + @java.lang.Override + public boolean hasAgentGatewayCard() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. Field for populated AgentGateway card.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The agentGatewayCard. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + getAgentGatewayCard() { + return agentGatewayCard_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + .getDefaultInstance() + : agentGatewayCard_; + } + + /** + * + * + *
+   * Output only. Field for populated AgentGateway card.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCardOrBuilder + getAgentGatewayCardOrBuilder() { + return agentGatewayCard_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + .getDefaultInstance() + : agentGatewayCard_; + } + + 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 { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, etag_); + } + if (deploymentModeCase_ == 8) { + output.writeMessage( + 8, (com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged) deploymentMode_); + } + if (deploymentModeCase_ == 9) { + output.writeMessage( + 9, (com.google.cloud.networkservices.v1.AgentGateway.SelfManaged) deploymentMode_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(10, getNetworkConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(11, getAgentGatewayCard()); + } + if (getProtocolsList().size() > 0) { + output.writeUInt32NoTag(98); + output.writeUInt32NoTag(protocolsMemoizedSerializedSize); + } + for (int i = 0; i < protocols_.size(); i++) { + output.writeEnumNoTag(protocols_.getInt(i)); + } + for (int i = 0; i < registries_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, registries_.getRaw(i)); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, etag_); + } + if (deploymentModeCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged) deploymentMode_); + } + if (deploymentModeCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.networkservices.v1.AgentGateway.SelfManaged) deploymentMode_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getNetworkConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getAgentGatewayCard()); + } + { + int dataSize = 0; + for (int i = 0; i < protocols_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(protocols_.getInt(i)); + } + size += dataSize; + if (!getProtocolsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + protocolsMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < registries_.size(); i++) { + dataSize += computeStringSizeNoTag(registries_.getRaw(i)); + } + size += dataSize; + size += 1 * getRegistriesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networkservices.v1.AgentGateway)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.AgentGateway other = + (com.google.cloud.networkservices.v1.AgentGateway) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!protocols_.equals(other.protocols_)) return false; + if (!getRegistriesList().equals(other.getRegistriesList())) return false; + if (hasNetworkConfig() != other.hasNetworkConfig()) return false; + if (hasNetworkConfig()) { + if (!getNetworkConfig().equals(other.getNetworkConfig())) return false; + } + if (hasAgentGatewayCard() != other.hasAgentGatewayCard()) return false; + if (hasAgentGatewayCard()) { + if (!getAgentGatewayCard().equals(other.getAgentGatewayCard())) return false; + } + if (!getDeploymentModeCase().equals(other.getDeploymentModeCase())) return false; + switch (deploymentModeCase_) { + case 8: + if (!getGoogleManaged().equals(other.getGoogleManaged())) return false; + break; + case 9: + if (!getSelfManaged().equals(other.getSelfManaged())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (getProtocolsCount() > 0) { + hash = (37 * hash) + PROTOCOLS_FIELD_NUMBER; + hash = (53 * hash) + protocols_.hashCode(); + } + if (getRegistriesCount() > 0) { + hash = (37 * hash) + REGISTRIES_FIELD_NUMBER; + hash = (53 * hash) + getRegistriesList().hashCode(); + } + if (hasNetworkConfig()) { + hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNetworkConfig().hashCode(); + } + if (hasAgentGatewayCard()) { + hash = (37 * hash) + AGENT_GATEWAY_CARD_FIELD_NUMBER; + hash = (53 * hash) + getAgentGatewayCard().hashCode(); + } + switch (deploymentModeCase_) { + case 8: + hash = (37 * hash) + GOOGLE_MANAGED_FIELD_NUMBER; + hash = (53 * hash) + getGoogleManaged().hashCode(); + break; + case 9: + hash = (37 * hash) + SELF_MANAGED_FIELD_NUMBER; + hash = (53 * hash) + getSelfManaged().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.AgentGateway parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway 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.cloud.networkservices.v1.AgentGateway parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway 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.cloud.networkservices.v1.AgentGateway parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway 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.cloud.networkservices.v1.AgentGateway parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway 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.cloud.networkservices.v1.AgentGateway 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; + } + + /** + * + * + *
+   * AgentGateway represents the agent gateway resource.
+   * 
+ * + * Protobuf type {@code google.cloud.networkservices.v1.AgentGateway} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.AgentGateway) + com.google.cloud.networkservices.v1.AgentGatewayOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.class, + com.google.cloud.networkservices.v1.AgentGateway.Builder.class); + } + + // Construct using com.google.cloud.networkservices.v1.AgentGateway.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetNetworkConfigFieldBuilder(); + internalGetAgentGatewayCardFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (googleManagedBuilder_ != null) { + googleManagedBuilder_.clear(); + } + if (selfManagedBuilder_ != null) { + selfManagedBuilder_.clear(); + } + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + description_ = ""; + etag_ = ""; + protocols_ = emptyIntList(); + registries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + networkConfig_ = null; + if (networkConfigBuilder_ != null) { + networkConfigBuilder_.dispose(); + networkConfigBuilder_ = null; + } + agentGatewayCard_ = null; + if (agentGatewayCardBuilder_ != null) { + agentGatewayCardBuilder_.dispose(); + agentGatewayCardBuilder_ = null; + } + deploymentModeCase_ = 0; + deploymentMode_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway build() { + com.google.cloud.networkservices.v1.AgentGateway result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway buildPartial() { + com.google.cloud.networkservices.v1.AgentGateway result = + new com.google.cloud.networkservices.v1.AgentGateway(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkservices.v1.AgentGateway result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + protocols_.makeImmutable(); + result.protocols_ = protocols_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + registries_.makeImmutable(); + result.registries_ = registries_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.networkConfig_ = + networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.agentGatewayCard_ = + agentGatewayCardBuilder_ == null ? agentGatewayCard_ : agentGatewayCardBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.networkservices.v1.AgentGateway result) { + result.deploymentModeCase_ = deploymentModeCase_; + result.deploymentMode_ = this.deploymentMode_; + if (deploymentModeCase_ == 8 && googleManagedBuilder_ != null) { + result.deploymentMode_ = googleManagedBuilder_.build(); + } + if (deploymentModeCase_ == 9 && selfManagedBuilder_ != null) { + result.deploymentMode_ = selfManagedBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.AgentGateway) { + return mergeFrom((com.google.cloud.networkservices.v1.AgentGateway) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkservices.v1.AgentGateway other) { + if (other == com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000020; + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.protocols_.isEmpty()) { + if (protocols_.isEmpty()) { + protocols_ = other.protocols_; + protocols_.makeImmutable(); + bitField0_ |= 0x00000100; + } else { + ensureProtocolsIsMutable(); + protocols_.addAll(other.protocols_); + } + onChanged(); + } + if (!other.registries_.isEmpty()) { + if (registries_.isEmpty()) { + registries_ = other.registries_; + bitField0_ |= 0x00000200; + } else { + ensureRegistriesIsMutable(); + registries_.addAll(other.registries_); + } + onChanged(); + } + if (other.hasNetworkConfig()) { + mergeNetworkConfig(other.getNetworkConfig()); + } + if (other.hasAgentGatewayCard()) { + mergeAgentGatewayCard(other.getAgentGatewayCard()); + } + switch (other.getDeploymentModeCase()) { + case GOOGLE_MANAGED: + { + mergeGoogleManaged(other.getGoogleManaged()); + break; + } + case SELF_MANAGED: + { + mergeSelfManaged(other.getSelfManaged()); + break; + } + case DEPLOYMENTMODE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 34 + case 42: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 42 + case 50: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 50 + case 66: + { + input.readMessage( + internalGetGoogleManagedFieldBuilder().getBuilder(), extensionRegistry); + deploymentModeCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage( + internalGetSelfManagedFieldBuilder().getBuilder(), extensionRegistry); + deploymentModeCase_ = 9; + break; + } // case 74 + case 82: + { + input.readMessage( + internalGetNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 82 + case 90: + { + input.readMessage( + internalGetAgentGatewayCardFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 90 + case 96: + { + int tmpRaw = input.readEnum(); + ensureProtocolsIsMutable(); + protocols_.addInt(tmpRaw); + break; + } // case 96 + case 98: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureProtocolsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + protocols_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 98 + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRegistriesIsMutable(); + registries_.add(s); + break; + } // case 106 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int deploymentModeCase_ = 0; + private java.lang.Object deploymentMode_; + + public DeploymentModeCase getDeploymentModeCase() { + return DeploymentModeCase.forNumber(deploymentModeCase_); + } + + public Builder clearDeploymentMode() { + deploymentModeCase_ = 0; + deploymentMode_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged, + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.Builder, + com.google.cloud.networkservices.v1.AgentGateway.GoogleManagedOrBuilder> + googleManagedBuilder_; + + /** + * + * + *
+     * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
+     * project.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the googleManaged field is set. + */ + @java.lang.Override + public boolean hasGoogleManaged() { + return deploymentModeCase_ == 8; + } + + /** + * + * + *
+     * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
+     * project.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The googleManaged. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged getGoogleManaged() { + if (googleManagedBuilder_ == null) { + if (deploymentModeCase_ == 8) { + return (com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged) deploymentMode_; + } + return com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.getDefaultInstance(); + } else { + if (deploymentModeCase_ == 8) { + return googleManagedBuilder_.getMessage(); + } + return com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
+     * project.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGoogleManaged( + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged value) { + if (googleManagedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deploymentMode_ = value; + onChanged(); + } else { + googleManagedBuilder_.setMessage(value); + } + deploymentModeCase_ = 8; + return this; + } + + /** + * + * + *
+     * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
+     * project.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGoogleManaged( + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.Builder builderForValue) { + if (googleManagedBuilder_ == null) { + deploymentMode_ = builderForValue.build(); + onChanged(); + } else { + googleManagedBuilder_.setMessage(builderForValue.build()); + } + deploymentModeCase_ = 8; + return this; + } + + /** + * + * + *
+     * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
+     * project.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGoogleManaged( + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged value) { + if (googleManagedBuilder_ == null) { + if (deploymentModeCase_ == 8 + && deploymentMode_ + != com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged + .getDefaultInstance()) { + deploymentMode_ = + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.newBuilder( + (com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged) + deploymentMode_) + .mergeFrom(value) + .buildPartial(); + } else { + deploymentMode_ = value; + } + onChanged(); + } else { + if (deploymentModeCase_ == 8) { + googleManagedBuilder_.mergeFrom(value); + } else { + googleManagedBuilder_.setMessage(value); + } + } + deploymentModeCase_ = 8; + return this; + } + + /** + * + * + *
+     * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
+     * project.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGoogleManaged() { + if (googleManagedBuilder_ == null) { + if (deploymentModeCase_ == 8) { + deploymentModeCase_ = 0; + deploymentMode_ = null; + onChanged(); + } + } else { + if (deploymentModeCase_ == 8) { + deploymentModeCase_ = 0; + deploymentMode_ = null; + } + googleManagedBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
+     * project.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.Builder + getGoogleManagedBuilder() { + return internalGetGoogleManagedFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
+     * project.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.GoogleManagedOrBuilder + getGoogleManagedOrBuilder() { + if ((deploymentModeCase_ == 8) && (googleManagedBuilder_ != null)) { + return googleManagedBuilder_.getMessageOrBuilder(); + } else { + if (deploymentModeCase_ == 8) { + return (com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged) deploymentMode_; + } + return com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
+     * project.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged, + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.Builder, + com.google.cloud.networkservices.v1.AgentGateway.GoogleManagedOrBuilder> + internalGetGoogleManagedFieldBuilder() { + if (googleManagedBuilder_ == null) { + if (!(deploymentModeCase_ == 8)) { + deploymentMode_ = + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.getDefaultInstance(); + } + googleManagedBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged, + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.Builder, + com.google.cloud.networkservices.v1.AgentGateway.GoogleManagedOrBuilder>( + (com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged) deploymentMode_, + getParentForChildren(), + isClean()); + deploymentMode_ = null; + } + deploymentModeCase_ = 8; + onChanged(); + return googleManagedBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged, + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.Builder, + com.google.cloud.networkservices.v1.AgentGateway.SelfManagedOrBuilder> + selfManagedBuilder_; + + /** + * + * + *
+     * Optional. Attach to existing Application Load Balancers or Secure Web
+     * Proxies.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the selfManaged field is set. + */ + @java.lang.Override + public boolean hasSelfManaged() { + return deploymentModeCase_ == 9; + } + + /** + * + * + *
+     * Optional. Attach to existing Application Load Balancers or Secure Web
+     * Proxies.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The selfManaged. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.SelfManaged getSelfManaged() { + if (selfManagedBuilder_ == null) { + if (deploymentModeCase_ == 9) { + return (com.google.cloud.networkservices.v1.AgentGateway.SelfManaged) deploymentMode_; + } + return com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.getDefaultInstance(); + } else { + if (deploymentModeCase_ == 9) { + return selfManagedBuilder_.getMessage(); + } + return com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Attach to existing Application Load Balancers or Secure Web
+     * Proxies.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSelfManaged( + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged value) { + if (selfManagedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deploymentMode_ = value; + onChanged(); + } else { + selfManagedBuilder_.setMessage(value); + } + deploymentModeCase_ = 9; + return this; + } + + /** + * + * + *
+     * Optional. Attach to existing Application Load Balancers or Secure Web
+     * Proxies.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSelfManaged( + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.Builder builderForValue) { + if (selfManagedBuilder_ == null) { + deploymentMode_ = builderForValue.build(); + onChanged(); + } else { + selfManagedBuilder_.setMessage(builderForValue.build()); + } + deploymentModeCase_ = 9; + return this; + } + + /** + * + * + *
+     * Optional. Attach to existing Application Load Balancers or Secure Web
+     * Proxies.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSelfManaged( + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged value) { + if (selfManagedBuilder_ == null) { + if (deploymentModeCase_ == 9 + && deploymentMode_ + != com.google.cloud.networkservices.v1.AgentGateway.SelfManaged + .getDefaultInstance()) { + deploymentMode_ = + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.newBuilder( + (com.google.cloud.networkservices.v1.AgentGateway.SelfManaged) + deploymentMode_) + .mergeFrom(value) + .buildPartial(); + } else { + deploymentMode_ = value; + } + onChanged(); + } else { + if (deploymentModeCase_ == 9) { + selfManagedBuilder_.mergeFrom(value); + } else { + selfManagedBuilder_.setMessage(value); + } + } + deploymentModeCase_ = 9; + return this; + } + + /** + * + * + *
+     * Optional. Attach to existing Application Load Balancers or Secure Web
+     * Proxies.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSelfManaged() { + if (selfManagedBuilder_ == null) { + if (deploymentModeCase_ == 9) { + deploymentModeCase_ = 0; + deploymentMode_ = null; + onChanged(); + } + } else { + if (deploymentModeCase_ == 9) { + deploymentModeCase_ = 0; + deploymentMode_ = null; + } + selfManagedBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Attach to existing Application Load Balancers or Secure Web
+     * Proxies.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.Builder + getSelfManagedBuilder() { + return internalGetSelfManagedFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Attach to existing Application Load Balancers or Secure Web
+     * Proxies.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.SelfManagedOrBuilder + getSelfManagedOrBuilder() { + if ((deploymentModeCase_ == 9) && (selfManagedBuilder_ != null)) { + return selfManagedBuilder_.getMessageOrBuilder(); + } else { + if (deploymentModeCase_ == 9) { + return (com.google.cloud.networkservices.v1.AgentGateway.SelfManaged) deploymentMode_; + } + return com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Attach to existing Application Load Balancers or Secure Web
+     * Proxies.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged, + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.Builder, + com.google.cloud.networkservices.v1.AgentGateway.SelfManagedOrBuilder> + internalGetSelfManagedFieldBuilder() { + if (selfManagedBuilder_ == null) { + if (!(deploymentModeCase_ == 9)) { + deploymentMode_ = + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.getDefaultInstance(); + } + selfManagedBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged, + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.Builder, + com.google.cloud.networkservices.v1.AgentGateway.SelfManagedOrBuilder>( + (com.google.cloud.networkservices.v1.AgentGateway.SelfManaged) deploymentMode_, + getParentForChildren(), + isClean()); + deploymentMode_ = null; + } + deploymentModeCase_ = 9; + onChanged(); + return selfManagedBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. Name of the AgentGateway resource. It matches pattern
+     * `projects/*/locations/*/agentGateways/<agent_gateway>`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Identifier. Name of the AgentGateway resource. It matches pattern
+     * `projects/*/locations/*/agentGateways/<agent_gateway>`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Identifier. Name of the AgentGateway resource. It matches pattern
+     * `projects/*/locations/*/agentGateways/<agent_gateway>`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. Name of the AgentGateway resource. It matches pattern
+     * `projects/*/locations/*/agentGateways/<agent_gateway>`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. Name of the AgentGateway resource. It matches pattern
+     * `projects/*/locations/*/agentGateways/<agent_gateway>`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. The timestamp when the resource was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000020; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+     * Optional. Set of label tags associated with the AgentGateway resource.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+     * Optional. Set of label tags associated with the AgentGateway resource.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+     * Optional. Set of label tags associated with the AgentGateway resource.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. Set of label tags associated with the AgentGateway resource.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000020); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. Set of label tags associated with the AgentGateway resource.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000020; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
+     * Optional. Set of label tags associated with the AgentGateway resource.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000020; + return this; + } + + /** + * + * + *
+     * Optional. Set of label tags associated with the AgentGateway resource.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000020; + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. A free-text description of the resource. Max length 1024
+     * characters.
+     * 
+ * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A free-text description of the resource. Max length 1024
+     * characters.
+     * 
+ * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A free-text description of the resource. Max length 1024
+     * characters.
+     * 
+ * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A free-text description of the resource. Max length 1024
+     * characters.
+     * 
+ * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A free-text description of the resource. Max length 1024
+     * characters.
+     * 
+ * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * Optional. Etag of the resource.
+     * If this is provided, it must match the server's etag. If the provided etag
+     * does not match the server's etag, the request will fail with a 409 ABORTED
+     * error.
+     * 
+ * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Etag of the resource.
+     * If this is provided, it must match the server's etag. If the provided etag
+     * does not match the server's etag, the request will fail with a 409 ABORTED
+     * error.
+     * 
+ * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Etag of the resource.
+     * If this is provided, it must match the server's etag. If the provided etag
+     * does not match the server's etag, the request will fail with a 409 ABORTED
+     * error.
+     * 
+ * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Etag of the resource.
+     * If this is provided, it must match the server's etag. If the provided etag
+     * does not match the server's etag, the request will fail with a 409 ABORTED
+     * error.
+     * 
+ * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Etag of the resource.
+     * If this is provided, it must match the server's etag. If the provided etag
+     * does not match the server's etag, the request will fail with a 409 ABORTED
+     * error.
+     * 
+ * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList protocols_ = emptyIntList(); + + private void ensureProtocolsIsMutable() { + if (!protocols_.isModifiable()) { + protocols_ = makeMutableCopy(protocols_); + } + bitField0_ |= 0x00000100; + } + + /** + * + * + *
+     * Optional. Deprecated.
+     * 
+ * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @return A list containing the protocols. + */ + @java.lang.Deprecated + public java.util.List + getProtocolsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.networkservices.v1.AgentGateway.Protocol>( + protocols_, protocols_converter_); + } + + /** + * + * + *
+     * Optional. Deprecated.
+     * 
+ * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @return The count of protocols. + */ + @java.lang.Deprecated + public int getProtocolsCount() { + return protocols_.size(); + } + + /** + * + * + *
+     * Optional. Deprecated.
+     * 
+ * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @param index The index of the element to return. + * @return The protocols at the given index. + */ + @java.lang.Deprecated + public com.google.cloud.networkservices.v1.AgentGateway.Protocol getProtocols(int index) { + return protocols_converter_.convert(protocols_.getInt(index)); + } + + /** + * + * + *
+     * Optional. Deprecated.
+     * 
+ * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @param index The index to set the value at. + * @param value The protocols to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProtocols( + int index, com.google.cloud.networkservices.v1.AgentGateway.Protocol value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProtocolsIsMutable(); + protocols_.setInt(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Deprecated.
+     * 
+ * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @param value The protocols to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addProtocols(com.google.cloud.networkservices.v1.AgentGateway.Protocol value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProtocolsIsMutable(); + protocols_.addInt(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Deprecated.
+     * 
+ * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @param values The protocols to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addAllProtocols( + java.lang.Iterable + values) { + ensureProtocolsIsMutable(); + for (com.google.cloud.networkservices.v1.AgentGateway.Protocol value : values) { + protocols_.addInt(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Deprecated.
+     * 
+ * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProtocols() { + protocols_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Deprecated.
+     * 
+ * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @return A list containing the enum numeric values on the wire for protocols. + */ + @java.lang.Deprecated + public java.util.List getProtocolsValueList() { + protocols_.makeImmutable(); + return protocols_; + } + + /** + * + * + *
+     * Optional. Deprecated.
+     * 
+ * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @param index The index of the value to return. + * @return The enum numeric value on the wire of protocols at the given index. + */ + @java.lang.Deprecated + public int getProtocolsValue(int index) { + return protocols_.getInt(index); + } + + /** + * + * + *
+     * Optional. Deprecated.
+     * 
+ * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for protocols to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProtocolsValue(int index, int value) { + ensureProtocolsIsMutable(); + protocols_.setInt(index, value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Deprecated.
+     * 
+ * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @param value The enum numeric value on the wire for protocols to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addProtocolsValue(int value) { + ensureProtocolsIsMutable(); + protocols_.addInt(value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Deprecated.
+     * 
+ * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @param values The enum numeric values on the wire for protocols to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addAllProtocolsValue(java.lang.Iterable values) { + ensureProtocolsIsMutable(); + for (int value : values) { + protocols_.addInt(value); + } + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList registries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRegistriesIsMutable() { + if (!registries_.isModifiable()) { + registries_ = new com.google.protobuf.LazyStringArrayList(registries_); + } + bitField0_ |= 0x00000200; + } + + /** + * + * + *
+     * Optional. A list of Agent registries containing the agents, MCP servers and
+     * tools governed by the Agent Gateway. Note: Currently limited to
+     * project-scoped registries Must be of format
+     * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
+     * 
+ * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the registries. + */ + public com.google.protobuf.ProtocolStringList getRegistriesList() { + registries_.makeImmutable(); + return registries_; + } + + /** + * + * + *
+     * Optional. A list of Agent registries containing the agents, MCP servers and
+     * tools governed by the Agent Gateway. Note: Currently limited to
+     * project-scoped registries Must be of format
+     * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
+     * 
+ * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of registries. + */ + public int getRegistriesCount() { + return registries_.size(); + } + + /** + * + * + *
+     * Optional. A list of Agent registries containing the agents, MCP servers and
+     * tools governed by the Agent Gateway. Note: Currently limited to
+     * project-scoped registries Must be of format
+     * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
+     * 
+ * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The registries at the given index. + */ + public java.lang.String getRegistries(int index) { + return registries_.get(index); + } + + /** + * + * + *
+     * Optional. A list of Agent registries containing the agents, MCP servers and
+     * tools governed by the Agent Gateway. Note: Currently limited to
+     * project-scoped registries Must be of format
+     * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
+     * 
+ * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the registries at the given index. + */ + public com.google.protobuf.ByteString getRegistriesBytes(int index) { + return registries_.getByteString(index); + } + + /** + * + * + *
+     * Optional. A list of Agent registries containing the agents, MCP servers and
+     * tools governed by the Agent Gateway. Note: Currently limited to
+     * project-scoped registries Must be of format
+     * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
+     * 
+ * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The registries to set. + * @return This builder for chaining. + */ + public Builder setRegistries(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegistriesIsMutable(); + registries_.set(index, value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of Agent registries containing the agents, MCP servers and
+     * tools governed by the Agent Gateway. Note: Currently limited to
+     * project-scoped registries Must be of format
+     * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
+     * 
+ * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The registries to add. + * @return This builder for chaining. + */ + public Builder addRegistries(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegistriesIsMutable(); + registries_.add(value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of Agent registries containing the agents, MCP servers and
+     * tools governed by the Agent Gateway. Note: Currently limited to
+     * project-scoped registries Must be of format
+     * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
+     * 
+ * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The registries to add. + * @return This builder for chaining. + */ + public Builder addAllRegistries(java.lang.Iterable values) { + ensureRegistriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, registries_); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of Agent registries containing the agents, MCP servers and
+     * tools governed by the Agent Gateway. Note: Currently limited to
+     * project-scoped registries Must be of format
+     * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
+     * 
+ * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRegistries() { + registries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of Agent registries containing the agents, MCP servers and
+     * tools governed by the Agent Gateway. Note: Currently limited to
+     * project-scoped registries Must be of format
+     * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
+     * 
+ * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the registries to add. + * @return This builder for chaining. + */ + public Builder addRegistriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRegistriesIsMutable(); + registries_.add(value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig networkConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Builder, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfigOrBuilder> + networkConfigBuilder_; + + /** + * + * + *
+     * Optional. Network configuration for the AgentGateway.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the networkConfig field is set. + */ + public boolean hasNetworkConfig() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * Optional. Network configuration for the AgentGateway.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The networkConfig. + */ + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig getNetworkConfig() { + if (networkConfigBuilder_ == null) { + return networkConfig_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.getDefaultInstance() + : networkConfig_; + } else { + return networkConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Network configuration for the AgentGateway.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNetworkConfig( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkConfig_ = value; + } else { + networkConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Network configuration for the AgentGateway.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNetworkConfig( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Builder builderForValue) { + if (networkConfigBuilder_ == null) { + networkConfig_ = builderForValue.build(); + } else { + networkConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Network configuration for the AgentGateway.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeNetworkConfig( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && networkConfig_ != null + && networkConfig_ + != com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig + .getDefaultInstance()) { + getNetworkConfigBuilder().mergeFrom(value); + } else { + networkConfig_ = value; + } + } else { + networkConfigBuilder_.mergeFrom(value); + } + if (networkConfig_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Network configuration for the AgentGateway.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearNetworkConfig() { + bitField0_ = (bitField0_ & ~0x00000400); + networkConfig_ = null; + if (networkConfigBuilder_ != null) { + networkConfigBuilder_.dispose(); + networkConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Network configuration for the AgentGateway.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Builder + getNetworkConfigBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetNetworkConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Network configuration for the AgentGateway.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfigOrBuilder + getNetworkConfigOrBuilder() { + if (networkConfigBuilder_ != null) { + return networkConfigBuilder_.getMessageOrBuilder(); + } else { + return networkConfig_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.getDefaultInstance() + : networkConfig_; + } + } + + /** + * + * + *
+     * Optional. Network configuration for the AgentGateway.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Builder, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfigOrBuilder> + internalGetNetworkConfigFieldBuilder() { + if (networkConfigBuilder_ == null) { + networkConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Builder, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfigOrBuilder>( + getNetworkConfig(), getParentForChildren(), isClean()); + networkConfig_ = null; + } + return networkConfigBuilder_; + } + + private com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + agentGatewayCard_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard, + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard.Builder, + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCardOrBuilder> + agentGatewayCardBuilder_; + + /** + * + * + *
+     * Output only. Field for populated AgentGateway card.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the agentGatewayCard field is set. + */ + public boolean hasAgentGatewayCard() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+     * Output only. Field for populated AgentGateway card.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The agentGatewayCard. + */ + public com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + getAgentGatewayCard() { + if (agentGatewayCardBuilder_ == null) { + return agentGatewayCard_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + .getDefaultInstance() + : agentGatewayCard_; + } else { + return agentGatewayCardBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Field for populated AgentGateway card.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAgentGatewayCard( + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard value) { + if (agentGatewayCardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentGatewayCard_ = value; + } else { + agentGatewayCardBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Field for populated AgentGateway card.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAgentGatewayCard( + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard.Builder + builderForValue) { + if (agentGatewayCardBuilder_ == null) { + agentGatewayCard_ = builderForValue.build(); + } else { + agentGatewayCardBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Field for populated AgentGateway card.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeAgentGatewayCard( + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard value) { + if (agentGatewayCardBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && agentGatewayCard_ != null + && agentGatewayCard_ + != com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + .getDefaultInstance()) { + getAgentGatewayCardBuilder().mergeFrom(value); + } else { + agentGatewayCard_ = value; + } + } else { + agentGatewayCardBuilder_.mergeFrom(value); + } + if (agentGatewayCard_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Field for populated AgentGateway card.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAgentGatewayCard() { + bitField0_ = (bitField0_ & ~0x00000800); + agentGatewayCard_ = null; + if (agentGatewayCardBuilder_ != null) { + agentGatewayCardBuilder_.dispose(); + agentGatewayCardBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Field for populated AgentGateway card.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard.Builder + getAgentGatewayCardBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return internalGetAgentGatewayCardFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Field for populated AgentGateway card.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCardOrBuilder + getAgentGatewayCardOrBuilder() { + if (agentGatewayCardBuilder_ != null) { + return agentGatewayCardBuilder_.getMessageOrBuilder(); + } else { + return agentGatewayCard_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + .getDefaultInstance() + : agentGatewayCard_; + } + } + + /** + * + * + *
+     * Output only. Field for populated AgentGateway card.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard, + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard.Builder, + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCardOrBuilder> + internalGetAgentGatewayCardFieldBuilder() { + if (agentGatewayCardBuilder_ == null) { + agentGatewayCardBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard, + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard.Builder, + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCardOrBuilder>( + getAgentGatewayCard(), getParentForChildren(), isClean()); + agentGatewayCard_ = null; + } + return agentGatewayCardBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.AgentGateway) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.AgentGateway) + private static final com.google.cloud.networkservices.v1.AgentGateway DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.AgentGateway(); + } + + public static com.google.cloud.networkservices.v1.AgentGateway getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentGateway parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayName.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayName.java new file mode 100644 index 000000000000..0b6b363c82e2 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayName.java @@ -0,0 +1,227 @@ +/* + * 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.networkservices.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class AgentGatewayName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_AGENT_GATEWAY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/agentGateways/{agent_gateway}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String agentGateway; + + @Deprecated + protected AgentGatewayName() { + project = null; + location = null; + agentGateway = null; + } + + private AgentGatewayName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + agentGateway = Preconditions.checkNotNull(builder.getAgentGateway()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAgentGateway() { + return agentGateway; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AgentGatewayName of(String project, String location, String agentGateway) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAgentGateway(agentGateway) + .build(); + } + + public static String format(String project, String location, String agentGateway) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAgentGateway(agentGateway) + .build() + .toString(); + } + + public static AgentGatewayName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_AGENT_GATEWAY.validatedMatch( + formattedString, "AgentGatewayName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("agent_gateway")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (AgentGatewayName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_AGENT_GATEWAY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (agentGateway != null) { + fieldMapBuilder.put("agent_gateway", agentGateway); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_AGENT_GATEWAY.instantiate( + "project", project, "location", location, "agent_gateway", agentGateway); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AgentGatewayName that = ((AgentGatewayName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.agentGateway, that.agentGateway); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(agentGateway); + return h; + } + + /** Builder for projects/{project}/locations/{location}/agentGateways/{agent_gateway}. */ + public static class Builder { + private String project; + private String location; + private String agentGateway; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAgentGateway() { + return agentGateway; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAgentGateway(String agentGateway) { + this.agentGateway = agentGateway; + return this; + } + + private Builder(AgentGatewayName agentGatewayName) { + this.project = agentGatewayName.project; + this.location = agentGatewayName.location; + this.agentGateway = agentGatewayName.agentGateway; + } + + public AgentGatewayName build() { + return new AgentGatewayName(this); + } + } +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayOrBuilder.java new file mode 100644 index 000000000000..cad10ef1832a --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayOrBuilder.java @@ -0,0 +1,600 @@ +/* + * 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/cloud/networkservices/v1/agent_gateway.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +@com.google.protobuf.Generated +public interface AgentGatewayOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.AgentGateway) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
+   * project.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the googleManaged field is set. + */ + boolean hasGoogleManaged(); + + /** + * + * + *
+   * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
+   * project.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The googleManaged. + */ + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged getGoogleManaged(); + + /** + * + * + *
+   * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
+   * project.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networkservices.v1.AgentGateway.GoogleManagedOrBuilder + getGoogleManagedOrBuilder(); + + /** + * + * + *
+   * Optional. Attach to existing Application Load Balancers or Secure Web
+   * Proxies.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the selfManaged field is set. + */ + boolean hasSelfManaged(); + + /** + * + * + *
+   * Optional. Attach to existing Application Load Balancers or Secure Web
+   * Proxies.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The selfManaged. + */ + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged getSelfManaged(); + + /** + * + * + *
+   * Optional. Attach to existing Application Load Balancers or Secure Web
+   * Proxies.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networkservices.v1.AgentGateway.SelfManagedOrBuilder getSelfManagedOrBuilder(); + + /** + * + * + *
+   * Identifier. Name of the AgentGateway resource. It matches pattern
+   * `projects/*/locations/*/agentGateways/<agent_gateway>`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. Name of the AgentGateway resource. It matches pattern
+   * `projects/*/locations/*/agentGateways/<agent_gateway>`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. Set of label tags associated with the AgentGateway resource.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
+   * Optional. Set of label tags associated with the AgentGateway resource.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
+   * Optional. Set of label tags associated with the AgentGateway resource.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
+   * Optional. Set of label tags associated with the AgentGateway resource.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. Set of label tags associated with the AgentGateway resource.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Optional. A free-text description of the resource. Max length 1024
+   * characters.
+   * 
+ * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. A free-text description of the resource. Max length 1024
+   * characters.
+   * 
+ * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional. Etag of the resource.
+   * If this is provided, it must match the server's etag. If the provided etag
+   * does not match the server's etag, the request will fail with a 409 ABORTED
+   * error.
+   * 
+ * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * Optional. Etag of the resource.
+   * If this is provided, it must match the server's etag. If the provided etag
+   * does not match the server's etag, the request will fail with a 409 ABORTED
+   * error.
+   * 
+ * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Optional. Deprecated.
+   * 
+ * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @return A list containing the protocols. + */ + @java.lang.Deprecated + java.util.List getProtocolsList(); + + /** + * + * + *
+   * Optional. Deprecated.
+   * 
+ * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @return The count of protocols. + */ + @java.lang.Deprecated + int getProtocolsCount(); + + /** + * + * + *
+   * Optional. Deprecated.
+   * 
+ * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @param index The index of the element to return. + * @return The protocols at the given index. + */ + @java.lang.Deprecated + com.google.cloud.networkservices.v1.AgentGateway.Protocol getProtocols(int index); + + /** + * + * + *
+   * Optional. Deprecated.
+   * 
+ * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @return A list containing the enum numeric values on the wire for protocols. + */ + @java.lang.Deprecated + java.util.List getProtocolsValueList(); + + /** + * + * + *
+   * Optional. Deprecated.
+   * 
+ * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @param index The index of the value to return. + * @return The enum numeric value on the wire of protocols at the given index. + */ + @java.lang.Deprecated + int getProtocolsValue(int index); + + /** + * + * + *
+   * Optional. A list of Agent registries containing the agents, MCP servers and
+   * tools governed by the Agent Gateway. Note: Currently limited to
+   * project-scoped registries Must be of format
+   * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
+   * 
+ * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the registries. + */ + java.util.List getRegistriesList(); + + /** + * + * + *
+   * Optional. A list of Agent registries containing the agents, MCP servers and
+   * tools governed by the Agent Gateway. Note: Currently limited to
+   * project-scoped registries Must be of format
+   * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
+   * 
+ * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of registries. + */ + int getRegistriesCount(); + + /** + * + * + *
+   * Optional. A list of Agent registries containing the agents, MCP servers and
+   * tools governed by the Agent Gateway. Note: Currently limited to
+   * project-scoped registries Must be of format
+   * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
+   * 
+ * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The registries at the given index. + */ + java.lang.String getRegistries(int index); + + /** + * + * + *
+   * Optional. A list of Agent registries containing the agents, MCP servers and
+   * tools governed by the Agent Gateway. Note: Currently limited to
+   * project-scoped registries Must be of format
+   * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
+   * 
+ * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the registries at the given index. + */ + com.google.protobuf.ByteString getRegistriesBytes(int index); + + /** + * + * + *
+   * Optional. Network configuration for the AgentGateway.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the networkConfig field is set. + */ + boolean hasNetworkConfig(); + + /** + * + * + *
+   * Optional. Network configuration for the AgentGateway.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The networkConfig. + */ + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig getNetworkConfig(); + + /** + * + * + *
+   * Optional. Network configuration for the AgentGateway.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfigOrBuilder + getNetworkConfigOrBuilder(); + + /** + * + * + *
+   * Output only. Field for populated AgentGateway card.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the agentGatewayCard field is set. + */ + boolean hasAgentGatewayCard(); + + /** + * + * + *
+   * Output only. Field for populated AgentGateway card.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The agentGatewayCard. + */ + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard getAgentGatewayCard(); + + /** + * + * + *
+   * Output only. Field for populated AgentGateway card.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCardOrBuilder + getAgentGatewayCardOrBuilder(); + + com.google.cloud.networkservices.v1.AgentGateway.DeploymentModeCase getDeploymentModeCase(); +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayProto.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayProto.java new file mode 100644 index 000000000000..85c61db3e80a --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayProto.java @@ -0,0 +1,371 @@ +/* + * 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/cloud/networkservices/v1/agent_gateway.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +@com.google.protobuf.Generated +public final class AgentGatewayProto extends com.google.protobuf.GeneratedFile { + private AgentGatewayProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentGatewayProto"); + } + + 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_cloud_networkservices_v1_AgentGateway_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_AgentGateway_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_AgentGateway_GoogleManaged_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_AgentGateway_GoogleManaged_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_AgentGateway_SelfManaged_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_AgentGateway_SelfManaged_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_TrustConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_TrustConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_DnsPeeringConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_DnsPeeringConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_AgentGateway_AgentGatewayOutputCard_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_AgentGateway_AgentGatewayOutputCard_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_AgentGateway_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_AgentGateway_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_ListAgentGatewaysRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_ListAgentGatewaysRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_ListAgentGatewaysResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_ListAgentGatewaysResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_GetAgentGatewayRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_GetAgentGatewayRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_CreateAgentGatewayRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_CreateAgentGatewayRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_UpdateAgentGatewayRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_UpdateAgentGatewayRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_DeleteAgentGatewayRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_DeleteAgentGatewayRequest_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" + + "3google/cloud/networkservices/v1/agent_gateway.proto\022\037google.cloud.networkservi" + + "ces.v1\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\277\017\n" + + "\014AgentGateway\022Z\n" + + "\016google_managed\030\010 \001(\0132;.google.cloud.networkser" + + "vices.v1.AgentGateway.GoogleManagedB\003\340A\001H\000\022V\n" + + "\014self_managed\030\t \001(\01329.google.cloud." + + "networkservices.v1.AgentGateway.SelfManagedB\003\340A\001H\000\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022N\n" + + "\006labels\030\004 \003(\01329.goog" + + "le.cloud.networkservices.v1.AgentGateway.LabelsEntryB\003\340A\001\022\030\n" + + "\013description\030\005 \001(\tB\003\340A\001\022\021\n" + + "\004etag\030\006 \001(\tB\003\340A\001\022P\n" + + "\tprotocols\030\014 \003(" + + "\01626.google.cloud.networkservices.v1.AgentGateway.ProtocolB\005\030\001\340A\001\022\027\n\n" + + "registries\030\r" + + " \003(\tB\003\340A\001\022X\n" + + "\016network_config\030\n" + + " \001(\0132;.goog" + + "le.cloud.networkservices.v1.AgentGateway.NetworkConfigB\003\340A\001\022e\n" + + "\022agent_gateway_card\030\013 \001(\0132D.google.cloud.networkservices.v" + + "1.AgentGateway.AgentGatewayOutputCardB\003\340A\003\032\352\001\n\r" + + "GoogleManaged\022q\n" + + "\024governed_access_path\030\001 \001(\0162N.google.cloud.networkservice" + + "s.v1.AgentGateway.GoogleManaged.GovernedAccessPathB\003\340A\001\"f\n" + + "\022GovernedAccessPath\022$\n" + + " GOVERNED_ACCESS_PATH_UNSPECIFIED\020\000\022\025\n" + + "\021AGENT_TO_ANYWHERE\020\001\022\023\n" + + "\017CLIENT_TO_AGENT\020\002\032.\n" + + "\013SelfManaged\022\037\n" + + "\014resource_uri\030\001 \001(\tB\t\340A\001\372A\003\n" + + "\001*\032\244\004\n\r" + + "NetworkConfig\022W\n" + + "\006egress\030\001 \001(" + + "\0132B.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.EgressB\003\340A\001\022m\n" + + "\022dns_peering_config\030\002 \001(\0132L.google.cloud.ne" + + "tworkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfigB\003\340A\001\032\302\001\n" + + "\006Egress\022\037\n" + + "\022network_attachment\030\001 \001(\tB\003\340A\001\022i\n" + + "\014trust_config\030\002 \001(\0132N.google.cloud.networkservic" + + "es.v1.AgentGateway.NetworkConfig.Egress.TrustConfigB\003\340A\001\032,\n" + + "\013TrustConfig\022\035\n" + + "\020pem_certificates\030\001 \003(\tB\003\340A\002\032\205\001\n" + + "\020DnsPeeringConfig\022\024\n" + + "\007domains\030\001 \003(\tB\003\340A\002\022\033\n" + + "\016target_project\030\002 \001(\tB\003\340A\002\022>\n" + + "\016target_network\030\003 \001(\tB&\340A\002\372A \n" + + "\036compute.googleapis.com/Network\032\205\001\n" + + "\026AgentGatewayOutputCard\022\032\n\r" + + "mtls_endpoint\030\001 \001(\tB\003\340A\003\022\036\n" + + "\021root_certificates\030\005 \003(\tB\003\340A\003\022/\n" + + "\"service_extensions_service_account\030\004 \001(\tB\003\340A\003\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"-\n" + + "\010Protocol\022\030\n" + + "\024PROTOCOL_UNSPECIFIED\020\000\022\007\n" + + "\003MCP\020\001:\225\001\352A\221\001\n" + + "+networkservices.googleapis.com/AgentGateway" + + "\022Eprojects/{project}/locations/{location}/agentGateways/{agent_gateway}*\r" + + "agentGateways2\014agentGatewayB\021\n" + + "\017deployment_mode\"\265\001\n" + + "\030ListAgentGatewaysRequest\022C\n" + + "\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\022+networkservices.googleapis.com/AgentGateway\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022#\n" + + "\026return_partial_success\030\004 \001(\010B\003\340A\001\"\220\001\n" + + "\031ListAgentGatewaysResponse\022E\n" + + "\016agent_gateways\030\001 \003(\0132-." + + "google.cloud.networkservices.v1.AgentGateway\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"[\n" + + "\026GetAgentGatewayRequest\022A\n" + + "\004name\030\001 \001(\tB3\340A\002\372A-\n" + + "+networkservices.googleapis.com/AgentGateway\"\312\001\n" + + "\031CreateAgentGatewayRequest\022C\n" + + "\006parent\030\001 \001(\tB3\340A\002\372A-\022+n" + + "etworkservices.googleapis.com/AgentGateway\022\035\n" + + "\020agent_gateway_id\030\002 \001(\tB\003\340A\002\022I\n\r" + + "agent_gateway\030\003" + + " \001(\0132-.google.cloud.networkservices.v1.AgentGatewayB\003\340A\002\"\234\001\n" + + "\031UpdateAgentGatewayRequest\0224\n" + + "\013update_mask\030\001" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022I\n\r" + + "agent_gateway\030\002" + + " \001(\0132-.google.cloud.networkservices.v1.AgentGatewayB\003\340A\002\"q\n" + + "\031DeleteAgentGatewayRequest\022A\n" + + "\004name\030\001 \001(\tB3\340A\002\372A-\n" + + "+networkservices.googleapis.com/AgentGateway\022\021\n" + + "\004etag\030\002 \001(\tB\003\340A\001B\362\001\n" + + "#com.google.cloud.networkservices.v1B\021AgentGatewayProt" + + "oP\001ZMcloud.google.com/go/networkservices/apiv1/networkservicespb;networkservices" + + "pb\252\002\037Google.Cloud.NetworkServices.V1\312\002\037G" + + "oogle\\Cloud\\NetworkServices\\V1\352\002\"Google:" + + ":Cloud::NetworkServices::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networkservices_v1_AgentGateway_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_networkservices_v1_AgentGateway_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_AgentGateway_descriptor, + new java.lang.String[] { + "GoogleManaged", + "SelfManaged", + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "Description", + "Etag", + "Protocols", + "Registries", + "NetworkConfig", + "AgentGatewayCard", + "DeploymentMode", + }); + internal_static_google_cloud_networkservices_v1_AgentGateway_GoogleManaged_descriptor = + internal_static_google_cloud_networkservices_v1_AgentGateway_descriptor.getNestedType(0); + internal_static_google_cloud_networkservices_v1_AgentGateway_GoogleManaged_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_AgentGateway_GoogleManaged_descriptor, + new java.lang.String[] { + "GovernedAccessPath", + }); + internal_static_google_cloud_networkservices_v1_AgentGateway_SelfManaged_descriptor = + internal_static_google_cloud_networkservices_v1_AgentGateway_descriptor.getNestedType(1); + internal_static_google_cloud_networkservices_v1_AgentGateway_SelfManaged_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_AgentGateway_SelfManaged_descriptor, + new java.lang.String[] { + "ResourceUri", + }); + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_descriptor = + internal_static_google_cloud_networkservices_v1_AgentGateway_descriptor.getNestedType(2); + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_descriptor, + new java.lang.String[] { + "Egress", "DnsPeeringConfig", + }); + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_descriptor = + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_descriptor + .getNestedType(0); + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_descriptor, + new java.lang.String[] { + "NetworkAttachment", "TrustConfig", + }); + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_TrustConfig_descriptor = + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_descriptor + .getNestedType(0); + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_TrustConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_TrustConfig_descriptor, + new java.lang.String[] { + "PemCertificates", + }); + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_DnsPeeringConfig_descriptor = + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_descriptor + .getNestedType(1); + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_DnsPeeringConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_DnsPeeringConfig_descriptor, + new java.lang.String[] { + "Domains", "TargetProject", "TargetNetwork", + }); + internal_static_google_cloud_networkservices_v1_AgentGateway_AgentGatewayOutputCard_descriptor = + internal_static_google_cloud_networkservices_v1_AgentGateway_descriptor.getNestedType(3); + internal_static_google_cloud_networkservices_v1_AgentGateway_AgentGatewayOutputCard_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_AgentGateway_AgentGatewayOutputCard_descriptor, + new java.lang.String[] { + "MtlsEndpoint", "RootCertificates", "ServiceExtensionsServiceAccount", + }); + internal_static_google_cloud_networkservices_v1_AgentGateway_LabelsEntry_descriptor = + internal_static_google_cloud_networkservices_v1_AgentGateway_descriptor.getNestedType(4); + internal_static_google_cloud_networkservices_v1_AgentGateway_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_AgentGateway_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_networkservices_v1_ListAgentGatewaysRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_networkservices_v1_ListAgentGatewaysRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_ListAgentGatewaysRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "ReturnPartialSuccess", + }); + internal_static_google_cloud_networkservices_v1_ListAgentGatewaysResponse_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_networkservices_v1_ListAgentGatewaysResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_ListAgentGatewaysResponse_descriptor, + new java.lang.String[] { + "AgentGateways", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_networkservices_v1_GetAgentGatewayRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_networkservices_v1_GetAgentGatewayRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_GetAgentGatewayRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networkservices_v1_CreateAgentGatewayRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_networkservices_v1_CreateAgentGatewayRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_CreateAgentGatewayRequest_descriptor, + new java.lang.String[] { + "Parent", "AgentGatewayId", "AgentGateway", + }); + internal_static_google_cloud_networkservices_v1_UpdateAgentGatewayRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_networkservices_v1_UpdateAgentGatewayRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_UpdateAgentGatewayRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "AgentGateway", + }); + internal_static_google_cloud_networkservices_v1_DeleteAgentGatewayRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_networkservices_v1_DeleteAgentGatewayRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_DeleteAgentGatewayRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AuthzExtension.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AuthzExtension.java index 17f74beb00ce..ba6dba9a0807 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AuthzExtension.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AuthzExtension.java @@ -59,6 +59,7 @@ private AuthzExtension() { authority_ = ""; service_ = ""; forwardHeaders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + forwardAttributes_ = com.google.protobuf.LazyStringArrayList.emptyList(); wireFormat_ = 0; } @@ -442,15 +443,16 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * * *
-   * Required. All backend services and forwarding rules referenced by this
+   * Optional. All backend services and forwarding rules referenced by this
    * extension must share the same load balancing scheme. Supported values:
-   * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
+   * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. Can be omitted for AuthzExtensions
+   * that do not reference a backend service. For more information, refer to
    * [Backend services
    * overview](https://cloud.google.com/load-balancing/docs/backend-service).
    * 
* * - * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for loadBalancingScheme. @@ -464,15 +466,16 @@ public int getLoadBalancingSchemeValue() { * * *
-   * Required. All backend services and forwarding rules referenced by this
+   * Optional. All backend services and forwarding rules referenced by this
    * extension must share the same load balancing scheme. Supported values:
-   * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
+   * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. Can be omitted for AuthzExtensions
+   * that do not reference a backend service. For more information, refer to
    * [Backend services
    * overview](https://cloud.google.com/load-balancing/docs/backend-service).
    * 
* * - * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The loadBalancingScheme. @@ -495,11 +498,12 @@ public com.google.cloud.networkservices.v1.LoadBalancingScheme getLoadBalancingS * * *
-   * Required. The `:authority` header in the gRPC request sent from Envoy
-   * to the extension service.
+   * Optional. The `:authority` header in the gRPC request sent from Envoy to
+   * the extension service. It is required when the `service` field points to a
+   * backend service or a wasm plugin.
    * 
* - * string authority = 7 [(.google.api.field_behavior) = REQUIRED]; + * string authority = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The authority. */ @@ -520,11 +524,12 @@ public java.lang.String getAuthority() { * * *
-   * Required. The `:authority` header in the gRPC request sent from Envoy
-   * to the extension service.
+   * Optional. The `:authority` header in the gRPC request sent from Envoy to
+   * the extension service. It is required when the `service` field points to a
+   * backend service or a wasm plugin.
    * 
* - * string authority = 7 [(.google.api.field_behavior) = REQUIRED]; + * string authority = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for authority. */ @@ -845,6 +850,106 @@ public com.google.protobuf.ByteString getForwardHeadersBytes(int index) { return forwardHeaders_.getByteString(index); } + public static final int FORWARD_ATTRIBUTES_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList forwardAttributes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. List of the Envoy attributes to forward to the extension server.
+   * The attributes provided here are included as part of the
+   * `ProcessingRequest.attributes` field (of type
+   * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+   * names. Refer to the
+   * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+   * for the names of attributes that can be forwarded. If omitted, no
+   * attributes are sent. Each element is a string indicating the
+   * attribute name.
+   * 
+ * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the forwardAttributes. + */ + public com.google.protobuf.ProtocolStringList getForwardAttributesList() { + return forwardAttributes_; + } + + /** + * + * + *
+   * Optional. List of the Envoy attributes to forward to the extension server.
+   * The attributes provided here are included as part of the
+   * `ProcessingRequest.attributes` field (of type
+   * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+   * names. Refer to the
+   * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+   * for the names of attributes that can be forwarded. If omitted, no
+   * attributes are sent. Each element is a string indicating the
+   * attribute name.
+   * 
+ * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of forwardAttributes. + */ + public int getForwardAttributesCount() { + return forwardAttributes_.size(); + } + + /** + * + * + *
+   * Optional. List of the Envoy attributes to forward to the extension server.
+   * The attributes provided here are included as part of the
+   * `ProcessingRequest.attributes` field (of type
+   * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+   * names. Refer to the
+   * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+   * for the names of attributes that can be forwarded. If omitted, no
+   * attributes are sent. Each element is a string indicating the
+   * attribute name.
+   * 
+ * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The forwardAttributes at the given index. + */ + public java.lang.String getForwardAttributes(int index) { + return forwardAttributes_.get(index); + } + + /** + * + * + *
+   * Optional. List of the Envoy attributes to forward to the extension server.
+   * The attributes provided here are included as part of the
+   * `ProcessingRequest.attributes` field (of type
+   * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+   * names. Refer to the
+   * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+   * for the names of attributes that can be forwarded. If omitted, no
+   * attributes are sent. Each element is a string indicating the
+   * attribute name.
+   * 
+ * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the forwardAttributes at the given index. + */ + public com.google.protobuf.ByteString getForwardAttributesBytes(int index) { + return forwardAttributes_.getByteString(index); + } + public static final int WIRE_FORMAT_FIELD_NUMBER = 14; private int wireFormat_ = 0; @@ -853,7 +958,9 @@ public com.google.protobuf.ByteString getForwardHeadersBytes(int index) { * *
    * Optional. The format of communication supported by the callout extension.
-   * If not specified, the default value `EXT_PROC_GRPC` is used.
+   * This field is supported only for regional `AuthzExtension` resources. If
+   * not specified, the default value `EXT_PROC_GRPC` is used. Global
+   * `AuthzExtension` resources use the `EXT_PROC_GRPC` wire format.
    * 
* * @@ -872,7 +979,9 @@ public int getWireFormatValue() { * *
    * Optional. The format of communication supported by the callout extension.
-   * If not specified, the default value `EXT_PROC_GRPC` is used.
+   * This field is supported only for regional `AuthzExtension` resources. If
+   * not specified, the default value `EXT_PROC_GRPC` is used. Global
+   * `AuthzExtension` resources use the `EXT_PROC_GRPC` wire format.
    * 
* * @@ -939,6 +1048,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < forwardHeaders_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 12, forwardHeaders_.getRaw(i)); } + for (int i = 0; i < forwardAttributes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, forwardAttributes_.getRaw(i)); + } if (wireFormat_ != com.google.cloud.networkservices.v1.WireFormat.WIRE_FORMAT_UNSPECIFIED.getNumber()) { output.writeEnum(14, wireFormat_); @@ -1002,6 +1114,14 @@ public int getSerializedSize() { size += dataSize; size += 1 * getForwardHeadersList().size(); } + { + int dataSize = 0; + for (int i = 0; i < forwardAttributes_.size(); i++) { + dataSize += computeStringSizeNoTag(forwardAttributes_.getRaw(i)); + } + size += dataSize; + size += 1 * getForwardAttributesList().size(); + } if (wireFormat_ != com.google.cloud.networkservices.v1.WireFormat.WIRE_FORMAT_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, wireFormat_); @@ -1046,6 +1166,7 @@ public boolean equals(final java.lang.Object obj) { if (!getMetadata().equals(other.getMetadata())) return false; } if (!getForwardHeadersList().equals(other.getForwardHeadersList())) return false; + if (!getForwardAttributesList().equals(other.getForwardAttributesList())) return false; if (wireFormat_ != other.wireFormat_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1094,6 +1215,10 @@ public int hashCode() { hash = (37 * hash) + FORWARD_HEADERS_FIELD_NUMBER; hash = (53 * hash) + getForwardHeadersList().hashCode(); } + if (getForwardAttributesCount() > 0) { + hash = (37 * hash) + FORWARD_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getForwardAttributesList().hashCode(); + } hash = (37 * hash) + WIRE_FORMAT_FIELD_NUMBER; hash = (53 * hash) + wireFormat_; hash = (29 * hash) + getUnknownFields().hashCode(); @@ -1299,6 +1424,7 @@ public Builder clear() { metadataBuilder_ = null; } forwardHeaders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + forwardAttributes_ = com.google.protobuf.LazyStringArrayList.emptyList(); wireFormat_ = 0; return this; } @@ -1380,6 +1506,10 @@ private void buildPartial0(com.google.cloud.networkservices.v1.AuthzExtension re result.forwardHeaders_ = forwardHeaders_; } if (((from_bitField0_ & 0x00001000) != 0)) { + forwardAttributes_.makeImmutable(); + result.forwardAttributes_ = forwardAttributes_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { result.wireFormat_ = wireFormat_; } result.bitField0_ |= to_bitField0_; @@ -1448,6 +1578,16 @@ public Builder mergeFrom(com.google.cloud.networkservices.v1.AuthzExtension othe } onChanged(); } + if (!other.forwardAttributes_.isEmpty()) { + if (forwardAttributes_.isEmpty()) { + forwardAttributes_ = other.forwardAttributes_; + bitField0_ |= 0x00001000; + } else { + ensureForwardAttributesIsMutable(); + forwardAttributes_.addAll(other.forwardAttributes_); + } + onChanged(); + } if (other.wireFormat_ != 0) { setWireFormatValue(other.getWireFormatValue()); } @@ -1559,10 +1699,17 @@ public Builder mergeFrom( forwardHeaders_.add(s); break; } // case 98 + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureForwardAttributesIsMutable(); + forwardAttributes_.add(s); + break; + } // case 106 case 112: { wireFormat_ = input.readEnum(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 112 default: @@ -2463,15 +2610,16 @@ public Builder putAllLabels(java.util.Map va * * *
-     * Required. All backend services and forwarding rules referenced by this
+     * Optional. All backend services and forwarding rules referenced by this
      * extension must share the same load balancing scheme. Supported values:
-     * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
+     * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. Can be omitted for AuthzExtensions
+     * that do not reference a backend service. For more information, refer to
      * [Backend services
      * overview](https://cloud.google.com/load-balancing/docs/backend-service).
      * 
* * - * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for loadBalancingScheme. @@ -2485,15 +2633,16 @@ public int getLoadBalancingSchemeValue() { * * *
-     * Required. All backend services and forwarding rules referenced by this
+     * Optional. All backend services and forwarding rules referenced by this
      * extension must share the same load balancing scheme. Supported values:
-     * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
+     * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. Can be omitted for AuthzExtensions
+     * that do not reference a backend service. For more information, refer to
      * [Backend services
      * overview](https://cloud.google.com/load-balancing/docs/backend-service).
      * 
* * - * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The enum numeric value on the wire for loadBalancingScheme to set. @@ -2510,15 +2659,16 @@ public Builder setLoadBalancingSchemeValue(int value) { * * *
-     * Required. All backend services and forwarding rules referenced by this
+     * Optional. All backend services and forwarding rules referenced by this
      * extension must share the same load balancing scheme. Supported values:
-     * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
+     * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. Can be omitted for AuthzExtensions
+     * that do not reference a backend service. For more information, refer to
      * [Backend services
      * overview](https://cloud.google.com/load-balancing/docs/backend-service).
      * 
* * - * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The loadBalancingScheme. @@ -2536,15 +2686,16 @@ public com.google.cloud.networkservices.v1.LoadBalancingScheme getLoadBalancingS * * *
-     * Required. All backend services and forwarding rules referenced by this
+     * Optional. All backend services and forwarding rules referenced by this
      * extension must share the same load balancing scheme. Supported values:
-     * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
+     * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. Can be omitted for AuthzExtensions
+     * that do not reference a backend service. For more information, refer to
      * [Backend services
      * overview](https://cloud.google.com/load-balancing/docs/backend-service).
      * 
* * - * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The loadBalancingScheme to set. @@ -2565,15 +2716,16 @@ public Builder setLoadBalancingScheme( * * *
-     * Required. All backend services and forwarding rules referenced by this
+     * Optional. All backend services and forwarding rules referenced by this
      * extension must share the same load balancing scheme. Supported values:
-     * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
+     * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. Can be omitted for AuthzExtensions
+     * that do not reference a backend service. For more information, refer to
      * [Backend services
      * overview](https://cloud.google.com/load-balancing/docs/backend-service).
      * 
* * - * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. @@ -2591,11 +2743,12 @@ public Builder clearLoadBalancingScheme() { * * *
-     * Required. The `:authority` header in the gRPC request sent from Envoy
-     * to the extension service.
+     * Optional. The `:authority` header in the gRPC request sent from Envoy to
+     * the extension service. It is required when the `service` field points to a
+     * backend service or a wasm plugin.
      * 
* - * string authority = 7 [(.google.api.field_behavior) = REQUIRED]; + * string authority = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The authority. */ @@ -2615,11 +2768,12 @@ public java.lang.String getAuthority() { * * *
-     * Required. The `:authority` header in the gRPC request sent from Envoy
-     * to the extension service.
+     * Optional. The `:authority` header in the gRPC request sent from Envoy to
+     * the extension service. It is required when the `service` field points to a
+     * backend service or a wasm plugin.
      * 
* - * string authority = 7 [(.google.api.field_behavior) = REQUIRED]; + * string authority = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for authority. */ @@ -2639,11 +2793,12 @@ public com.google.protobuf.ByteString getAuthorityBytes() { * * *
-     * Required. The `:authority` header in the gRPC request sent from Envoy
-     * to the extension service.
+     * Optional. The `:authority` header in the gRPC request sent from Envoy to
+     * the extension service. It is required when the `service` field points to a
+     * backend service or a wasm plugin.
      * 
* - * string authority = 7 [(.google.api.field_behavior) = REQUIRED]; + * string authority = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The authority to set. * @return This builder for chaining. @@ -2662,11 +2817,12 @@ public Builder setAuthority(java.lang.String value) { * * *
-     * Required. The `:authority` header in the gRPC request sent from Envoy
-     * to the extension service.
+     * Optional. The `:authority` header in the gRPC request sent from Envoy to
+     * the extension service. It is required when the `service` field points to a
+     * backend service or a wasm plugin.
      * 
* - * string authority = 7 [(.google.api.field_behavior) = REQUIRED]; + * string authority = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2681,11 +2837,12 @@ public Builder clearAuthority() { * * *
-     * Required. The `:authority` header in the gRPC request sent from Envoy
-     * to the extension service.
+     * Optional. The `:authority` header in the gRPC request sent from Envoy to
+     * the extension service. It is required when the `service` field points to a
+     * backend service or a wasm plugin.
      * 
* - * string authority = 7 [(.google.api.field_behavior) = REQUIRED]; + * string authority = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for authority to set. * @return This builder for chaining. @@ -3614,6 +3771,270 @@ public Builder addForwardHeadersBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringArrayList forwardAttributes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureForwardAttributesIsMutable() { + if (!forwardAttributes_.isModifiable()) { + forwardAttributes_ = new com.google.protobuf.LazyStringArrayList(forwardAttributes_); + } + bitField0_ |= 0x00001000; + } + + /** + * + * + *
+     * Optional. List of the Envoy attributes to forward to the extension server.
+     * The attributes provided here are included as part of the
+     * `ProcessingRequest.attributes` field (of type
+     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+     * names. Refer to the
+     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+     * for the names of attributes that can be forwarded. If omitted, no
+     * attributes are sent. Each element is a string indicating the
+     * attribute name.
+     * 
+ * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the forwardAttributes. + */ + public com.google.protobuf.ProtocolStringList getForwardAttributesList() { + forwardAttributes_.makeImmutable(); + return forwardAttributes_; + } + + /** + * + * + *
+     * Optional. List of the Envoy attributes to forward to the extension server.
+     * The attributes provided here are included as part of the
+     * `ProcessingRequest.attributes` field (of type
+     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+     * names. Refer to the
+     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+     * for the names of attributes that can be forwarded. If omitted, no
+     * attributes are sent. Each element is a string indicating the
+     * attribute name.
+     * 
+ * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of forwardAttributes. + */ + public int getForwardAttributesCount() { + return forwardAttributes_.size(); + } + + /** + * + * + *
+     * Optional. List of the Envoy attributes to forward to the extension server.
+     * The attributes provided here are included as part of the
+     * `ProcessingRequest.attributes` field (of type
+     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+     * names. Refer to the
+     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+     * for the names of attributes that can be forwarded. If omitted, no
+     * attributes are sent. Each element is a string indicating the
+     * attribute name.
+     * 
+ * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The forwardAttributes at the given index. + */ + public java.lang.String getForwardAttributes(int index) { + return forwardAttributes_.get(index); + } + + /** + * + * + *
+     * Optional. List of the Envoy attributes to forward to the extension server.
+     * The attributes provided here are included as part of the
+     * `ProcessingRequest.attributes` field (of type
+     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+     * names. Refer to the
+     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+     * for the names of attributes that can be forwarded. If omitted, no
+     * attributes are sent. Each element is a string indicating the
+     * attribute name.
+     * 
+ * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the forwardAttributes at the given index. + */ + public com.google.protobuf.ByteString getForwardAttributesBytes(int index) { + return forwardAttributes_.getByteString(index); + } + + /** + * + * + *
+     * Optional. List of the Envoy attributes to forward to the extension server.
+     * The attributes provided here are included as part of the
+     * `ProcessingRequest.attributes` field (of type
+     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+     * names. Refer to the
+     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+     * for the names of attributes that can be forwarded. If omitted, no
+     * attributes are sent. Each element is a string indicating the
+     * attribute name.
+     * 
+ * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The forwardAttributes to set. + * @return This builder for chaining. + */ + public Builder setForwardAttributes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureForwardAttributesIsMutable(); + forwardAttributes_.set(index, value); + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of the Envoy attributes to forward to the extension server.
+     * The attributes provided here are included as part of the
+     * `ProcessingRequest.attributes` field (of type
+     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+     * names. Refer to the
+     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+     * for the names of attributes that can be forwarded. If omitted, no
+     * attributes are sent. Each element is a string indicating the
+     * attribute name.
+     * 
+ * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The forwardAttributes to add. + * @return This builder for chaining. + */ + public Builder addForwardAttributes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureForwardAttributesIsMutable(); + forwardAttributes_.add(value); + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of the Envoy attributes to forward to the extension server.
+     * The attributes provided here are included as part of the
+     * `ProcessingRequest.attributes` field (of type
+     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+     * names. Refer to the
+     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+     * for the names of attributes that can be forwarded. If omitted, no
+     * attributes are sent. Each element is a string indicating the
+     * attribute name.
+     * 
+ * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The forwardAttributes to add. + * @return This builder for chaining. + */ + public Builder addAllForwardAttributes(java.lang.Iterable values) { + ensureForwardAttributesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, forwardAttributes_); + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of the Envoy attributes to forward to the extension server.
+     * The attributes provided here are included as part of the
+     * `ProcessingRequest.attributes` field (of type
+     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+     * names. Refer to the
+     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+     * for the names of attributes that can be forwarded. If omitted, no
+     * attributes are sent. Each element is a string indicating the
+     * attribute name.
+     * 
+ * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearForwardAttributes() { + forwardAttributes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of the Envoy attributes to forward to the extension server.
+     * The attributes provided here are included as part of the
+     * `ProcessingRequest.attributes` field (of type
+     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+     * names. Refer to the
+     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+     * for the names of attributes that can be forwarded. If omitted, no
+     * attributes are sent. Each element is a string indicating the
+     * attribute name.
+     * 
+ * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the forwardAttributes to add. + * @return This builder for chaining. + */ + public Builder addForwardAttributesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureForwardAttributesIsMutable(); + forwardAttributes_.add(value); + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + private int wireFormat_ = 0; /** @@ -3621,7 +4042,9 @@ public Builder addForwardHeadersBytes(com.google.protobuf.ByteString value) { * *
      * Optional. The format of communication supported by the callout extension.
-     * If not specified, the default value `EXT_PROC_GRPC` is used.
+     * This field is supported only for regional `AuthzExtension` resources. If
+     * not specified, the default value `EXT_PROC_GRPC` is used. Global
+     * `AuthzExtension` resources use the `EXT_PROC_GRPC` wire format.
      * 
* * @@ -3640,7 +4063,9 @@ public int getWireFormatValue() { * *
      * Optional. The format of communication supported by the callout extension.
-     * If not specified, the default value `EXT_PROC_GRPC` is used.
+     * This field is supported only for regional `AuthzExtension` resources. If
+     * not specified, the default value `EXT_PROC_GRPC` is used. Global
+     * `AuthzExtension` resources use the `EXT_PROC_GRPC` wire format.
      * 
* * @@ -3652,7 +4077,7 @@ public int getWireFormatValue() { */ public Builder setWireFormatValue(int value) { wireFormat_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -3662,7 +4087,9 @@ public Builder setWireFormatValue(int value) { * *
      * Optional. The format of communication supported by the callout extension.
-     * If not specified, the default value `EXT_PROC_GRPC` is used.
+     * This field is supported only for regional `AuthzExtension` resources. If
+     * not specified, the default value `EXT_PROC_GRPC` is used. Global
+     * `AuthzExtension` resources use the `EXT_PROC_GRPC` wire format.
      * 
* * @@ -3683,7 +4110,9 @@ public com.google.cloud.networkservices.v1.WireFormat getWireFormat() { * *
      * Optional. The format of communication supported by the callout extension.
-     * If not specified, the default value `EXT_PROC_GRPC` is used.
+     * This field is supported only for regional `AuthzExtension` resources. If
+     * not specified, the default value `EXT_PROC_GRPC` is used. Global
+     * `AuthzExtension` resources use the `EXT_PROC_GRPC` wire format.
      * 
* * @@ -3697,7 +4126,7 @@ public Builder setWireFormat(com.google.cloud.networkservices.v1.WireFormat valu if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; wireFormat_ = value.getNumber(); onChanged(); return this; @@ -3708,7 +4137,9 @@ public Builder setWireFormat(com.google.cloud.networkservices.v1.WireFormat valu * *
      * Optional. The format of communication supported by the callout extension.
-     * If not specified, the default value `EXT_PROC_GRPC` is used.
+     * This field is supported only for regional `AuthzExtension` resources. If
+     * not specified, the default value `EXT_PROC_GRPC` is used. Global
+     * `AuthzExtension` resources use the `EXT_PROC_GRPC` wire format.
      * 
* * @@ -3718,7 +4149,7 @@ public Builder setWireFormat(com.google.cloud.networkservices.v1.WireFormat valu * @return This builder for chaining. */ public Builder clearWireFormat() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); wireFormat_ = 0; onChanged(); return this; diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AuthzExtensionOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AuthzExtensionOrBuilder.java index 6b7413d66b09..16c4490a8077 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AuthzExtensionOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AuthzExtensionOrBuilder.java @@ -258,15 +258,16 @@ java.lang.String getLabelsOrDefault( * * *
-   * Required. All backend services and forwarding rules referenced by this
+   * Optional. All backend services and forwarding rules referenced by this
    * extension must share the same load balancing scheme. Supported values:
-   * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
+   * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. Can be omitted for AuthzExtensions
+   * that do not reference a backend service. For more information, refer to
    * [Backend services
    * overview](https://cloud.google.com/load-balancing/docs/backend-service).
    * 
* * - * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for loadBalancingScheme. @@ -277,15 +278,16 @@ java.lang.String getLabelsOrDefault( * * *
-   * Required. All backend services and forwarding rules referenced by this
+   * Optional. All backend services and forwarding rules referenced by this
    * extension must share the same load balancing scheme. Supported values:
-   * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
+   * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. Can be omitted for AuthzExtensions
+   * that do not reference a backend service. For more information, refer to
    * [Backend services
    * overview](https://cloud.google.com/load-balancing/docs/backend-service).
    * 
* * - * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The loadBalancingScheme. @@ -296,11 +298,12 @@ java.lang.String getLabelsOrDefault( * * *
-   * Required. The `:authority` header in the gRPC request sent from Envoy
-   * to the extension service.
+   * Optional. The `:authority` header in the gRPC request sent from Envoy to
+   * the extension service. It is required when the `service` field points to a
+   * backend service or a wasm plugin.
    * 
* - * string authority = 7 [(.google.api.field_behavior) = REQUIRED]; + * string authority = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The authority. */ @@ -310,11 +313,12 @@ java.lang.String getLabelsOrDefault( * * *
-   * Required. The `:authority` header in the gRPC request sent from Envoy
-   * to the extension service.
+   * Optional. The `:authority` header in the gRPC request sent from Envoy to
+   * the extension service. It is required when the `service` field points to a
+   * backend service or a wasm plugin.
    * 
* - * string authority = 7 [(.google.api.field_behavior) = REQUIRED]; + * string authority = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for authority. */ @@ -553,12 +557,100 @@ java.lang.String getLabelsOrDefault( */ com.google.protobuf.ByteString getForwardHeadersBytes(int index); + /** + * + * + *
+   * Optional. List of the Envoy attributes to forward to the extension server.
+   * The attributes provided here are included as part of the
+   * `ProcessingRequest.attributes` field (of type
+   * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+   * names. Refer to the
+   * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+   * for the names of attributes that can be forwarded. If omitted, no
+   * attributes are sent. Each element is a string indicating the
+   * attribute name.
+   * 
+ * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the forwardAttributes. + */ + java.util.List getForwardAttributesList(); + + /** + * + * + *
+   * Optional. List of the Envoy attributes to forward to the extension server.
+   * The attributes provided here are included as part of the
+   * `ProcessingRequest.attributes` field (of type
+   * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+   * names. Refer to the
+   * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+   * for the names of attributes that can be forwarded. If omitted, no
+   * attributes are sent. Each element is a string indicating the
+   * attribute name.
+   * 
+ * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of forwardAttributes. + */ + int getForwardAttributesCount(); + + /** + * + * + *
+   * Optional. List of the Envoy attributes to forward to the extension server.
+   * The attributes provided here are included as part of the
+   * `ProcessingRequest.attributes` field (of type
+   * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+   * names. Refer to the
+   * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+   * for the names of attributes that can be forwarded. If omitted, no
+   * attributes are sent. Each element is a string indicating the
+   * attribute name.
+   * 
+ * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The forwardAttributes at the given index. + */ + java.lang.String getForwardAttributes(int index); + + /** + * + * + *
+   * Optional. List of the Envoy attributes to forward to the extension server.
+   * The attributes provided here are included as part of the
+   * `ProcessingRequest.attributes` field (of type
+   * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+   * names. Refer to the
+   * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+   * for the names of attributes that can be forwarded. If omitted, no
+   * attributes are sent. Each element is a string indicating the
+   * attribute name.
+   * 
+ * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the forwardAttributes at the given index. + */ + com.google.protobuf.ByteString getForwardAttributesBytes(int index); + /** * * *
    * Optional. The format of communication supported by the callout extension.
-   * If not specified, the default value `EXT_PROC_GRPC` is used.
+   * This field is supported only for regional `AuthzExtension` resources. If
+   * not specified, the default value `EXT_PROC_GRPC` is used. Global
+   * `AuthzExtension` resources use the `EXT_PROC_GRPC` wire format.
    * 
* * @@ -574,7 +666,9 @@ java.lang.String getLabelsOrDefault( * *
    * Optional. The format of communication supported by the callout extension.
-   * If not specified, the default value `EXT_PROC_GRPC` is used.
+   * This field is supported only for regional `AuthzExtension` resources. If
+   * not specified, the default value `EXT_PROC_GRPC` is used. Global
+   * `AuthzExtension` resources use the `EXT_PROC_GRPC` wire format.
    * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/BodySendMode.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/BodySendMode.java new file mode 100644 index 000000000000..2921e568825d --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/BodySendMode.java @@ -0,0 +1,215 @@ +/* + * 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/cloud/networkservices/v1/dep.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +/** + * + * + *
+ * The send mode for body processing.
+ * 
+ * + * Protobuf enum {@code google.cloud.networkservices.v1.BodySendMode} + */ +@com.google.protobuf.Generated +public enum BodySendMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value. Do not use.
+   * 
+ * + * BODY_SEND_MODE_UNSPECIFIED = 0; + */ + BODY_SEND_MODE_UNSPECIFIED(0), + /** + * + * + *
+   * Calls to the extension are executed in the streamed mode. Subsequent
+   * chunks will be sent only after the previous chunks have been processed.
+   *
+   * The content of the body chunks is sent one way to the extension. Extension
+   * may send modified chunks back.
+   *
+   * This is the default value if the processing mode is not specified.
+   * 
+ * + * BODY_SEND_MODE_STREAMED = 1; + */ + BODY_SEND_MODE_STREAMED(1), + /** + * + * + *
+   * Calls are executed in the full duplex mode. Subsequent chunks will be sent
+   * for processing without waiting for the response for the previous chunk or
+   * for the response for `REQUEST_HEADERS` event.
+   *
+   * Extension can freely modify or chunk the body contents. If the extension
+   * doesn't send the body contents back, the next extension in the chain or the
+   * upstream will receive an empty body.
+   * 
+ * + * BODY_SEND_MODE_FULL_DUPLEX_STREAMED = 2; + */ + BODY_SEND_MODE_FULL_DUPLEX_STREAMED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BodySendMode"); + } + + /** + * + * + *
+   * Default value. Do not use.
+   * 
+ * + * BODY_SEND_MODE_UNSPECIFIED = 0; + */ + public static final int BODY_SEND_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Calls to the extension are executed in the streamed mode. Subsequent
+   * chunks will be sent only after the previous chunks have been processed.
+   *
+   * The content of the body chunks is sent one way to the extension. Extension
+   * may send modified chunks back.
+   *
+   * This is the default value if the processing mode is not specified.
+   * 
+ * + * BODY_SEND_MODE_STREAMED = 1; + */ + public static final int BODY_SEND_MODE_STREAMED_VALUE = 1; + + /** + * + * + *
+   * Calls are executed in the full duplex mode. Subsequent chunks will be sent
+   * for processing without waiting for the response for the previous chunk or
+   * for the response for `REQUEST_HEADERS` event.
+   *
+   * Extension can freely modify or chunk the body contents. If the extension
+   * doesn't send the body contents back, the next extension in the chain or the
+   * upstream will receive an empty body.
+   * 
+ * + * BODY_SEND_MODE_FULL_DUPLEX_STREAMED = 2; + */ + public static final int BODY_SEND_MODE_FULL_DUPLEX_STREAMED_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 BodySendMode 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 BodySendMode forNumber(int value) { + switch (value) { + case 0: + return BODY_SEND_MODE_UNSPECIFIED; + case 1: + return BODY_SEND_MODE_STREAMED; + case 2: + return BODY_SEND_MODE_FULL_DUPLEX_STREAMED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BodySendMode findValueByNumber(int number) { + return BodySendMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkservices.v1.DepProto.getDescriptor().getEnumTypes().get(3); + } + + private static final BodySendMode[] VALUES = values(); + + public static BodySendMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private BodySendMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkservices.v1.BodySendMode) +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateAgentGatewayRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateAgentGatewayRequest.java new file mode 100644 index 000000000000..5a3ceb18fb3e --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateAgentGatewayRequest.java @@ -0,0 +1,1130 @@ +/* + * 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/cloud/networkservices/v1/agent_gateway.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +/** + * + * + *
+ * Request used by the CreateAgentGateway method.
+ * 
+ * + * Protobuf type {@code google.cloud.networkservices.v1.CreateAgentGatewayRequest} + */ +@com.google.protobuf.Generated +public final class CreateAgentGatewayRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.CreateAgentGatewayRequest) + CreateAgentGatewayRequestOrBuilder { + 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= */ "", + "CreateAgentGatewayRequest"); + } + + // Use CreateAgentGatewayRequest.newBuilder() to construct. + private CreateAgentGatewayRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateAgentGatewayRequest() { + parent_ = ""; + agentGatewayId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_CreateAgentGatewayRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_CreateAgentGatewayRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest.class, + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource of the AgentGateway. Must be in the
+   * format `projects/*/locations/*`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource of the AgentGateway. Must be in the
+   * format `projects/*/locations/*`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AGENT_GATEWAY_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object agentGatewayId_ = ""; + + /** + * + * + *
+   * Required. Short name of the AgentGateway resource to be created.
+   * 
+ * + * string agent_gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The agentGatewayId. + */ + @java.lang.Override + public java.lang.String getAgentGatewayId() { + java.lang.Object ref = agentGatewayId_; + 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(); + agentGatewayId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Short name of the AgentGateway resource to be created.
+   * 
+ * + * string agent_gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for agentGatewayId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgentGatewayIdBytes() { + java.lang.Object ref = agentGatewayId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentGatewayId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AGENT_GATEWAY_FIELD_NUMBER = 3; + private com.google.cloud.networkservices.v1.AgentGateway agentGateway_; + + /** + * + * + *
+   * Required. AgentGateway resource to be created.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the agentGateway field is set. + */ + @java.lang.Override + public boolean hasAgentGateway() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. AgentGateway resource to be created.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The agentGateway. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway getAgentGateway() { + return agentGateway_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance() + : agentGateway_; + } + + /** + * + * + *
+   * Required. AgentGateway resource to be created.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGatewayOrBuilder getAgentGatewayOrBuilder() { + return agentGateway_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance() + : agentGateway_; + } + + 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(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentGatewayId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, agentGatewayId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getAgentGateway()); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentGatewayId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, agentGatewayId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAgentGateway()); + } + 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.cloud.networkservices.v1.CreateAgentGatewayRequest)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest other = + (com.google.cloud.networkservices.v1.CreateAgentGatewayRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getAgentGatewayId().equals(other.getAgentGatewayId())) return false; + if (hasAgentGateway() != other.hasAgentGateway()) return false; + if (hasAgentGateway()) { + if (!getAgentGateway().equals(other.getAgentGateway())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + AGENT_GATEWAY_ID_FIELD_NUMBER; + hash = (53 * hash) + getAgentGatewayId().hashCode(); + if (hasAgentGateway()) { + hash = (37 * hash) + AGENT_GATEWAY_FIELD_NUMBER; + hash = (53 * hash) + getAgentGateway().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.CreateAgentGatewayRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.CreateAgentGatewayRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.CreateAgentGatewayRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.CreateAgentGatewayRequest 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.cloud.networkservices.v1.CreateAgentGatewayRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.CreateAgentGatewayRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.CreateAgentGatewayRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.CreateAgentGatewayRequest 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.cloud.networkservices.v1.CreateAgentGatewayRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.CreateAgentGatewayRequest 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.cloud.networkservices.v1.CreateAgentGatewayRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.CreateAgentGatewayRequest 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.cloud.networkservices.v1.CreateAgentGatewayRequest 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 used by the CreateAgentGateway method.
+   * 
+ * + * Protobuf type {@code google.cloud.networkservices.v1.CreateAgentGatewayRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.CreateAgentGatewayRequest) + com.google.cloud.networkservices.v1.CreateAgentGatewayRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_CreateAgentGatewayRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_CreateAgentGatewayRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest.class, + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest.Builder.class); + } + + // Construct using com.google.cloud.networkservices.v1.CreateAgentGatewayRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAgentGatewayFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + agentGatewayId_ = ""; + agentGateway_ = null; + if (agentGatewayBuilder_ != null) { + agentGatewayBuilder_.dispose(); + agentGatewayBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_CreateAgentGatewayRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.CreateAgentGatewayRequest + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.CreateAgentGatewayRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.CreateAgentGatewayRequest build() { + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.CreateAgentGatewayRequest buildPartial() { + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest result = + new com.google.cloud.networkservices.v1.CreateAgentGatewayRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.agentGatewayId_ = agentGatewayId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.agentGateway_ = + agentGatewayBuilder_ == null ? agentGateway_ : agentGatewayBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.CreateAgentGatewayRequest) { + return mergeFrom((com.google.cloud.networkservices.v1.CreateAgentGatewayRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkservices.v1.CreateAgentGatewayRequest other) { + if (other + == com.google.cloud.networkservices.v1.CreateAgentGatewayRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAgentGatewayId().isEmpty()) { + agentGatewayId_ = other.agentGatewayId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAgentGateway()) { + mergeAgentGateway(other.getAgentGateway()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + agentGatewayId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetAgentGatewayFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource of the AgentGateway. Must be in the
+     * format `projects/*/locations/*`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource of the AgentGateway. Must be in the
+     * format `projects/*/locations/*`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource of the AgentGateway. Must be in the
+     * format `projects/*/locations/*`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource of the AgentGateway. Must be in the
+     * format `projects/*/locations/*`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource of the AgentGateway. Must be in the
+     * format `projects/*/locations/*`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object agentGatewayId_ = ""; + + /** + * + * + *
+     * Required. Short name of the AgentGateway resource to be created.
+     * 
+ * + * string agent_gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The agentGatewayId. + */ + public java.lang.String getAgentGatewayId() { + java.lang.Object ref = agentGatewayId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentGatewayId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Short name of the AgentGateway resource to be created.
+     * 
+ * + * string agent_gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for agentGatewayId. + */ + public com.google.protobuf.ByteString getAgentGatewayIdBytes() { + java.lang.Object ref = agentGatewayId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentGatewayId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Short name of the AgentGateway resource to be created.
+     * 
+ * + * string agent_gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The agentGatewayId to set. + * @return This builder for chaining. + */ + public Builder setAgentGatewayId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agentGatewayId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Short name of the AgentGateway resource to be created.
+     * 
+ * + * string agent_gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAgentGatewayId() { + agentGatewayId_ = getDefaultInstance().getAgentGatewayId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Short name of the AgentGateway resource to be created.
+     * 
+ * + * string agent_gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for agentGatewayId to set. + * @return This builder for chaining. + */ + public Builder setAgentGatewayIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agentGatewayId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networkservices.v1.AgentGateway agentGateway_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway, + com.google.cloud.networkservices.v1.AgentGateway.Builder, + com.google.cloud.networkservices.v1.AgentGatewayOrBuilder> + agentGatewayBuilder_; + + /** + * + * + *
+     * Required. AgentGateway resource to be created.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the agentGateway field is set. + */ + public boolean hasAgentGateway() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. AgentGateway resource to be created.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The agentGateway. + */ + public com.google.cloud.networkservices.v1.AgentGateway getAgentGateway() { + if (agentGatewayBuilder_ == null) { + return agentGateway_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance() + : agentGateway_; + } else { + return agentGatewayBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. AgentGateway resource to be created.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAgentGateway(com.google.cloud.networkservices.v1.AgentGateway value) { + if (agentGatewayBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentGateway_ = value; + } else { + agentGatewayBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. AgentGateway resource to be created.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAgentGateway( + com.google.cloud.networkservices.v1.AgentGateway.Builder builderForValue) { + if (agentGatewayBuilder_ == null) { + agentGateway_ = builderForValue.build(); + } else { + agentGatewayBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. AgentGateway resource to be created.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAgentGateway(com.google.cloud.networkservices.v1.AgentGateway value) { + if (agentGatewayBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && agentGateway_ != null + && agentGateway_ + != com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance()) { + getAgentGatewayBuilder().mergeFrom(value); + } else { + agentGateway_ = value; + } + } else { + agentGatewayBuilder_.mergeFrom(value); + } + if (agentGateway_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. AgentGateway resource to be created.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAgentGateway() { + bitField0_ = (bitField0_ & ~0x00000004); + agentGateway_ = null; + if (agentGatewayBuilder_ != null) { + agentGatewayBuilder_.dispose(); + agentGatewayBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. AgentGateway resource to be created.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.Builder getAgentGatewayBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetAgentGatewayFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. AgentGateway resource to be created.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkservices.v1.AgentGatewayOrBuilder getAgentGatewayOrBuilder() { + if (agentGatewayBuilder_ != null) { + return agentGatewayBuilder_.getMessageOrBuilder(); + } else { + return agentGateway_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance() + : agentGateway_; + } + } + + /** + * + * + *
+     * Required. AgentGateway resource to be created.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway, + com.google.cloud.networkservices.v1.AgentGateway.Builder, + com.google.cloud.networkservices.v1.AgentGatewayOrBuilder> + internalGetAgentGatewayFieldBuilder() { + if (agentGatewayBuilder_ == null) { + agentGatewayBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway, + com.google.cloud.networkservices.v1.AgentGateway.Builder, + com.google.cloud.networkservices.v1.AgentGatewayOrBuilder>( + getAgentGateway(), getParentForChildren(), isClean()); + agentGateway_ = null; + } + return agentGatewayBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.CreateAgentGatewayRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.CreateAgentGatewayRequest) + private static final com.google.cloud.networkservices.v1.CreateAgentGatewayRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.CreateAgentGatewayRequest(); + } + + public static com.google.cloud.networkservices.v1.CreateAgentGatewayRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAgentGatewayRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.CreateAgentGatewayRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateAgentGatewayRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateAgentGatewayRequestOrBuilder.java new file mode 100644 index 000000000000..ec01574b1645 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateAgentGatewayRequestOrBuilder.java @@ -0,0 +1,129 @@ +/* + * 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/cloud/networkservices/v1/agent_gateway.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +@com.google.protobuf.Generated +public interface CreateAgentGatewayRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.CreateAgentGatewayRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource of the AgentGateway. Must be in the
+   * format `projects/*/locations/*`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource of the AgentGateway. Must be in the
+   * format `projects/*/locations/*`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Short name of the AgentGateway resource to be created.
+   * 
+ * + * string agent_gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The agentGatewayId. + */ + java.lang.String getAgentGatewayId(); + + /** + * + * + *
+   * Required. Short name of the AgentGateway resource to be created.
+   * 
+ * + * string agent_gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for agentGatewayId. + */ + com.google.protobuf.ByteString getAgentGatewayIdBytes(); + + /** + * + * + *
+   * Required. AgentGateway resource to be created.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the agentGateway field is set. + */ + boolean hasAgentGateway(); + + /** + * + * + *
+   * Required. AgentGateway resource to be created.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The agentGateway. + */ + com.google.cloud.networkservices.v1.AgentGateway getAgentGateway(); + + /** + * + * + *
+   * Required. AgentGateway resource to be created.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networkservices.v1.AgentGatewayOrBuilder getAgentGatewayOrBuilder(); +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateEndpointPolicyRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateEndpointPolicyRequest.java index 31866f62b8aa..31a13b3604c7 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateEndpointPolicyRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateEndpointPolicyRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The parent resource of the EndpointPolicy. Must be in the
-   * format `projects/*/locations/global`.
+   * format `projects/*/locations/*`.
    * 
* * @@ -109,7 +109,7 @@ public java.lang.String getParent() { * *
    * Required. The parent resource of the EndpointPolicy. Must be in the
-   * format `projects/*/locations/global`.
+   * format `projects/*/locations/*`.
    * 
* * @@ -636,7 +636,7 @@ public Builder mergeFrom( * *
      * Required. The parent resource of the EndpointPolicy. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * @@ -662,7 +662,7 @@ public java.lang.String getParent() { * *
      * Required. The parent resource of the EndpointPolicy. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * @@ -688,7 +688,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The parent resource of the EndpointPolicy. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * @@ -713,7 +713,7 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The parent resource of the EndpointPolicy. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * @@ -734,7 +734,7 @@ public Builder clearParent() { * *
      * Required. The parent resource of the EndpointPolicy. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateEndpointPolicyRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateEndpointPolicyRequestOrBuilder.java index c31930f424ac..8395f98e0f2c 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateEndpointPolicyRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateEndpointPolicyRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface CreateEndpointPolicyRequestOrBuilder * *
    * Required. The parent resource of the EndpointPolicy. Must be in the
-   * format `projects/*/locations/global`.
+   * format `projects/*/locations/*`.
    * 
* * @@ -47,7 +47,7 @@ public interface CreateEndpointPolicyRequestOrBuilder * *
    * Required. The parent resource of the EndpointPolicy. Must be in the
-   * format `projects/*/locations/global`.
+   * format `projects/*/locations/*`.
    * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateGrpcRouteRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateGrpcRouteRequest.java index a41d42ccb494..ced95f41e54a 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateGrpcRouteRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateGrpcRouteRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The parent resource of the GrpcRoute. Must be in the
-   * format `projects/*/locations/global`.
+   * format `projects/*/locations/*`.
    * 
* * @@ -109,7 +109,7 @@ public java.lang.String getParent() { * *
    * Required. The parent resource of the GrpcRoute. Must be in the
-   * format `projects/*/locations/global`.
+   * format `projects/*/locations/*`.
    * 
* * @@ -629,7 +629,7 @@ public Builder mergeFrom( * *
      * Required. The parent resource of the GrpcRoute. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * @@ -655,7 +655,7 @@ public java.lang.String getParent() { * *
      * Required. The parent resource of the GrpcRoute. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * @@ -681,7 +681,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The parent resource of the GrpcRoute. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * @@ -706,7 +706,7 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The parent resource of the GrpcRoute. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * @@ -727,7 +727,7 @@ public Builder clearParent() { * *
      * Required. The parent resource of the GrpcRoute. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateGrpcRouteRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateGrpcRouteRequestOrBuilder.java index 31a68a34d41f..0118d7a31eff 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateGrpcRouteRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateGrpcRouteRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface CreateGrpcRouteRequestOrBuilder * *
    * Required. The parent resource of the GrpcRoute. Must be in the
-   * format `projects/*/locations/global`.
+   * format `projects/*/locations/*`.
    * 
* * @@ -47,7 +47,7 @@ public interface CreateGrpcRouteRequestOrBuilder * *
    * Required. The parent resource of the GrpcRoute. Must be in the
-   * format `projects/*/locations/global`.
+   * format `projects/*/locations/*`.
    * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateHttpRouteRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateHttpRouteRequest.java index 3f0187fc1ba2..02b8a27e019d 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateHttpRouteRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateHttpRouteRequest.java @@ -54,6 +54,7 @@ private CreateHttpRouteRequest(com.google.protobuf.GeneratedMessage.Builder b private CreateHttpRouteRequest() { parent_ = ""; httpRouteId_ = ""; + requestId_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -82,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The parent resource of the HttpRoute. Must be in the
-   * format `projects/*/locations/global`.
+   * format `projects/*/locations/*`.
    * 
* * @@ -109,7 +110,7 @@ public java.lang.String getParent() { * *
    * Required. The parent resource of the HttpRoute. Must be in the
-   * format `projects/*/locations/global`.
+   * format `projects/*/locations/*`.
    * 
* * @@ -243,6 +244,63 @@ public com.google.cloud.networkservices.v1.HttpRouteOrBuilder getHttpRouteOrBuil : httpRoute_; } + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. Idempotent request UUID.
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Idempotent request UUID.
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -266,6 +324,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getHttpRoute()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } getUnknownFields().writeTo(output); } @@ -284,6 +345,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHttpRoute()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -306,6 +370,7 @@ public boolean equals(final java.lang.Object obj) { if (hasHttpRoute()) { if (!getHttpRoute().equals(other.getHttpRoute())) return false; } + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -325,6 +390,8 @@ public int hashCode() { hash = (37 * hash) + HTTP_ROUTE_FIELD_NUMBER; hash = (53 * hash) + getHttpRoute().hashCode(); } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -482,6 +549,7 @@ public Builder clear() { httpRouteBuilder_.dispose(); httpRouteBuilder_ = null; } + requestId_ = ""; return this; } @@ -529,6 +597,9 @@ private void buildPartial0(com.google.cloud.networkservices.v1.CreateHttpRouteRe result.httpRoute_ = httpRouteBuilder_ == null ? httpRoute_ : httpRouteBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } result.bitField0_ |= to_bitField0_; } @@ -558,6 +629,11 @@ public Builder mergeFrom(com.google.cloud.networkservices.v1.CreateHttpRouteRequ if (other.hasHttpRoute()) { mergeHttpRoute(other.getHttpRoute()); } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -603,6 +679,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -629,7 +711,7 @@ public Builder mergeFrom( * *
      * Required. The parent resource of the HttpRoute. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * @@ -655,7 +737,7 @@ public java.lang.String getParent() { * *
      * Required. The parent resource of the HttpRoute. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * @@ -681,7 +763,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The parent resource of the HttpRoute. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * @@ -706,7 +788,7 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The parent resource of the HttpRoute. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * @@ -727,7 +809,7 @@ public Builder clearParent() { * *
      * Required. The parent resource of the HttpRoute. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * @@ -1072,6 +1154,127 @@ public com.google.cloud.networkservices.v1.HttpRouteOrBuilder getHttpRouteOrBuil return httpRouteBuilder_; } + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. Idempotent request UUID.
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Idempotent request UUID.
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Idempotent request UUID.
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Idempotent request UUID.
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Idempotent request UUID.
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.CreateHttpRouteRequest) } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateHttpRouteRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateHttpRouteRequestOrBuilder.java index c9da7474f7f4..1dd2b8d3a1e0 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateHttpRouteRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateHttpRouteRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface CreateHttpRouteRequestOrBuilder * *
    * Required. The parent resource of the HttpRoute. Must be in the
-   * format `projects/*/locations/global`.
+   * format `projects/*/locations/*`.
    * 
* * @@ -47,7 +47,7 @@ public interface CreateHttpRouteRequestOrBuilder * *
    * Required. The parent resource of the HttpRoute. Must be in the
-   * format `projects/*/locations/global`.
+   * format `projects/*/locations/*`.
    * 
* * @@ -126,4 +126,34 @@ public interface CreateHttpRouteRequestOrBuilder * */ com.google.cloud.networkservices.v1.HttpRouteOrBuilder getHttpRouteOrBuilder(); + + /** + * + * + *
+   * Optional. Idempotent request UUID.
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. Idempotent request UUID.
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateMeshRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateMeshRequest.java index bbf3af16f126..dd55978913d0 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateMeshRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateMeshRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The parent resource of the Mesh. Must be in the
-   * format `projects/*/locations/global`.
+   * format `projects/*/locations/*`.
    * 
* * @@ -109,7 +109,7 @@ public java.lang.String getParent() { * *
    * Required. The parent resource of the Mesh. Must be in the
-   * format `projects/*/locations/global`.
+   * format `projects/*/locations/*`.
    * 
* * @@ -621,7 +621,7 @@ public Builder mergeFrom( * *
      * Required. The parent resource of the Mesh. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * @@ -647,7 +647,7 @@ public java.lang.String getParent() { * *
      * Required. The parent resource of the Mesh. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * @@ -673,7 +673,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The parent resource of the Mesh. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * @@ -698,7 +698,7 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The parent resource of the Mesh. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * @@ -719,7 +719,7 @@ public Builder clearParent() { * *
      * Required. The parent resource of the Mesh. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateMeshRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateMeshRequestOrBuilder.java index 5db2c6c13be9..7c621163a795 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateMeshRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateMeshRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface CreateMeshRequestOrBuilder * *
    * Required. The parent resource of the Mesh. Must be in the
-   * format `projects/*/locations/global`.
+   * format `projects/*/locations/*`.
    * 
* * @@ -47,7 +47,7 @@ public interface CreateMeshRequestOrBuilder * *
    * Required. The parent resource of the Mesh. Must be in the
-   * format `projects/*/locations/global`.
+   * format `projects/*/locations/*`.
    * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTcpRouteRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTcpRouteRequest.java index b2dedbdaf025..472ee833cb36 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTcpRouteRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTcpRouteRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The parent resource of the TcpRoute. Must be in the
-   * format `projects/*/locations/global`.
+   * format `projects/*/locations/*`.
    * 
* * @@ -109,7 +109,7 @@ public java.lang.String getParent() { * *
    * Required. The parent resource of the TcpRoute. Must be in the
-   * format `projects/*/locations/global`.
+   * format `projects/*/locations/*`.
    * 
* * @@ -629,7 +629,7 @@ public Builder mergeFrom( * *
      * Required. The parent resource of the TcpRoute. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * @@ -655,7 +655,7 @@ public java.lang.String getParent() { * *
      * Required. The parent resource of the TcpRoute. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * @@ -681,7 +681,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The parent resource of the TcpRoute. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * @@ -706,7 +706,7 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The parent resource of the TcpRoute. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * @@ -727,7 +727,7 @@ public Builder clearParent() { * *
      * Required. The parent resource of the TcpRoute. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTcpRouteRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTcpRouteRequestOrBuilder.java index cb210410c1c7..431d04b8a464 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTcpRouteRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTcpRouteRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface CreateTcpRouteRequestOrBuilder * *
    * Required. The parent resource of the TcpRoute. Must be in the
-   * format `projects/*/locations/global`.
+   * format `projects/*/locations/*`.
    * 
* * @@ -47,7 +47,7 @@ public interface CreateTcpRouteRequestOrBuilder * *
    * Required. The parent resource of the TcpRoute. Must be in the
-   * format `projects/*/locations/global`.
+   * format `projects/*/locations/*`.
    * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTlsRouteRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTlsRouteRequest.java index 8a42ab622c00..d8a56887cff6 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTlsRouteRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTlsRouteRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The parent resource of the TlsRoute. Must be in the
-   * format `projects/*/locations/global`.
+   * format `projects/*/locations/*`.
    * 
* * @@ -109,7 +109,7 @@ public java.lang.String getParent() { * *
    * Required. The parent resource of the TlsRoute. Must be in the
-   * format `projects/*/locations/global`.
+   * format `projects/*/locations/*`.
    * 
* * @@ -629,7 +629,7 @@ public Builder mergeFrom( * *
      * Required. The parent resource of the TlsRoute. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * @@ -655,7 +655,7 @@ public java.lang.String getParent() { * *
      * Required. The parent resource of the TlsRoute. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * @@ -681,7 +681,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The parent resource of the TlsRoute. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * @@ -706,7 +706,7 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The parent resource of the TlsRoute. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * @@ -727,7 +727,7 @@ public Builder clearParent() { * *
      * Required. The parent resource of the TlsRoute. Must be in the
-     * format `projects/*/locations/global`.
+     * format `projects/*/locations/*`.
      * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTlsRouteRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTlsRouteRequestOrBuilder.java index d69e72f80d66..32121fbf389e 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTlsRouteRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTlsRouteRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface CreateTlsRouteRequestOrBuilder * *
    * Required. The parent resource of the TlsRoute. Must be in the
-   * format `projects/*/locations/global`.
+   * format `projects/*/locations/*`.
    * 
* * @@ -47,7 +47,7 @@ public interface CreateTlsRouteRequestOrBuilder * *
    * Required. The parent resource of the TlsRoute. Must be in the
-   * format `projects/*/locations/global`.
+   * format `projects/*/locations/*`.
    * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteAgentGatewayRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteAgentGatewayRequest.java new file mode 100644 index 000000000000..174cc37ac3f7 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteAgentGatewayRequest.java @@ -0,0 +1,811 @@ +/* + * 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/cloud/networkservices/v1/agent_gateway.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +/** + * + * + *
+ * Request used by the DeleteAgentGateway method.
+ * 
+ * + * Protobuf type {@code google.cloud.networkservices.v1.DeleteAgentGatewayRequest} + */ +@com.google.protobuf.Generated +public final class DeleteAgentGatewayRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.DeleteAgentGatewayRequest) + DeleteAgentGatewayRequestOrBuilder { + 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= */ "", + "DeleteAgentGatewayRequest"); + } + + // Use DeleteAgentGatewayRequest.newBuilder() to construct. + private DeleteAgentGatewayRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteAgentGatewayRequest() { + name_ = ""; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_DeleteAgentGatewayRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_DeleteAgentGatewayRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest.class, + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. A name of the AgentGateway to delete. Must be in the format
+   * `projects/*/locations/*/agentGateways/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. A name of the AgentGateway to delete. Must be in the format
+   * `projects/*/locations/*/agentGateways/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * Optional. The etag of the AgentGateway to delete.
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The etag of the AgentGateway to delete.
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = 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(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, etag_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, etag_); + } + 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.cloud.networkservices.v1.DeleteAgentGatewayRequest)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest other = + (com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest 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.cloud.networkservices.v1.DeleteAgentGatewayRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest 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.cloud.networkservices.v1.DeleteAgentGatewayRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest 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.cloud.networkservices.v1.DeleteAgentGatewayRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest 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.cloud.networkservices.v1.DeleteAgentGatewayRequest 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 used by the DeleteAgentGateway method.
+   * 
+ * + * Protobuf type {@code google.cloud.networkservices.v1.DeleteAgentGatewayRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.DeleteAgentGatewayRequest) + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_DeleteAgentGatewayRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_DeleteAgentGatewayRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest.class, + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest.Builder.class); + } + + // Construct using com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_DeleteAgentGatewayRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest build() { + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest buildPartial() { + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest result = + new com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest) { + return mergeFrom((com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest other) { + if (other + == com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. A name of the AgentGateway to delete. Must be in the format
+     * `projects/*/locations/*/agentGateways/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. A name of the AgentGateway to delete. Must be in the format
+     * `projects/*/locations/*/agentGateways/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. A name of the AgentGateway to delete. Must be in the format
+     * `projects/*/locations/*/agentGateways/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. A name of the AgentGateway to delete. Must be in the format
+     * `projects/*/locations/*/agentGateways/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. A name of the AgentGateway to delete. Must be in the format
+     * `projects/*/locations/*/agentGateways/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * Optional. The etag of the AgentGateway to delete.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The etag of the AgentGateway to delete.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The etag of the AgentGateway to delete.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The etag of the AgentGateway to delete.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The etag of the AgentGateway to delete.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.DeleteAgentGatewayRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.DeleteAgentGatewayRequest) + private static final com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest(); + } + + public static com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAgentGatewayRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteAgentGatewayRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteAgentGatewayRequestOrBuilder.java new file mode 100644 index 000000000000..5119d4e12586 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteAgentGatewayRequestOrBuilder.java @@ -0,0 +1,86 @@ +/* + * 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/cloud/networkservices/v1/agent_gateway.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +@com.google.protobuf.Generated +public interface DeleteAgentGatewayRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.DeleteAgentGatewayRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. A name of the AgentGateway to delete. Must be in the format
+   * `projects/*/locations/*/agentGateways/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. A name of the AgentGateway to delete. Must be in the format
+   * `projects/*/locations/*/agentGateways/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The etag of the AgentGateway to delete.
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * Optional. The etag of the AgentGateway to delete.
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteEndpointPolicyRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteEndpointPolicyRequest.java index e2673538464a..bacf1c833c0c 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteEndpointPolicyRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteEndpointPolicyRequest.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. A name of the EndpointPolicy to delete. Must be in the format
-   * `projects/*/locations/global/endpointPolicies/*`.
+   * `projects/*/locations/*/endpointPolicies/*`.
    * 
* * @@ -107,7 +107,7 @@ public java.lang.String getName() { * *
    * Required. A name of the EndpointPolicy to delete. Must be in the format
-   * `projects/*/locations/global/endpointPolicies/*`.
+   * `projects/*/locations/*/endpointPolicies/*`.
    * 
* * @@ -451,7 +451,7 @@ public Builder mergeFrom( * *
      * Required. A name of the EndpointPolicy to delete. Must be in the format
-     * `projects/*/locations/global/endpointPolicies/*`.
+     * `projects/*/locations/*/endpointPolicies/*`.
      * 
* * @@ -477,7 +477,7 @@ public java.lang.String getName() { * *
      * Required. A name of the EndpointPolicy to delete. Must be in the format
-     * `projects/*/locations/global/endpointPolicies/*`.
+     * `projects/*/locations/*/endpointPolicies/*`.
      * 
* * @@ -503,7 +503,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. A name of the EndpointPolicy to delete. Must be in the format
-     * `projects/*/locations/global/endpointPolicies/*`.
+     * `projects/*/locations/*/endpointPolicies/*`.
      * 
* * @@ -528,7 +528,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. A name of the EndpointPolicy to delete. Must be in the format
-     * `projects/*/locations/global/endpointPolicies/*`.
+     * `projects/*/locations/*/endpointPolicies/*`.
      * 
* * @@ -549,7 +549,7 @@ public Builder clearName() { * *
      * Required. A name of the EndpointPolicy to delete. Must be in the format
-     * `projects/*/locations/global/endpointPolicies/*`.
+     * `projects/*/locations/*/endpointPolicies/*`.
      * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteEndpointPolicyRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteEndpointPolicyRequestOrBuilder.java index 800d16723ea3..d4ce3616e417 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteEndpointPolicyRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteEndpointPolicyRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface DeleteEndpointPolicyRequestOrBuilder * *
    * Required. A name of the EndpointPolicy to delete. Must be in the format
-   * `projects/*/locations/global/endpointPolicies/*`.
+   * `projects/*/locations/*/endpointPolicies/*`.
    * 
* * @@ -47,7 +47,7 @@ public interface DeleteEndpointPolicyRequestOrBuilder * *
    * Required. A name of the EndpointPolicy to delete. Must be in the format
-   * `projects/*/locations/global/endpointPolicies/*`.
+   * `projects/*/locations/*/endpointPolicies/*`.
    * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteGrpcRouteRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteGrpcRouteRequest.java index ef0f1ab086bb..112ce041847d 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteGrpcRouteRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteGrpcRouteRequest.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. A name of the GrpcRoute to delete. Must be in the format
-   * `projects/*/locations/global/grpcRoutes/*`.
+   * `projects/*/locations/*/grpcRoutes/*`.
    * 
* * @@ -107,7 +107,7 @@ public java.lang.String getName() { * *
    * Required. A name of the GrpcRoute to delete. Must be in the format
-   * `projects/*/locations/global/grpcRoutes/*`.
+   * `projects/*/locations/*/grpcRoutes/*`.
    * 
* * @@ -447,7 +447,7 @@ public Builder mergeFrom( * *
      * Required. A name of the GrpcRoute to delete. Must be in the format
-     * `projects/*/locations/global/grpcRoutes/*`.
+     * `projects/*/locations/*/grpcRoutes/*`.
      * 
* * @@ -473,7 +473,7 @@ public java.lang.String getName() { * *
      * Required. A name of the GrpcRoute to delete. Must be in the format
-     * `projects/*/locations/global/grpcRoutes/*`.
+     * `projects/*/locations/*/grpcRoutes/*`.
      * 
* * @@ -499,7 +499,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. A name of the GrpcRoute to delete. Must be in the format
-     * `projects/*/locations/global/grpcRoutes/*`.
+     * `projects/*/locations/*/grpcRoutes/*`.
      * 
* * @@ -524,7 +524,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. A name of the GrpcRoute to delete. Must be in the format
-     * `projects/*/locations/global/grpcRoutes/*`.
+     * `projects/*/locations/*/grpcRoutes/*`.
      * 
* * @@ -545,7 +545,7 @@ public Builder clearName() { * *
      * Required. A name of the GrpcRoute to delete. Must be in the format
-     * `projects/*/locations/global/grpcRoutes/*`.
+     * `projects/*/locations/*/grpcRoutes/*`.
      * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteGrpcRouteRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteGrpcRouteRequestOrBuilder.java index 4eba3d7f93fd..889eb0d5d841 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteGrpcRouteRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteGrpcRouteRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface DeleteGrpcRouteRequestOrBuilder * *
    * Required. A name of the GrpcRoute to delete. Must be in the format
-   * `projects/*/locations/global/grpcRoutes/*`.
+   * `projects/*/locations/*/grpcRoutes/*`.
    * 
* * @@ -47,7 +47,7 @@ public interface DeleteGrpcRouteRequestOrBuilder * *
    * Required. A name of the GrpcRoute to delete. Must be in the format
-   * `projects/*/locations/global/grpcRoutes/*`.
+   * `projects/*/locations/*/grpcRoutes/*`.
    * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteHttpRouteRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteHttpRouteRequest.java index d758d89c0a55..859d313b2e4f 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteHttpRouteRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteHttpRouteRequest.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. A name of the HttpRoute to delete. Must be in the format
-   * `projects/*/locations/global/httpRoutes/*`.
+   * `projects/*/locations/*/httpRoutes/*`.
    * 
* * @@ -107,7 +107,7 @@ public java.lang.String getName() { * *
    * Required. A name of the HttpRoute to delete. Must be in the format
-   * `projects/*/locations/global/httpRoutes/*`.
+   * `projects/*/locations/*/httpRoutes/*`.
    * 
* * @@ -447,7 +447,7 @@ public Builder mergeFrom( * *
      * Required. A name of the HttpRoute to delete. Must be in the format
-     * `projects/*/locations/global/httpRoutes/*`.
+     * `projects/*/locations/*/httpRoutes/*`.
      * 
* * @@ -473,7 +473,7 @@ public java.lang.String getName() { * *
      * Required. A name of the HttpRoute to delete. Must be in the format
-     * `projects/*/locations/global/httpRoutes/*`.
+     * `projects/*/locations/*/httpRoutes/*`.
      * 
* * @@ -499,7 +499,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. A name of the HttpRoute to delete. Must be in the format
-     * `projects/*/locations/global/httpRoutes/*`.
+     * `projects/*/locations/*/httpRoutes/*`.
      * 
* * @@ -524,7 +524,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. A name of the HttpRoute to delete. Must be in the format
-     * `projects/*/locations/global/httpRoutes/*`.
+     * `projects/*/locations/*/httpRoutes/*`.
      * 
* * @@ -545,7 +545,7 @@ public Builder clearName() { * *
      * Required. A name of the HttpRoute to delete. Must be in the format
-     * `projects/*/locations/global/httpRoutes/*`.
+     * `projects/*/locations/*/httpRoutes/*`.
      * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteHttpRouteRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteHttpRouteRequestOrBuilder.java index 86eb5532a7e2..4d88ffc2f404 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteHttpRouteRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteHttpRouteRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface DeleteHttpRouteRequestOrBuilder * *
    * Required. A name of the HttpRoute to delete. Must be in the format
-   * `projects/*/locations/global/httpRoutes/*`.
+   * `projects/*/locations/*/httpRoutes/*`.
    * 
* * @@ -47,7 +47,7 @@ public interface DeleteHttpRouteRequestOrBuilder * *
    * Required. A name of the HttpRoute to delete. Must be in the format
-   * `projects/*/locations/global/httpRoutes/*`.
+   * `projects/*/locations/*/httpRoutes/*`.
    * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteMeshRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteMeshRequest.java index 817bcf094bcf..e5a8607cd04f 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteMeshRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteMeshRequest.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. A name of the Mesh to delete. Must be in the format
-   * `projects/*/locations/global/meshes/*`.
+   * `projects/*/locations/*/meshes/*`.
    * 
* * @@ -107,7 +107,7 @@ public java.lang.String getName() { * *
    * Required. A name of the Mesh to delete. Must be in the format
-   * `projects/*/locations/global/meshes/*`.
+   * `projects/*/locations/*/meshes/*`.
    * 
* * @@ -447,7 +447,7 @@ public Builder mergeFrom( * *
      * Required. A name of the Mesh to delete. Must be in the format
-     * `projects/*/locations/global/meshes/*`.
+     * `projects/*/locations/*/meshes/*`.
      * 
* * @@ -473,7 +473,7 @@ public java.lang.String getName() { * *
      * Required. A name of the Mesh to delete. Must be in the format
-     * `projects/*/locations/global/meshes/*`.
+     * `projects/*/locations/*/meshes/*`.
      * 
* * @@ -499,7 +499,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. A name of the Mesh to delete. Must be in the format
-     * `projects/*/locations/global/meshes/*`.
+     * `projects/*/locations/*/meshes/*`.
      * 
* * @@ -524,7 +524,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. A name of the Mesh to delete. Must be in the format
-     * `projects/*/locations/global/meshes/*`.
+     * `projects/*/locations/*/meshes/*`.
      * 
* * @@ -545,7 +545,7 @@ public Builder clearName() { * *
      * Required. A name of the Mesh to delete. Must be in the format
-     * `projects/*/locations/global/meshes/*`.
+     * `projects/*/locations/*/meshes/*`.
      * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteMeshRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteMeshRequestOrBuilder.java index c5e09a3d178d..d23d45a8b796 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteMeshRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteMeshRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface DeleteMeshRequestOrBuilder * *
    * Required. A name of the Mesh to delete. Must be in the format
-   * `projects/*/locations/global/meshes/*`.
+   * `projects/*/locations/*/meshes/*`.
    * 
* * @@ -47,7 +47,7 @@ public interface DeleteMeshRequestOrBuilder * *
    * Required. A name of the Mesh to delete. Must be in the format
-   * `projects/*/locations/global/meshes/*`.
+   * `projects/*/locations/*/meshes/*`.
    * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTcpRouteRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTcpRouteRequest.java index 1f3aa4e2ffe7..c33787b891d0 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTcpRouteRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTcpRouteRequest.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. A name of the TcpRoute to delete. Must be in the format
-   * `projects/*/locations/global/tcpRoutes/*`.
+   * `projects/*/locations/*/tcpRoutes/*`.
    * 
* * @@ -107,7 +107,7 @@ public java.lang.String getName() { * *
    * Required. A name of the TcpRoute to delete. Must be in the format
-   * `projects/*/locations/global/tcpRoutes/*`.
+   * `projects/*/locations/*/tcpRoutes/*`.
    * 
* * @@ -447,7 +447,7 @@ public Builder mergeFrom( * *
      * Required. A name of the TcpRoute to delete. Must be in the format
-     * `projects/*/locations/global/tcpRoutes/*`.
+     * `projects/*/locations/*/tcpRoutes/*`.
      * 
* * @@ -473,7 +473,7 @@ public java.lang.String getName() { * *
      * Required. A name of the TcpRoute to delete. Must be in the format
-     * `projects/*/locations/global/tcpRoutes/*`.
+     * `projects/*/locations/*/tcpRoutes/*`.
      * 
* * @@ -499,7 +499,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. A name of the TcpRoute to delete. Must be in the format
-     * `projects/*/locations/global/tcpRoutes/*`.
+     * `projects/*/locations/*/tcpRoutes/*`.
      * 
* * @@ -524,7 +524,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. A name of the TcpRoute to delete. Must be in the format
-     * `projects/*/locations/global/tcpRoutes/*`.
+     * `projects/*/locations/*/tcpRoutes/*`.
      * 
* * @@ -545,7 +545,7 @@ public Builder clearName() { * *
      * Required. A name of the TcpRoute to delete. Must be in the format
-     * `projects/*/locations/global/tcpRoutes/*`.
+     * `projects/*/locations/*/tcpRoutes/*`.
      * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTcpRouteRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTcpRouteRequestOrBuilder.java index 523432825425..876323c31342 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTcpRouteRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTcpRouteRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface DeleteTcpRouteRequestOrBuilder * *
    * Required. A name of the TcpRoute to delete. Must be in the format
-   * `projects/*/locations/global/tcpRoutes/*`.
+   * `projects/*/locations/*/tcpRoutes/*`.
    * 
* * @@ -47,7 +47,7 @@ public interface DeleteTcpRouteRequestOrBuilder * *
    * Required. A name of the TcpRoute to delete. Must be in the format
-   * `projects/*/locations/global/tcpRoutes/*`.
+   * `projects/*/locations/*/tcpRoutes/*`.
    * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTlsRouteRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTlsRouteRequest.java index 03fbe2bdedc2..756a8f960938 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTlsRouteRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTlsRouteRequest.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. A name of the TlsRoute to delete. Must be in the format
-   * `projects/*/locations/global/tlsRoutes/*`.
+   * `projects/*/locations/*/tlsRoutes/*`.
    * 
* * @@ -107,7 +107,7 @@ public java.lang.String getName() { * *
    * Required. A name of the TlsRoute to delete. Must be in the format
-   * `projects/*/locations/global/tlsRoutes/*`.
+   * `projects/*/locations/*/tlsRoutes/*`.
    * 
* * @@ -447,7 +447,7 @@ public Builder mergeFrom( * *
      * Required. A name of the TlsRoute to delete. Must be in the format
-     * `projects/*/locations/global/tlsRoutes/*`.
+     * `projects/*/locations/*/tlsRoutes/*`.
      * 
* * @@ -473,7 +473,7 @@ public java.lang.String getName() { * *
      * Required. A name of the TlsRoute to delete. Must be in the format
-     * `projects/*/locations/global/tlsRoutes/*`.
+     * `projects/*/locations/*/tlsRoutes/*`.
      * 
* * @@ -499,7 +499,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. A name of the TlsRoute to delete. Must be in the format
-     * `projects/*/locations/global/tlsRoutes/*`.
+     * `projects/*/locations/*/tlsRoutes/*`.
      * 
* * @@ -524,7 +524,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. A name of the TlsRoute to delete. Must be in the format
-     * `projects/*/locations/global/tlsRoutes/*`.
+     * `projects/*/locations/*/tlsRoutes/*`.
      * 
* * @@ -545,7 +545,7 @@ public Builder clearName() { * *
      * Required. A name of the TlsRoute to delete. Must be in the format
-     * `projects/*/locations/global/tlsRoutes/*`.
+     * `projects/*/locations/*/tlsRoutes/*`.
      * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTlsRouteRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTlsRouteRequestOrBuilder.java index 40f3b90ea781..72efbb4328fe 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTlsRouteRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTlsRouteRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface DeleteTlsRouteRequestOrBuilder * *
    * Required. A name of the TlsRoute to delete. Must be in the format
-   * `projects/*/locations/global/tlsRoutes/*`.
+   * `projects/*/locations/*/tlsRoutes/*`.
    * 
* * @@ -47,7 +47,7 @@ public interface DeleteTlsRouteRequestOrBuilder * *
    * Required. A name of the TlsRoute to delete. Must be in the format
-   * `projects/*/locations/global/tlsRoutes/*`.
+   * `projects/*/locations/*/tlsRoutes/*`.
    * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DepProto.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DepProto.java index 2d17f57dc3ce..9b806b7cac5e 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DepProto.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DepProto.java @@ -199,7 +199,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "unning/operations.proto\032\036google/protobuf" + "/duration.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\032\034" - + "google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\265\004\n" + + "google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\240\006\n" + "\016ExtensionChain\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022\\\n" + "\017match_condition\030\002" @@ -207,69 +207,74 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "extensions\030\003" + " \003(\01329.google.cloud.networkservices.v1.ExtensionChain.ExtensionB\003\340A\002\032-\n" + "\016MatchCondition\022\033\n" - + "\016cel_expression\030\001 \001(\tB\003\340A\002\032\256\002\n" + + "\016cel_expression\030\001 \001(\tB\003\340A\002\032\231\004\n" + "\tExtension\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\002\022\026\n" + + "\004name\030\001 \001(\tB\003\340A\001\022\026\n" + "\tauthority\030\002 \001(\tB\003\340A\001\022\024\n" + "\007service\030\003 \001(\tB\003\340A\002\022I\n" + "\020supported_events\030\004 \003(\0162*.google.c" + "loud.networkservices.v1.EventTypeB\003\340A\001\022/\n" + "\007timeout\030\005 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\026\n" + "\tfail_open\030\006 \001(\010B\003\340A\001\022\034\n" - + "\017forward_headers\030\007 \003(\tB\003\340A\001\022.\n" - + "\010metadata\030\t \001(\0132\027.google.protobuf.StructB\003\340A\001\"\345\005\n" + + "\017forward_headers\030\007 \003(\tB\003\340A\001\022\037\n" + + "\022forward_attributes\030\010 \003(\tB\003\340A\001\022.\n" + + "\010metadata\030\t \001(\0132\027.google.protobuf.StructB\003\340A\001\022R\n" + + "\026request_body_send_mode\030\016" + + " \001(\0162-.google.cloud.networkservices.v1.BodySendModeB\003\340A\001\022S\n" + + "\027response_body_send_mode\030\017" + + " \001(\0162-.google.cloud.networkservices.v1.BodySendModeB\003\340A\001\022\037\n" + + "\022observability_mode\030\020 \001(\010B\003\340A\001\"\345\005\n" + "\022LbTrafficExtension\022\024\n" + "\004name\030\001 \001(\tB\006\340A\002\340A\010\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\030\n" + "\013description\030\t \001(\tB\003\340A\001\022T\n" - + "\006labels\030\004 \003(\0132?.google.cloud." - + "networkservices.v1.LbTrafficExtension.LabelsEntryB\003\340A\001\022\035\n" + + "\006labels\030\004 \003(\0132?.google.cloud.netwo" + + "rkservices.v1.LbTrafficExtension.LabelsEntryB\003\340A\001\022\035\n" + "\020forwarding_rules\030\005 \003(\tB\003\340A\001\022N\n" - + "\020extension_chains\030\007 \003(\0132/.google" - + ".cloud.networkservices.v1.ExtensionChainB\003\340A\002\022X\n" - + "\025load_balancing_scheme\030\010 \001(\01624.g" - + "oogle.cloud.networkservices.v1.LoadBalancingSchemeB\003\340A\002\022.\n" + + "\020extension_chains\030\007 \003(\0132/.google.clou" + + "d.networkservices.v1.ExtensionChainB\003\340A\002\022X\n" + + "\025load_balancing_scheme\030\010 \001(\01624.google" + + ".cloud.networkservices.v1.LoadBalancingSchemeB\003\340A\002\022.\n" + "\010metadata\030\n" + " \001(\0132\027.google.protobuf.StructB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\264\001\352A\260\001\n" - + "1networkservices.googleapis.com/LbTrafficExtension\022Rprojects/{project}/locations/{" - + "location}/lbTrafficExtensions/{lb_traffi" - + "c_extension}*\023lbTrafficExtensions2\022lbTrafficExtension\"\310\001\n" + + "1networkservices.googleapis.com/LbTrafficExtens" + + "ion\022Rprojects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_ext" + + "ension}*\023lbTrafficExtensions2\022lbTrafficExtension\"\310\001\n" + "\036ListLbTrafficExtensionsRequest\022I\n" - + "\006parent\030\001 \001(\tB9\340A\002\372A3\0221networ" - + "kservices.googleapis.com/LbTrafficExtension\022\026\n" + + "\006parent\030\001 \001(\tB9\340A\002\372A3\0221networkserv" + + "ices.googleapis.com/LbTrafficExtension\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"\243\001\n" + "\037ListLbTrafficExtensionsResponse\022R\n" - + "\025lb_traffic_extensions\030\001 " - + "\003(\01323.google.cloud.networkservices.v1.LbTrafficExtension\022\027\n" + + "\025lb_traffic_extensions\030\001 \003(\01323" + + ".google.cloud.networkservices.v1.LbTrafficExtension\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"g\n" + "\034GetLbTrafficExtensionRequest\022G\n" + "\004name\030\001 \001(\tB9\340A\002\372A3\n" + "1networkservices.googleapis.com/LbTrafficExtension\"\213\002\n" + "\037CreateLbTrafficExtensionRequest\022I\n" - + "\006parent\030\001 \001(\tB9\340A\002\372A3\0221networkserv" - + "ices.googleapis.com/LbTrafficExtension\022$\n" + + "\006parent\030\001 \001(" + + "\tB9\340A\002\372A3\0221networkservices.googleapis.com/LbTrafficExtension\022$\n" + "\027lb_traffic_extension_id\030\002 \001(\tB\003\340A\002\022V\n" - + "\024lb_traffic_extension\030\003 \001(\01323.google.clou" - + "d.networkservices.v1.LbTrafficExtensionB\003\340A\002\022\037\n\n" + + "\024lb_traffic_extension\030\003 \001(\01323.google.cloud.net" + + "workservices.v1.LbTrafficExtensionB\003\340A\002\022\037\n\n" + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\320\001\n" + "\037UpdateLbTrafficExtensionRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022V\n" - + "\024lb_traffic_extension\030\002 \001(\01323." - + "google.cloud.networkservices.v1.LbTrafficExtensionB\003\340A\002\022\037\n\n" + + "\024lb_traffic_extension\030\002 \001(\01323.googl" + + "e.cloud.networkservices.v1.LbTrafficExtensionB\003\340A\002\022\037\n\n" + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\213\001\n" + "\037DeleteLbTrafficExtensionRequest\022G\n" + "\004name\030\001 \001(\tB9\340A\002\372A3\n" - + "1networkservices.googleapis.com/LbTrafficExtension\022\037\n" - + "\n" + + "1networkservices.googleapis.com/LbTrafficExtension\022\037\n\n" + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\327\005\n" + "\020LbRouteExtension\022\024\n" + "\004name\030\001 \001(\tB\006\340A\002\340A\010\0224\n" @@ -277,21 +282,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\030\n" + "\013description\030\t \001(\tB\003\340A\001\022R\n" - + "\006labels\030\004 \003(\0132=.google.cloud.n" - + "etworkservices.v1.LbRouteExtension.LabelsEntryB\003\340A\001\022\035\n" + + "\006labels\030\004 \003(\0132=.google.cloud.networ" + + "kservices.v1.LbRouteExtension.LabelsEntryB\003\340A\001\022\035\n" + "\020forwarding_rules\030\005 \003(\tB\003\340A\002\022N\n" - + "\020extension_chains\030\007 \003(\0132/.google.cl" - + "oud.networkservices.v1.ExtensionChainB\003\340A\002\022X\n" - + "\025load_balancing_scheme\030\010 \001(\01624.goog" - + "le.cloud.networkservices.v1.LoadBalancingSchemeB\003\340A\002\022.\n" + + "\020extension_chains\030\007" + + " \003(\0132/.google.cloud.networkservices.v1.ExtensionChainB\003\340A\002\022X\n" + + "\025load_balancing_scheme\030\010 \001(\01624.google.cl" + + "oud.networkservices.v1.LoadBalancingSchemeB\003\340A\002\022.\n" + "\010metadata\030\n" + " \001(\0132\027.google.protobuf.StructB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\252\001\352A\246\001\n" - + "/networkservices.googleapis.com/LbRouteExtens" - + "ion\022Nprojects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extensi" - + "on}*\021lbRouteExtensions2\020lbRouteExtension\"\304\001\n" + + "/networkservices.googleapis.com/LbRouteExtension\022N" + + "projects/{project}/locations/{location}/" + + "lbRouteExtensions/{lb_route_extension}*\021lbRouteExtensions2\020lbRouteExtension\"\304\001\n" + "\034ListLbRouteExtensionsRequest\022G\n" + "\006parent\030\001 \001(" + "\tB7\340A\002\372A1\022/networkservices.googleapis.com/LbRouteExtension\022\026\n" @@ -308,16 +313,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB7\340A\002\372A1\n" + "/networkservices.googleapis.com/LbRouteExtension\"\201\002\n" + "\035CreateLbRouteExtensionRequest\022G\n" - + "\006parent\030\001 \001(\tB7\340A\002\372A1\022/" - + "networkservices.googleapis.com/LbRouteExtension\022\"\n" + + "\006parent\030\001 \001(\tB7\340A\002\372A1\022/netwo" + + "rkservices.googleapis.com/LbRouteExtension\022\"\n" + "\025lb_route_extension_id\030\002 \001(\tB\003\340A\002\022R\n" - + "\022lb_route_extension\030\003 \001(\01321.google" - + ".cloud.networkservices.v1.LbRouteExtensionB\003\340A\002\022\037\n\n" + + "\022lb_route_extension\030\003 \001(\01321.google.clou" + + "d.networkservices.v1.LbRouteExtensionB\003\340A\002\022\037\n\n" + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\312\001\n" + "\035UpdateLbRouteExtensionRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022R\n" - + "\022lb_route_extension\030\002 \001(\01321.g" - + "oogle.cloud.networkservices.v1.LbRouteExtensionB\003\340A\002\022\037\n\n" + + "\022lb_route_extension\030\002 \001(\01321.google" + + ".cloud.networkservices.v1.LbRouteExtensionB\003\340A\002\022\037\n\n" + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\207\001\n" + "\035DeleteLbRouteExtensionRequest\022E\n" + "\004name\030\001 \001(\tB7\340A\002\372A1\n" @@ -329,75 +334,76 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\030\n" + "\013description\030\t \001(\tB\003\340A\001\022Q\n" - + "\006labels\030\004 \003(\0132<.google.cloud.networkse" - + "rvices.v1.LbEdgeExtension.LabelsEntryB\003\340A\001\022\035\n" + + "\006labels\030\004" + + " \003(\0132<.google.cloud.networkservices.v1.LbEdgeExtension.LabelsEntryB\003\340A\001\022\035\n" + "\020forwarding_rules\030\005 \003(\tB\003\340A\002\022N\n" + "\020extension_chains\030\006" + " \003(\0132/.google.cloud.networkservices.v1.ExtensionChainB\003\340A\002\022X\n" - + "\025load_balancing_scheme\030\007 \001(\01624.google.cloud." - + "networkservices.v1.LoadBalancingSchemeB\003\340A\002\032-\n" + + "\025load_balancing_scheme\030\007 \001(\01624.google.cloud.netwo" + + "rkservices.v1.LoadBalancingSchemeB\003\340A\002\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\245\001\352A\241\001\n" - + ".networkservices.googleapis.com/LbEdgeExtension\022Lprojects/{pro" - + "ject}/locations/{location}/lbEdgeExtensi" - + "ons/{lb_edge_extension}*\020lbEdgeExtensions2\017lbEdgeExtension\"\302\001\n" + + ".networkservices.googleapis.com/LbEdgeExtension\022Lprojects/{project}" + + "/locations/{location}/lbEdgeExtensions/{" + + "lb_edge_extension}*\020lbEdgeExtensions2\017lbEdgeExtension\"\302\001\n" + "\033ListLbEdgeExtensionsRequest\022F\n" - + "\006parent\030\001 \001(\tB6\340A\002\372A0\022.netw" - + "orkservices.googleapis.com/LbEdgeExtension\022\026\n" + + "\006parent\030\001 \001(" + + "\tB6\340A\002\372A0\022.networkservices.googleapis.com/LbEdgeExtension\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"\232\001\n" + "\034ListLbEdgeExtensionsResponse\022L\n" - + "\022lb_edge_extensions\030\001 \003(\01320.g" - + "oogle.cloud.networkservices.v1.LbEdgeExtension\022\027\n" + + "\022lb_edge_extensions\030\001 \003(\01320.google" + + ".cloud.networkservices.v1.LbEdgeExtension\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"a\n" + "\031GetLbEdgeExtensionRequest\022D\n" + "\004name\030\001 \001(\tB6\340A\002\372A0\n" + ".networkservices.googleapis.com/LbEdgeExtension\"\374\001\n" + "\034CreateLbEdgeExtensionRequest\022F\n" - + "\006parent\030\001 \001(\t" - + "B6\340A\002\372A0\022.networkservices.googleapis.com/LbEdgeExtension\022!\n" + + "\006parent\030\001 \001(\tB6\340A\002" + + "\372A0\022.networkservices.googleapis.com/LbEdgeExtension\022!\n" + "\024lb_edge_extension_id\030\002 \001(\tB\003\340A\002\022P\n" - + "\021lb_edge_extension\030\003 \001(\01320" - + ".google.cloud.networkservices.v1.LbEdgeExtensionB\003\340A\002\022\037\n\n" + + "\021lb_edge_extension\030\003 \001(\01320.goog" + + "le.cloud.networkservices.v1.LbEdgeExtensionB\003\340A\002\022\037\n\n" + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\307\001\n" + "\034UpdateLbEdgeExtensionRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022P\n" - + "\021lb_edge_extension\030\002 \001(\013" - + "20.google.cloud.networkservices.v1.LbEdgeExtensionB\003\340A\002\022\037\n\n" + + "\021lb_edge_extension\030\002 \001(\01320.go" + + "ogle.cloud.networkservices.v1.LbEdgeExtensionB\003\340A\002\022\037\n\n" + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\205\001\n" + "\034DeleteLbEdgeExtensionRequest\022D\n" + "\004name\030\001 \001(\tB6\340A\002\372A0\n" + ".networkservices.googleapis.com/LbEdgeExtension\022\037\n\n" - + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\265\006\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\326\006\n" + "\016AuthzExtension\022\024\n" + "\004name\030\001 \001(\tB\006\340A\002\340A\010\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\030\n" + "\013description\030\004 \001(\tB\003\340A\001\022P\n" - + "\006labels\030\005 \003(\0132;.google.cloud.networkse" - + "rvices.v1.AuthzExtension.LabelsEntryB\003\340A\001\022X\n" - + "\025load_balancing_scheme\030\006 \001(\01624.googl" - + "e.cloud.networkservices.v1.LoadBalancingSchemeB\003\340A\002\022\026\n" - + "\tauthority\030\007 \001(\tB\003\340A\002\022\024\n" + + "\006labels\030\005" + + " \003(\0132;.google.cloud.networkservices.v1.AuthzExtension.LabelsEntryB\003\340A\001\022X\n" + + "\025load_balancing_scheme\030\006 \001(\01624.google.clo" + + "ud.networkservices.v1.LoadBalancingSchemeB\003\340A\001\022\026\n" + + "\tauthority\030\007 \001(\tB\003\340A\001\022\024\n" + "\007service\030\010 \001(\tB\003\340A\002\022/\n" + "\007timeout\030\t \001(\0132\031.google.protobuf.DurationB\003\340A\002\022\026\n" + "\tfail_open\030\n" + " \001(\010B\003\340A\001\022.\n" + "\010metadata\030\013 \001(\0132\027.google.protobuf.StructB\003\340A\001\022\034\n" - + "\017forward_headers\030\014 \003(\tB\003\340A\001\022E\n" - + "\013wire_format\030\016 \001(\0162+.google.c" - + "loud.networkservices.v1.WireFormatB\003\340A\001\032-\n" + + "\017forward_headers\030\014 \003(\tB\003\340A\001\022\037\n" + + "\022forward_attributes\030\r" + + " \003(\tB\003\340A\001\022E\n" + + "\013wire_format\030\016" + + " \001(\0162+.google.cloud.networkservices.v1.WireFormatB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\237\001\352A\233\001\n" - + "-networkservices.googleapis.com/AuthzExtension\022Iprojects/{project}" - + "/locations/{location}/authzExtensions/{a" - + "uthz_extension}*\017authzExtensions2\016authzExtension\"\300\001\n" + + "-networkservices.googleapis.com/AuthzExtension\022Iprojects/{project}/locations/{" + + "location}/authzExtensions/{authz_extension}*\017authzExtensions2\016authzExtension\"\300\001\n" + "\032ListAuthzExtensionsRequest\022E\n" + "\006parent\030\001 \001(" + "\tB5\340A\002\372A/\022-networkservices.googleapis.com/AuthzExtension\022\026\n" @@ -417,13 +423,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB5\340A\002\372A/\022-networkservices.googleapis.com/AuthzExtension\022\037\n" + "\022authz_extension_id\030\002 \001(\tB\003\340A\002\022M\n" - + "\017authz_extension\030\003" - + " \001(\0132/.google.cloud.networkservices.v1.AuthzExtensionB\003\340A\002\022\037\n\n" + + "\017authz_extension\030\003 \001" + + "(\0132/.google.cloud.networkservices.v1.AuthzExtensionB\003\340A\002\022\037\n\n" + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\303\001\n" + "\033UpdateAuthzExtensionRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022M\n" - + "\017authz_extension\030\002" - + " \001(\0132/.google.cloud.networkservices.v1.AuthzExtensionB\003\340A\002\022\037\n\n" + + "\017authz_extension\030\002 \001(\013" + + "2/.google.cloud.networkservices.v1.AuthzExtensionB\003\340A\002\022\037\n\n" + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\203\001\n" + "\033DeleteAuthzExtensionRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" @@ -440,113 +446,117 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023LoadBalancingScheme\022%\n" + "!LOAD_BALANCING_SCHEME_UNSPECIFIED\020\000\022\024\n" + "\020INTERNAL_MANAGED\020\001\022\024\n" - + "\020EXTERNAL_MANAGED\020\002*<\n\n" + + "\020EXTERNAL_MANAGED\020\002*P\n\n" + "WireFormat\022\033\n" + "\027WIRE_FORMAT_UNSPECIFIED\020\000\022\021\n\r" - + "EXT_PROC_GRPC\020\0012\371\'\n\n" + + "EXT_PROC_GRPC\020\001\022\022\n" + + "\016EXT_AUTHZ_GRPC\020\003*t\n" + + "\014BodySendMode\022\036\n" + + "\032BODY_SEND_MODE_UNSPECIFIED\020\000\022\033\n" + + "\027BODY_SEND_MODE_STREAMED\020\001\022\'\n" + + "#BODY_SEND_MODE_FULL_DUPLEX_STREAMED\020\0022\371\'\n\n" + "DepService\022\346\001\n" - + "\027ListLbTrafficExtensions\022?.google.cloud.networkservic" - + "es.v1.ListLbTrafficExtensionsRequest\032@.google.cloud.networkservices.v1.ListLbTra" - + "fficExtensionsResponse\"H\332A\006parent\202\323\344\223\0029\022" - + "7/v1/{parent=projects/*/locations/*}/lbTrafficExtensions\022\323\001\n" - + "\025GetLbTrafficExtension\022=.google.cloud.networkservices.v1.Get" - + "LbTrafficExtensionRequest\0323.google.cloud.networkservices.v1.LbTrafficExtension\"F" - + "\332A\004name\202\323\344\223\0029\0227/v1/{name=projects/*/locations/*/lbTrafficExtensions/*}\022\263\002\n" - + "\030CreateLbTrafficExtension\022@.google.cloud.netwo" - + "rkservices.v1.CreateLbTrafficExtensionRe" - + "quest\032\035.google.longrunning.Operation\"\265\001\312A\'\n" - + "\022LbTrafficExtension\022\021OperationMetadat" - + "a\332A3parent,lb_traffic_extension,lb_traff" - + "ic_extension_id\202\323\344\223\002O\"7/v1/{parent=proje" - + "cts/*/locations/*}/lbTrafficExtensions:\024lb_traffic_extension\022\265\002\n" - + "\030UpdateLbTrafficExtension\022@.google.cloud.networkservices" - + ".v1.UpdateLbTrafficExtensionRequest\032\035.google.longrunning.Operation\"\267\001\312A\'\n" - + "\022LbTrafficExtension\022\021OperationMetadata\332A lb_tra" - + "ffic_extension,update_mask\202\323\344\223\002d2L/v1/{l" - + "b_traffic_extension.name=projects/*/loca" - + "tions/*/lbTrafficExtensions/*}:\024lb_traffic_extension\022\360\001\n" - + "\030DeleteLbTrafficExtension\022@.google.cloud.networkservices.v1.Dele" - + "teLbTrafficExtensionRequest\032\035.google.longrunning.Operation\"s\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\0029*7" - + "/v1/{name=projects/*/locations/*/lbTrafficExtensions/*}\022\336\001\n" - + "\025ListLbRouteExtensions\022=.google.cloud.networkservices.v1.List" - + "LbRouteExtensionsRequest\032>.google.cloud.networkservices.v1.ListLbRouteExtensions" - + "Response\"F\332A\006parent\202\323\344\223\0027\0225/v1/{parent=p" - + "rojects/*/locations/*}/lbRouteExtensions\022\313\001\n" - + "\023GetLbRouteExtension\022;.google.cloud.networkservices.v1.GetLbRouteExtensionRe" - + "quest\0321.google.cloud.networkservices.v1." - + "LbRouteExtension\"D\332A\004name\202\323\344\223\0027\0225/v1/{na" - + "me=projects/*/locations/*/lbRouteExtensions/*}\022\245\002\n" - + "\026CreateLbRouteExtension\022>.google.cloud.networkservices.v1.CreateLbRout" - + "eExtensionRequest\032\035.google.longrunning.Operation\"\253\001\312A%\n" - + "\020LbRouteExtension\022\021OperationMetadata\332A/parent,lb_route_extension," - + "lb_route_extension_id\202\323\344\223\002K\"5/v1/{parent" - + "=projects/*/locations/*}/lbRouteExtensions:\022lb_route_extension\022\247\002\n" - + "\026UpdateLbRouteExtension\022>.google.cloud.networkservices" - + ".v1.UpdateLbRouteExtensionRequest\032\035.google.longrunning.Operation\"\255\001\312A%\n" - + "\020LbRouteExtension\022\021OperationMetadata\332A\036lb_route_e" - + "xtension,update_mask\202\323\344\223\002^2H/v1/{lb_rout" - + "e_extension.name=projects/*/locations/*/" - + "lbRouteExtensions/*}:\022lb_route_extension\022\352\001\n" - + "\026DeleteLbRouteExtension\022>.google.cloud.networkservices.v1.DeleteLbRouteExten" - + "sionRequest\032\035.google.longrunning.Operation\"q\312A*\n" - + "\025google.protobuf.Empty\022\021Operatio" - + "nMetadata\332A\004name\202\323\344\223\0027*5/v1/{name=projec" - + "ts/*/locations/*/lbRouteExtensions/*}\022\332\001\n" - + "\024ListLbEdgeExtensions\022<.google.cloud.networkservices.v1.ListLbEdgeExtensionsReq" - + "uest\032=.google.cloud.networkservices.v1.L" - + "istLbEdgeExtensionsResponse\"E\332A\006parent\202\323" - + "\344\223\0026\0224/v1/{parent=projects/*/locations/*}/lbEdgeExtensions\022\307\001\n" - + "\022GetLbEdgeExtension\022:.google.cloud.networkservices.v1.GetL" - + "bEdgeExtensionRequest\0320.google.cloud.net" - + "workservices.v1.LbEdgeExtension\"C\332A\004name" - + "\202\323\344\223\0026\0224/v1/{name=projects/*/locations/*/lbEdgeExtensions/*}\022\236\002\n" - + "\025CreateLbEdgeExtension\022=.google.cloud.networkservices.v1" - + ".CreateLbEdgeExtensionRequest\032\035.google.longrunning.Operation\"\246\001\312A$\n" - + "\017LbEdgeExtension\022\021OperationMetadata\332A-parent,lb_edge_" - + "extension,lb_edge_extension_id\202\323\344\223\002I\"4/v" - + "1/{parent=projects/*/locations/*}/lbEdgeExtensions:\021lb_edge_extension\022\240\002\n" - + "\025UpdateLbEdgeExtension\022=.google.cloud.networkse" - + "rvices.v1.UpdateLbEdgeExtensionRequest\032\035.google.longrunning.Operation\"\250\001\312A$\n" - + "\017LbEdgeExtension\022\021OperationMetadata\332A\035lb_edg" - + "e_extension,update_mask\202\323\344\223\002[2F/v1/{lb_e" - + "dge_extension.name=projects/*/locations/" - + "*/lbEdgeExtensions/*}:\021lb_edge_extension\022\347\001\n" - + "\025DeleteLbEdgeExtension\022=.google.cloud.networkservices.v1.DeleteLbEdgeExtensi" - + "onRequest\032\035.google.longrunning.Operation\"p\312A*\n" - + "\025google.protobuf.Empty\022\021OperationM" - + "etadata\332A\004name\202\323\344\223\0026*4/v1/{name=projects/*/locations/*/lbEdgeExtensions/*}\022\326\001\n" - + "\023ListAuthzExtensions\022;.google.cloud.networ" - + "kservices.v1.ListAuthzExtensionsRequest\032<.google.cloud.networkservices.v1.ListAu" - + "thzExtensionsResponse\"D\332A\006parent\202\323\344\223\0025\0223" - + "/v1/{parent=projects/*/locations/*}/authzExtensions\022\303\001\n" - + "\021GetAuthzExtension\0229.google.cloud.networkservices.v1.GetAuthzExte" - + "nsionRequest\032/.google.cloud.networkservi" - + "ces.v1.AuthzExtension\"B\332A\004name\202\323\344\223\0025\0223/v" - + "1/{name=projects/*/locations/*/authzExtensions/*}\022\224\002\n" - + "\024CreateAuthzExtension\022<.google.cloud.networkservices.v1.CreateAuthz" - + "ExtensionRequest\032\035.google.longrunning.Operation\"\236\001\312A#\n" - + "\016AuthzExtension\022\021OperationMetadata\332A)parent,authz_extension,authz_" - + "extension_id\202\323\344\223\002F\"3/v1/{parent=projects" - + "/*/locations/*}/authzExtensions:\017authz_extension\022\226\002\n" - + "\024UpdateAuthzExtension\022<.google.cloud.networkservices.v1.UpdateAuthzE" - + "xtensionRequest\032\035.google.longrunning.Operation\"\240\001\312A#\n" - + "\016AuthzExtension\022\021OperationM" - + "etadata\332A\033authz_extension,update_mask\202\323\344" - + "\223\002V2C/v1/{authz_extension.name=projects/" - + "*/locations/*/authzExtensions/*}:\017authz_extension\022\344\001\n" - + "\024DeleteAuthzExtension\022<.google.cloud.networkservices.v1.DeleteAuthz" - + "ExtensionRequest\032\035.google.longrunning.Operation\"o\312A*\n" - + "\025google.protobuf.Empty\022\021Ope" - + "rationMetadata\332A\004name\202\323\344\223\0025*3/v1/{name=p" - + "rojects/*/locations/*/authzExtensions/*}" - + "\032R\312A\036networkservices.googleapis.com\322A.ht" - + "tps://www.googleapis.com/auth/cloud-platformB\351\001\n" - + "#com.google.cloud.networkservices.v1B\010DepProtoP\001ZMcloud.google.com/go/ne" - + "tworkservices/apiv1/networkservicespb;ne" - + "tworkservicespb\252\002\037Google.Cloud.NetworkSe" - + "rvices.V1\312\002\037Google\\Cloud\\NetworkServices" - + "\\V1\352\002\"Google::Cloud::NetworkServices::V1b\006proto3" + + "\027ListLbTrafficExtensions\022?.google.cloud.network" + + "services.v1.ListLbTrafficExtensionsRequest\032@.google.cloud.networkservices.v1.Lis" + + "tLbTrafficExtensionsResponse\"H\332A\006parent\202" + + "\323\344\223\0029\0227/v1/{parent=projects/*/locations/*}/lbTrafficExtensions\022\323\001\n" + + "\025GetLbTrafficExtension\022=.google.cloud.networkservices." + + "v1.GetLbTrafficExtensionRequest\0323.google.cloud.networkservices.v1.LbTrafficExten" + + "sion\"F\332A\004name\202\323\344\223\0029\0227/v1/{name=projects/*/locations/*/lbTrafficExtensions/*}\022\263\002\n" + + "\030CreateLbTrafficExtension\022@.google.cloud.networkservices.v1.CreateLbTrafficExten" + + "sionRequest\032\035.google.longrunning.Operation\"\265\001\312A\'\n" + + "\022LbTrafficExtension\022\021OperationMetadata\332A3parent,lb_traffic_extension,lb" + + "_traffic_extension_id\202\323\344\223\002O\"7/v1/{parent" + + "=projects/*/locations/*}/lbTrafficExtensions:\024lb_traffic_extension\022\265\002\n" + + "\030UpdateLbTrafficExtension\022@.google.cloud.networkse" + + "rvices.v1.UpdateLbTrafficExtensionRequest\032\035.google.longrunning.Operation\"\267\001\312A\'\n" + + "\022LbTrafficExtension\022\021OperationMetadata\332A " + + "lb_traffic_extension,update_mask\202\323\344\223\002d2L" + + "/v1/{lb_traffic_extension.name=projects/" + + "*/locations/*/lbTrafficExtensions/*}:\024lb_traffic_extension\022\360\001\n" + + "\030DeleteLbTrafficExtension\022@.google.cloud.networkservices.v" + + "1.DeleteLbTrafficExtensionRequest\032\035.google.longrunning.Operation\"s\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323" + + "\344\223\0029*7/v1/{name=projects/*/locations/*/lbTrafficExtensions/*}\022\336\001\n" + + "\025ListLbRouteExtensions\022=.google.cloud.networkservices.v" + + "1.ListLbRouteExtensionsRequest\032>.google.cloud.networkservices.v1.ListLbRouteExte" + + "nsionsResponse\"F\332A\006parent\202\323\344\223\0027\0225/v1/{pa" + + "rent=projects/*/locations/*}/lbRouteExtensions\022\313\001\n" + + "\023GetLbRouteExtension\022;.google.cloud.networkservices.v1.GetLbRouteExten" + + "sionRequest\0321.google.cloud.networkservic" + + "es.v1.LbRouteExtension\"D\332A\004name\202\323\344\223\0027\0225/" + + "v1/{name=projects/*/locations/*/lbRouteExtensions/*}\022\245\002\n" + + "\026CreateLbRouteExtension\022>.google.cloud.networkservices.v1.Create" + + "LbRouteExtensionRequest\032\035.google.longrunning.Operation\"\253\001\312A%\n" + + "\020LbRouteExtension\022\021OperationMetadata\332A/parent,lb_route_exte" + + "nsion,lb_route_extension_id\202\323\344\223\002K\"5/v1/{" + + "parent=projects/*/locations/*}/lbRouteExtensions:\022lb_route_extension\022\247\002\n" + + "\026UpdateLbRouteExtension\022>.google.cloud.networkse" + + "rvices.v1.UpdateLbRouteExtensionRequest\032\035.google.longrunning.Operation\"\255\001\312A%\n" + + "\020LbRouteExtension\022\021OperationMetadata\332A\036lb_r" + + "oute_extension,update_mask\202\323\344\223\002^2H/v1/{l" + + "b_route_extension.name=projects/*/locati" + + "ons/*/lbRouteExtensions/*}:\022lb_route_extension\022\352\001\n" + + "\026DeleteLbRouteExtension\022>.google.cloud.networkservices.v1.DeleteLbRout" + + "eExtensionRequest\032\035.google.longrunning.Operation\"q\312A*\n" + + "\025google.protobuf.Empty\022\021Op" + + "erationMetadata\332A\004name\202\323\344\223\0027*5/v1/{name=" + + "projects/*/locations/*/lbRouteExtensions/*}\022\332\001\n" + + "\024ListLbEdgeExtensions\022<.google.cloud.networkservices.v1.ListLbEdgeExtensi" + + "onsRequest\032=.google.cloud.networkservice" + + "s.v1.ListLbEdgeExtensionsResponse\"E\332A\006pa" + + "rent\202\323\344\223\0026\0224/v1/{parent=projects/*/locations/*}/lbEdgeExtensions\022\307\001\n" + + "\022GetLbEdgeExtension\022:.google.cloud.networkservices.v" + + "1.GetLbEdgeExtensionRequest\0320.google.clo" + + "ud.networkservices.v1.LbEdgeExtension\"C\332" + + "A\004name\202\323\344\223\0026\0224/v1/{name=projects/*/locations/*/lbEdgeExtensions/*}\022\236\002\n" + + "\025CreateLbEdgeExtension\022=.google.cloud.networkservi" + + "ces.v1.CreateLbEdgeExtensionRequest\032\035.google.longrunning.Operation\"\246\001\312A$\n" + + "\017LbEdgeExtension\022\021OperationMetadata\332A-parent,lb" + + "_edge_extension,lb_edge_extension_id\202\323\344\223" + + "\002I\"4/v1/{parent=projects/*/locations/*}/lbEdgeExtensions:\021lb_edge_extension\022\240\002\n" + + "\025UpdateLbEdgeExtension\022=.google.cloud.net" + + "workservices.v1.UpdateLbEdgeExtensionReq" + + "uest\032\035.google.longrunning.Operation\"\250\001\312A$\n" + + "\017LbEdgeExtension\022\021OperationMetadata\332A\035" + + "lb_edge_extension,update_mask\202\323\344\223\002[2F/v1" + + "/{lb_edge_extension.name=projects/*/loca" + + "tions/*/lbEdgeExtensions/*}:\021lb_edge_extension\022\347\001\n" + + "\025DeleteLbEdgeExtension\022=.google.cloud.networkservices.v1.DeleteLbEdgeE" + + "xtensionRequest\032\035.google.longrunning.Operation\"p\312A*\n" + + "\025google.protobuf.Empty\022\021Oper" + + "ationMetadata\332A\004name\202\323\344\223\0026*4/v1/{name=pr" + + "ojects/*/locations/*/lbEdgeExtensions/*}\022\326\001\n" + + "\023ListAuthzExtensions\022;.google.cloud.networkservices.v1.ListAuthzExtensionsRe" + + "quest\032<.google.cloud.networkservices.v1." + + "ListAuthzExtensionsResponse\"D\332A\006parent\202\323" + + "\344\223\0025\0223/v1/{parent=projects/*/locations/*}/authzExtensions\022\303\001\n" + + "\021GetAuthzExtension\0229.google.cloud.networkservices.v1.GetAut" + + "hzExtensionRequest\032/.google.cloud.networ" + + "kservices.v1.AuthzExtension\"B\332A\004name\202\323\344\223" + + "\0025\0223/v1/{name=projects/*/locations/*/authzExtensions/*}\022\224\002\n" + + "\024CreateAuthzExtension\022<.google.cloud.networkservices.v1.Creat" + + "eAuthzExtensionRequest\032\035.google.longrunning.Operation\"\236\001\312A#\n" + + "\016AuthzExtension\022\021OperationMetadata\332A)parent,authz_extension," + + "authz_extension_id\202\323\344\223\002F\"3/v1/{parent=pr" + + "ojects/*/locations/*}/authzExtensions:\017authz_extension\022\226\002\n" + + "\024UpdateAuthzExtension\022<.google.cloud.networkservices.v1.Update" + + "AuthzExtensionRequest\032\035.google.longrunning.Operation\"\240\001\312A#\n" + + "\016AuthzExtension\022\021OperationMetadata\332A\033authz_extension,update_m" + + "ask\202\323\344\223\002V2C/v1/{authz_extension.name=pro" + + "jects/*/locations/*/authzExtensions/*}:\017authz_extension\022\344\001\n" + + "\024DeleteAuthzExtension\022<.google.cloud.networkservices.v1.Delet" + + "eAuthzExtensionRequest\032\035.google.longrunning.Operation\"o\312A*\n" + + "\025google.protobuf.Empt" + + "y\022\021OperationMetadata\332A\004name\202\323\344\223\0025*3/v1/{" + + "name=projects/*/locations/*/authzExtensi" + + "ons/*}\032R\312A\036networkservices.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/cloud-platformB\351\001\n" + + "#com.google.cloud.networkservices.v1B\010DepProtoP\001ZMcloud.google.com" + + "/go/networkservices/apiv1/networkservice" + + "spb;networkservicespb\252\002\037Google.Cloud.Net" + + "workServices.V1\312\002\037Google\\Cloud\\NetworkSe" + + "rvices\\V1\352\002\"Google::Cloud::NetworkServices::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -594,7 +604,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Timeout", "FailOpen", "ForwardHeaders", + "ForwardAttributes", "Metadata", + "RequestBodySendMode", + "ResponseBodySendMode", + "ObservabilityMode", }); internal_static_google_cloud_networkservices_v1_LbTrafficExtension_descriptor = getDescriptor().getMessageType(1); @@ -831,6 +845,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FailOpen", "Metadata", "ForwardHeaders", + "ForwardAttributes", "WireFormat", }); internal_static_google_cloud_networkservices_v1_AuthzExtension_LabelsEntry_descriptor = diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EndpointPolicy.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EndpointPolicy.java index f7b35bf24392..0abfee0ddd5d 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EndpointPolicy.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EndpointPolicy.java @@ -275,7 +275,7 @@ private EndpointPolicyType(int value) { * *
    * Identifier. Name of the EndpointPolicy resource. It matches pattern
-   * `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.
+   * `projects/{project}/locations/*/endpointPolicies/{endpoint_policy}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -300,7 +300,7 @@ public java.lang.String getName() { * *
    * Identifier. Name of the EndpointPolicy resource. It matches pattern
-   * `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.
+   * `projects/{project}/locations/*/endpointPolicies/{endpoint_policy}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1609,7 +1609,7 @@ public Builder mergeFrom( * *
      * Identifier. Name of the EndpointPolicy resource. It matches pattern
-     * `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.
+     * `projects/{project}/locations/*/endpointPolicies/{endpoint_policy}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1633,7 +1633,7 @@ public java.lang.String getName() { * *
      * Identifier. Name of the EndpointPolicy resource. It matches pattern
-     * `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.
+     * `projects/{project}/locations/*/endpointPolicies/{endpoint_policy}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1657,7 +1657,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Identifier. Name of the EndpointPolicy resource. It matches pattern
-     * `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.
+     * `projects/{project}/locations/*/endpointPolicies/{endpoint_policy}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1680,7 +1680,7 @@ public Builder setName(java.lang.String value) { * *
      * Identifier. Name of the EndpointPolicy resource. It matches pattern
-     * `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.
+     * `projects/{project}/locations/*/endpointPolicies/{endpoint_policy}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1699,7 +1699,7 @@ public Builder clearName() { * *
      * Identifier. Name of the EndpointPolicy resource. It matches pattern
-     * `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.
+     * `projects/{project}/locations/*/endpointPolicies/{endpoint_policy}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EndpointPolicyOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EndpointPolicyOrBuilder.java index 409b3746e0c3..f2aadc9d17cf 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EndpointPolicyOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EndpointPolicyOrBuilder.java @@ -31,7 +31,7 @@ public interface EndpointPolicyOrBuilder * *
    * Identifier. Name of the EndpointPolicy resource. It matches pattern
-   * `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.
+   * `projects/{project}/locations/*/endpointPolicies/{endpoint_policy}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -45,7 +45,7 @@ public interface EndpointPolicyOrBuilder * *
    * Identifier. Name of the EndpointPolicy resource. It matches pattern
-   * `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.
+   * `projects/{project}/locations/*/endpointPolicies/{endpoint_policy}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EnvoyHeaders.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EnvoyHeaders.java index 7398388981f0..d4d78f4ef64d 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EnvoyHeaders.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EnvoyHeaders.java @@ -56,10 +56,10 @@ public enum EnvoyHeaders implements com.google.protobuf.ProtocolMessageEnum { * *
    * Envoy will insert default internal debug headers into upstream requests:
-   * x-envoy-attempt-count
-   * x-envoy-is-timeout-retry
-   * x-envoy-expected-rq-timeout-ms
-   * x-envoy-original-path
+   * x-envoy-attempt-count,
+   * x-envoy-is-timeout-retry,
+   * x-envoy-expected-rq-timeout-ms,
+   * x-envoy-original-path,
    * x-envoy-upstream-stream-duration-ms
    * 
* @@ -106,10 +106,10 @@ public enum EnvoyHeaders implements com.google.protobuf.ProtocolMessageEnum { * *
    * Envoy will insert default internal debug headers into upstream requests:
-   * x-envoy-attempt-count
-   * x-envoy-is-timeout-retry
-   * x-envoy-expected-rq-timeout-ms
-   * x-envoy-original-path
+   * x-envoy-attempt-count,
+   * x-envoy-is-timeout-retry,
+   * x-envoy-expected-rq-timeout-ms,
+   * x-envoy-original-path,
    * x-envoy-upstream-stream-duration-ms
    * 
* diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ExtensionChain.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ExtensionChain.java index 810a9c2448fd..6378da86ea58 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ExtensionChain.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ExtensionChain.java @@ -736,15 +736,17 @@ public interface ExtensionOrBuilder * * *
-     * Required. The name for this extension.
+     * Optional. The name for this extension.
      * The name is logged as part of the HTTP request logs.
      * The name must conform with RFC-1034, is restricted to lower-cased
      * letters, numbers and hyphens, and can have a maximum length of 63
      * characters. Additionally, the first character must be a letter and the
      * last a letter or a number.
+     *
+     * This field is required except for AuthzExtension.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The name. */ @@ -754,15 +756,17 @@ public interface ExtensionOrBuilder * * *
-     * Required. The name for this extension.
+     * Optional. The name for this extension.
      * The name is logged as part of the HTTP request logs.
      * The name must conform with RFC-1034, is restricted to lower-cased
      * letters, numbers and hyphens, and can have a maximum length of 63
      * characters. Additionally, the first character must be a letter and the
      * last a letter or a number.
+     *
+     * This field is required except for AuthzExtension.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for name. */ @@ -886,6 +890,10 @@ public interface ExtensionOrBuilder * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -910,6 +918,10 @@ public interface ExtensionOrBuilder * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -934,6 +946,10 @@ public interface ExtensionOrBuilder * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -959,6 +975,10 @@ public interface ExtensionOrBuilder * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -983,6 +1003,10 @@ public interface ExtensionOrBuilder * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -1134,6 +1158,96 @@ public interface ExtensionOrBuilder */ com.google.protobuf.ByteString getForwardHeadersBytes(int index); + /** + * + * + *
+     * Optional. List of the Envoy attributes to forward to the extension
+     * server. The attributes provided here are included as part of the
+     * `ProcessingRequest.attributes` field (of type
+     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+     * names. Refer to the
+     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+     * for the names of attributes that can be forwarded. If omitted, no
+     * attributes are sent. Each element is a string indicating the
+     * attribute name.
+     * 
+ * + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the forwardAttributes. + */ + java.util.List getForwardAttributesList(); + + /** + * + * + *
+     * Optional. List of the Envoy attributes to forward to the extension
+     * server. The attributes provided here are included as part of the
+     * `ProcessingRequest.attributes` field (of type
+     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+     * names. Refer to the
+     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+     * for the names of attributes that can be forwarded. If omitted, no
+     * attributes are sent. Each element is a string indicating the
+     * attribute name.
+     * 
+ * + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of forwardAttributes. + */ + int getForwardAttributesCount(); + + /** + * + * + *
+     * Optional. List of the Envoy attributes to forward to the extension
+     * server. The attributes provided here are included as part of the
+     * `ProcessingRequest.attributes` field (of type
+     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+     * names. Refer to the
+     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+     * for the names of attributes that can be forwarded. If omitted, no
+     * attributes are sent. Each element is a string indicating the
+     * attribute name.
+     * 
+ * + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The forwardAttributes at the given index. + */ + java.lang.String getForwardAttributes(int index); + + /** + * + * + *
+     * Optional. List of the Envoy attributes to forward to the extension
+     * server. The attributes provided here are included as part of the
+     * `ProcessingRequest.attributes` field (of type
+     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+     * names. Refer to the
+     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+     * for the names of attributes that can be forwarded. If omitted, no
+     * attributes are sent. Each element is a string indicating the
+     * attribute name.
+     * 
+ * + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the forwardAttributes at the given index. + */ + com.google.protobuf.ByteString getForwardAttributesBytes(int index); + /** * * @@ -1142,7 +1256,10 @@ public interface ExtensionOrBuilder * `metadata_context` (of type `google.protobuf.Struct`) in the * `ProcessingRequest` message sent to the extension server. * - * The metadata is available under the namespace + * For `AuthzExtension` resources, the metadata is available under the + * namespace `com.google.authz_extension.<resource_name>`. + * For other types of extensions, the metadata is available under the + * namespace * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`. * For example: * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. @@ -1182,7 +1299,10 @@ public interface ExtensionOrBuilder * `metadata_context` (of type `google.protobuf.Struct`) in the * `ProcessingRequest` message sent to the extension server. * - * The metadata is available under the namespace + * For `AuthzExtension` resources, the metadata is available under the + * namespace `com.google.authz_extension.<resource_name>`. + * For other types of extensions, the metadata is available under the + * namespace * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`. * For example: * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. @@ -1222,7 +1342,10 @@ public interface ExtensionOrBuilder * `metadata_context` (of type `google.protobuf.Struct`) in the * `ProcessingRequest` message sent to the extension server. * - * The metadata is available under the namespace + * For `AuthzExtension` resources, the metadata is available under the + * namespace `com.google.authz_extension.<resource_name>`. + * For other types of extensions, the metadata is available under the + * namespace * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`. * For example: * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. @@ -1251,6 +1374,133 @@ public interface ExtensionOrBuilder * .google.protobuf.Struct metadata = 9 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); + + /** + * + * + *
+     * Optional. Configures the send mode for request body processing.
+     *
+     * The field can only be set if `supported_events` includes `REQUEST_BODY`.
+     * If `supported_events` includes `REQUEST_BODY`,
+     * but `request_body_send_mode` is unset, the default value `STREAMED` is
+     * used.
+     *
+     * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
+     * must include both `REQUEST_BODY` and `REQUEST_TRAILERS`.
+     *
+     * This field can be set only for `LbTrafficExtension` and
+     * `LbRouteExtension` resources, and only when the `service` field of the
+     * extension points to a `BackendService`. Only `FULL_DUPLEX_STREAMED` mode
+     * is supported for `LbRouteExtension` resources.
+     * 
+ * + * + * .google.cloud.networkservices.v1.BodySendMode request_body_send_mode = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for requestBodySendMode. + */ + int getRequestBodySendModeValue(); + + /** + * + * + *
+     * Optional. Configures the send mode for request body processing.
+     *
+     * The field can only be set if `supported_events` includes `REQUEST_BODY`.
+     * If `supported_events` includes `REQUEST_BODY`,
+     * but `request_body_send_mode` is unset, the default value `STREAMED` is
+     * used.
+     *
+     * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
+     * must include both `REQUEST_BODY` and `REQUEST_TRAILERS`.
+     *
+     * This field can be set only for `LbTrafficExtension` and
+     * `LbRouteExtension` resources, and only when the `service` field of the
+     * extension points to a `BackendService`. Only `FULL_DUPLEX_STREAMED` mode
+     * is supported for `LbRouteExtension` resources.
+     * 
+ * + * + * .google.cloud.networkservices.v1.BodySendMode request_body_send_mode = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestBodySendMode. + */ + com.google.cloud.networkservices.v1.BodySendMode getRequestBodySendMode(); + + /** + * + * + *
+     * Optional. Configures the send mode for response processing. If
+     * unspecified, the default value `STREAMED` is used.
+     *
+     * The field can only be set if `supported_events` includes `RESPONSE_BODY`.
+     * If `supported_events` includes `RESPONSE_BODY`, but
+     * `response_body_send_mode` is unset, the default value `STREAMED` is used.
+     *
+     * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
+     * must include both `RESPONSE_BODY` and `RESPONSE_TRAILERS`.
+     *
+     * This field can be set only for `LbTrafficExtension` resources, and only
+     * when the `service` field of the extension points to a `BackendService`.
+     * 
+ * + * + * .google.cloud.networkservices.v1.BodySendMode response_body_send_mode = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for responseBodySendMode. + */ + int getResponseBodySendModeValue(); + + /** + * + * + *
+     * Optional. Configures the send mode for response processing. If
+     * unspecified, the default value `STREAMED` is used.
+     *
+     * The field can only be set if `supported_events` includes `RESPONSE_BODY`.
+     * If `supported_events` includes `RESPONSE_BODY`, but
+     * `response_body_send_mode` is unset, the default value `STREAMED` is used.
+     *
+     * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
+     * must include both `RESPONSE_BODY` and `RESPONSE_TRAILERS`.
+     *
+     * This field can be set only for `LbTrafficExtension` resources, and only
+     * when the `service` field of the extension points to a `BackendService`.
+     * 
+ * + * + * .google.cloud.networkservices.v1.BodySendMode response_body_send_mode = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The responseBodySendMode. + */ + com.google.cloud.networkservices.v1.BodySendMode getResponseBodySendMode(); + + /** + * + * + *
+     * Optional. When set to `true`, the calls to the extension backend are
+     * performed asynchronously, without pausing the processing of the ongoing
+     * request. In this mode, only `STREAMED` (default) body processing is
+     * supported. Responses, if any, are ignored.
+     *
+     * Supported by regional `LbTrafficExtension` and `LbRouteExtension`
+     * resources.
+     * 
+ * + * bool observability_mode = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The observabilityMode. + */ + boolean getObservabilityMode(); } /** @@ -1289,6 +1539,9 @@ private Extension() { service_ = ""; supportedEvents_ = emptyIntList(); forwardHeaders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + forwardAttributes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + requestBodySendMode_ = 0; + responseBodySendMode_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -1316,15 +1569,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * Required. The name for this extension.
+     * Optional. The name for this extension.
      * The name is logged as part of the HTTP request logs.
      * The name must conform with RFC-1034, is restricted to lower-cased
      * letters, numbers and hyphens, and can have a maximum length of 63
      * characters. Additionally, the first character must be a letter and the
      * last a letter or a number.
+     *
+     * This field is required except for AuthzExtension.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The name. */ @@ -1345,15 +1600,17 @@ public java.lang.String getName() { * * *
-     * Required. The name for this extension.
+     * Optional. The name for this extension.
      * The name is logged as part of the HTTP request logs.
      * The name must conform with RFC-1034, is restricted to lower-cased
      * letters, numbers and hyphens, and can have a maximum length of 63
      * characters. Additionally, the first character must be a letter and the
      * last a letter or a number.
+     *
+     * This field is required except for AuthzExtension.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for name. */ @@ -1561,6 +1818,10 @@ public com.google.cloud.networkservices.v1.EventType convert(int from) { * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -1590,6 +1851,10 @@ public java.util.List getSupporte * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -1617,6 +1882,10 @@ public int getSupportedEventsCount() { * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -1645,6 +1914,10 @@ public com.google.cloud.networkservices.v1.EventType getSupportedEvents(int inde * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -1672,6 +1945,10 @@ public java.util.List getSupportedEventsValueList() { * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -1860,6 +2137,110 @@ public com.google.protobuf.ByteString getForwardHeadersBytes(int index) { return forwardHeaders_.getByteString(index); } + public static final int FORWARD_ATTRIBUTES_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList forwardAttributes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * Optional. List of the Envoy attributes to forward to the extension
+     * server. The attributes provided here are included as part of the
+     * `ProcessingRequest.attributes` field (of type
+     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+     * names. Refer to the
+     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+     * for the names of attributes that can be forwarded. If omitted, no
+     * attributes are sent. Each element is a string indicating the
+     * attribute name.
+     * 
+ * + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the forwardAttributes. + */ + public com.google.protobuf.ProtocolStringList getForwardAttributesList() { + return forwardAttributes_; + } + + /** + * + * + *
+     * Optional. List of the Envoy attributes to forward to the extension
+     * server. The attributes provided here are included as part of the
+     * `ProcessingRequest.attributes` field (of type
+     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+     * names. Refer to the
+     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+     * for the names of attributes that can be forwarded. If omitted, no
+     * attributes are sent. Each element is a string indicating the
+     * attribute name.
+     * 
+ * + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of forwardAttributes. + */ + public int getForwardAttributesCount() { + return forwardAttributes_.size(); + } + + /** + * + * + *
+     * Optional. List of the Envoy attributes to forward to the extension
+     * server. The attributes provided here are included as part of the
+     * `ProcessingRequest.attributes` field (of type
+     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+     * names. Refer to the
+     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+     * for the names of attributes that can be forwarded. If omitted, no
+     * attributes are sent. Each element is a string indicating the
+     * attribute name.
+     * 
+ * + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The forwardAttributes at the given index. + */ + public java.lang.String getForwardAttributes(int index) { + return forwardAttributes_.get(index); + } + + /** + * + * + *
+     * Optional. List of the Envoy attributes to forward to the extension
+     * server. The attributes provided here are included as part of the
+     * `ProcessingRequest.attributes` field (of type
+     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+     * names. Refer to the
+     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+     * for the names of attributes that can be forwarded. If omitted, no
+     * attributes are sent. Each element is a string indicating the
+     * attribute name.
+     * 
+ * + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the forwardAttributes at the given index. + */ + public com.google.protobuf.ByteString getForwardAttributesBytes(int index) { + return forwardAttributes_.getByteString(index); + } + public static final int METADATA_FIELD_NUMBER = 9; private com.google.protobuf.Struct metadata_; @@ -1871,7 +2252,10 @@ public com.google.protobuf.ByteString getForwardHeadersBytes(int index) { * `metadata_context` (of type `google.protobuf.Struct`) in the * `ProcessingRequest` message sent to the extension server. * - * The metadata is available under the namespace + * For `AuthzExtension` resources, the metadata is available under the + * namespace `com.google.authz_extension.<resource_name>`. + * For other types of extensions, the metadata is available under the + * namespace * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`. * For example: * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. @@ -1914,7 +2298,10 @@ public boolean hasMetadata() { * `metadata_context` (of type `google.protobuf.Struct`) in the * `ProcessingRequest` message sent to the extension server. * - * The metadata is available under the namespace + * For `AuthzExtension` resources, the metadata is available under the + * namespace `com.google.authz_extension.<resource_name>`. + * For other types of extensions, the metadata is available under the + * namespace * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`. * For example: * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. @@ -1957,7 +2344,10 @@ public com.google.protobuf.Struct getMetadata() { * `metadata_context` (of type `google.protobuf.Struct`) in the * `ProcessingRequest` message sent to the extension server. * - * The metadata is available under the namespace + * For `AuthzExtension` resources, the metadata is available under the + * namespace `com.google.authz_extension.<resource_name>`. + * For other types of extensions, the metadata is available under the + * namespace * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`. * For example: * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. @@ -1990,67 +2380,242 @@ public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; } - private byte memoizedIsInitialized = -1; + public static final int REQUEST_BODY_SEND_MODE_FIELD_NUMBER = 14; + private int requestBodySendMode_ = 0; + /** + * + * + *
+     * Optional. Configures the send mode for request body processing.
+     *
+     * The field can only be set if `supported_events` includes `REQUEST_BODY`.
+     * If `supported_events` includes `REQUEST_BODY`,
+     * but `request_body_send_mode` is unset, the default value `STREAMED` is
+     * used.
+     *
+     * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
+     * must include both `REQUEST_BODY` and `REQUEST_TRAILERS`.
+     *
+     * This field can be set only for `LbTrafficExtension` and
+     * `LbRouteExtension` resources, and only when the `service` field of the
+     * extension points to a `BackendService`. Only `FULL_DUPLEX_STREAMED` mode
+     * is supported for `LbRouteExtension` resources.
+     * 
+ * + * + * .google.cloud.networkservices.v1.BodySendMode request_body_send_mode = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for requestBodySendMode. + */ @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + public int getRequestBodySendModeValue() { + return requestBodySendMode_; } + /** + * + * + *
+     * Optional. Configures the send mode for request body processing.
+     *
+     * The field can only be set if `supported_events` includes `REQUEST_BODY`.
+     * If `supported_events` includes `REQUEST_BODY`,
+     * but `request_body_send_mode` is unset, the default value `STREAMED` is
+     * used.
+     *
+     * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
+     * must include both `REQUEST_BODY` and `REQUEST_TRAILERS`.
+     *
+     * This field can be set only for `LbTrafficExtension` and
+     * `LbRouteExtension` resources, and only when the `service` field of the
+     * extension points to a `BackendService`. Only `FULL_DUPLEX_STREAMED` mode
+     * is supported for `LbRouteExtension` resources.
+     * 
+ * + * + * .google.cloud.networkservices.v1.BodySendMode request_body_send_mode = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestBodySendMode. + */ @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authority_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, authority_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(service_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, service_); - } - if (getSupportedEventsList().size() > 0) { - output.writeUInt32NoTag(34); - output.writeUInt32NoTag(supportedEventsMemoizedSerializedSize); - } - for (int i = 0; i < supportedEvents_.size(); i++) { - output.writeEnumNoTag(supportedEvents_.getInt(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(5, getTimeout()); - } - if (failOpen_ != false) { - output.writeBool(6, failOpen_); - } - for (int i = 0; i < forwardHeaders_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 7, forwardHeaders_.getRaw(i)); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(9, getMetadata()); - } - getUnknownFields().writeTo(output); + public com.google.cloud.networkservices.v1.BodySendMode getRequestBodySendMode() { + com.google.cloud.networkservices.v1.BodySendMode result = + com.google.cloud.networkservices.v1.BodySendMode.forNumber(requestBodySendMode_); + return result == null + ? com.google.cloud.networkservices.v1.BodySendMode.UNRECOGNIZED + : result; } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static final int RESPONSE_BODY_SEND_MODE_FIELD_NUMBER = 15; + private int responseBodySendMode_ = 0; - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authority_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, authority_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(service_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, service_); - } + /** + * + * + *
+     * Optional. Configures the send mode for response processing. If
+     * unspecified, the default value `STREAMED` is used.
+     *
+     * The field can only be set if `supported_events` includes `RESPONSE_BODY`.
+     * If `supported_events` includes `RESPONSE_BODY`, but
+     * `response_body_send_mode` is unset, the default value `STREAMED` is used.
+     *
+     * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
+     * must include both `RESPONSE_BODY` and `RESPONSE_TRAILERS`.
+     *
+     * This field can be set only for `LbTrafficExtension` resources, and only
+     * when the `service` field of the extension points to a `BackendService`.
+     * 
+ * + * + * .google.cloud.networkservices.v1.BodySendMode response_body_send_mode = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for responseBodySendMode. + */ + @java.lang.Override + public int getResponseBodySendModeValue() { + return responseBodySendMode_; + } + + /** + * + * + *
+     * Optional. Configures the send mode for response processing. If
+     * unspecified, the default value `STREAMED` is used.
+     *
+     * The field can only be set if `supported_events` includes `RESPONSE_BODY`.
+     * If `supported_events` includes `RESPONSE_BODY`, but
+     * `response_body_send_mode` is unset, the default value `STREAMED` is used.
+     *
+     * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
+     * must include both `RESPONSE_BODY` and `RESPONSE_TRAILERS`.
+     *
+     * This field can be set only for `LbTrafficExtension` resources, and only
+     * when the `service` field of the extension points to a `BackendService`.
+     * 
+ * + * + * .google.cloud.networkservices.v1.BodySendMode response_body_send_mode = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The responseBodySendMode. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.BodySendMode getResponseBodySendMode() { + com.google.cloud.networkservices.v1.BodySendMode result = + com.google.cloud.networkservices.v1.BodySendMode.forNumber(responseBodySendMode_); + return result == null + ? com.google.cloud.networkservices.v1.BodySendMode.UNRECOGNIZED + : result; + } + + public static final int OBSERVABILITY_MODE_FIELD_NUMBER = 16; + private boolean observabilityMode_ = false; + + /** + * + * + *
+     * Optional. When set to `true`, the calls to the extension backend are
+     * performed asynchronously, without pausing the processing of the ongoing
+     * request. In this mode, only `STREAMED` (default) body processing is
+     * supported. Responses, if any, are ignored.
+     *
+     * Supported by regional `LbTrafficExtension` and `LbRouteExtension`
+     * resources.
+     * 
+ * + * bool observability_mode = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The observabilityMode. + */ + @java.lang.Override + public boolean getObservabilityMode() { + return observabilityMode_; + } + + 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 { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authority_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, authority_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(service_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, service_); + } + if (getSupportedEventsList().size() > 0) { + output.writeUInt32NoTag(34); + output.writeUInt32NoTag(supportedEventsMemoizedSerializedSize); + } + for (int i = 0; i < supportedEvents_.size(); i++) { + output.writeEnumNoTag(supportedEvents_.getInt(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getTimeout()); + } + if (failOpen_ != false) { + output.writeBool(6, failOpen_); + } + for (int i = 0; i < forwardHeaders_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, forwardHeaders_.getRaw(i)); + } + for (int i = 0; i < forwardAttributes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, forwardAttributes_.getRaw(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(9, getMetadata()); + } + if (requestBodySendMode_ + != com.google.cloud.networkservices.v1.BodySendMode.BODY_SEND_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(14, requestBodySendMode_); + } + if (responseBodySendMode_ + != com.google.cloud.networkservices.v1.BodySendMode.BODY_SEND_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(15, responseBodySendMode_); + } + if (observabilityMode_ != false) { + output.writeBool(16, observabilityMode_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authority_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, authority_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(service_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, service_); + } { int dataSize = 0; for (int i = 0; i < supportedEvents_.size(); i++) { @@ -2079,9 +2644,30 @@ public int getSerializedSize() { size += dataSize; size += 1 * getForwardHeadersList().size(); } + { + int dataSize = 0; + for (int i = 0; i < forwardAttributes_.size(); i++) { + dataSize += computeStringSizeNoTag(forwardAttributes_.getRaw(i)); + } + size += dataSize; + size += 1 * getForwardAttributesList().size(); + } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getMetadata()); } + if (requestBodySendMode_ + != com.google.cloud.networkservices.v1.BodySendMode.BODY_SEND_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, requestBodySendMode_); + } + if (responseBodySendMode_ + != com.google.cloud.networkservices.v1.BodySendMode.BODY_SEND_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, responseBodySendMode_); + } + if (observabilityMode_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, observabilityMode_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2108,10 +2694,14 @@ public boolean equals(final java.lang.Object obj) { } if (getFailOpen() != other.getFailOpen()) return false; if (!getForwardHeadersList().equals(other.getForwardHeadersList())) return false; + if (!getForwardAttributesList().equals(other.getForwardAttributesList())) return false; if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { if (!getMetadata().equals(other.getMetadata())) return false; } + if (requestBodySendMode_ != other.requestBodySendMode_) return false; + if (responseBodySendMode_ != other.responseBodySendMode_) return false; + if (getObservabilityMode() != other.getObservabilityMode()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2143,10 +2733,20 @@ public int hashCode() { hash = (37 * hash) + FORWARD_HEADERS_FIELD_NUMBER; hash = (53 * hash) + getForwardHeadersList().hashCode(); } + if (getForwardAttributesCount() > 0) { + hash = (37 * hash) + FORWARD_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getForwardAttributesList().hashCode(); + } if (hasMetadata()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } + hash = (37 * hash) + REQUEST_BODY_SEND_MODE_FIELD_NUMBER; + hash = (53 * hash) + requestBodySendMode_; + hash = (37 * hash) + RESPONSE_BODY_SEND_MODE_FIELD_NUMBER; + hash = (53 * hash) + responseBodySendMode_; + hash = (37 * hash) + OBSERVABILITY_MODE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getObservabilityMode()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2309,11 +2909,15 @@ public Builder clear() { } failOpen_ = false; forwardHeaders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + forwardAttributes_ = com.google.protobuf.LazyStringArrayList.emptyList(); metadata_ = null; if (metadataBuilder_ != null) { metadataBuilder_.dispose(); metadataBuilder_ = null; } + requestBodySendMode_ = 0; + responseBodySendMode_ = 0; + observabilityMode_ = false; return this; } @@ -2378,9 +2982,22 @@ private void buildPartial0( result.forwardHeaders_ = forwardHeaders_; } if (((from_bitField0_ & 0x00000080) != 0)) { + forwardAttributes_.makeImmutable(); + result.forwardAttributes_ = forwardAttributes_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.requestBodySendMode_ = requestBodySendMode_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.responseBodySendMode_ = responseBodySendMode_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.observabilityMode_ = observabilityMode_; + } result.bitField0_ |= to_bitField0_; } @@ -2440,9 +3057,28 @@ public Builder mergeFrom(com.google.cloud.networkservices.v1.ExtensionChain.Exte } onChanged(); } + if (!other.forwardAttributes_.isEmpty()) { + if (forwardAttributes_.isEmpty()) { + forwardAttributes_ = other.forwardAttributes_; + bitField0_ |= 0x00000080; + } else { + ensureForwardAttributesIsMutable(); + forwardAttributes_.addAll(other.forwardAttributes_); + } + onChanged(); + } if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } + if (other.requestBodySendMode_ != 0) { + setRequestBodySendModeValue(other.getRequestBodySendModeValue()); + } + if (other.responseBodySendMode_ != 0) { + setResponseBodySendModeValue(other.getResponseBodySendModeValue()); + } + if (other.getObservabilityMode() != false) { + setObservabilityMode(other.getObservabilityMode()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2525,13 +3161,38 @@ public Builder mergeFrom( forwardHeaders_.add(s); break; } // case 58 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureForwardAttributesIsMutable(); + forwardAttributes_.add(s); + break; + } // case 66 case 74: { input.readMessage( internalGetMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 74 + case 112: + { + requestBodySendMode_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 112 + case 120: + { + responseBodySendMode_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 120 + case 128: + { + observabilityMode_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 128 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2557,15 +3218,17 @@ public Builder mergeFrom( * * *
-       * Required. The name for this extension.
+       * Optional. The name for this extension.
        * The name is logged as part of the HTTP request logs.
        * The name must conform with RFC-1034, is restricted to lower-cased
        * letters, numbers and hyphens, and can have a maximum length of 63
        * characters. Additionally, the first character must be a letter and the
        * last a letter or a number.
+       *
+       * This field is required except for AuthzExtension.
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The name. */ @@ -2585,15 +3248,17 @@ public java.lang.String getName() { * * *
-       * Required. The name for this extension.
+       * Optional. The name for this extension.
        * The name is logged as part of the HTTP request logs.
        * The name must conform with RFC-1034, is restricted to lower-cased
        * letters, numbers and hyphens, and can have a maximum length of 63
        * characters. Additionally, the first character must be a letter and the
        * last a letter or a number.
+       *
+       * This field is required except for AuthzExtension.
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for name. */ @@ -2613,15 +3278,17 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-       * Required. The name for this extension.
+       * Optional. The name for this extension.
        * The name is logged as part of the HTTP request logs.
        * The name must conform with RFC-1034, is restricted to lower-cased
        * letters, numbers and hyphens, and can have a maximum length of 63
        * characters. Additionally, the first character must be a letter and the
        * last a letter or a number.
+       *
+       * This field is required except for AuthzExtension.
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The name to set. * @return This builder for chaining. @@ -2640,15 +3307,17 @@ public Builder setName(java.lang.String value) { * * *
-       * Required. The name for this extension.
+       * Optional. The name for this extension.
        * The name is logged as part of the HTTP request logs.
        * The name must conform with RFC-1034, is restricted to lower-cased
        * letters, numbers and hyphens, and can have a maximum length of 63
        * characters. Additionally, the first character must be a letter and the
        * last a letter or a number.
+       *
+       * This field is required except for AuthzExtension.
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2663,15 +3332,17 @@ public Builder clearName() { * * *
-       * Required. The name for this extension.
+       * Optional. The name for this extension.
        * The name is logged as part of the HTTP request logs.
        * The name must conform with RFC-1034, is restricted to lower-cased
        * letters, numbers and hyphens, and can have a maximum length of 63
        * characters. Additionally, the first character must be a letter and the
        * last a letter or a number.
+       *
+       * This field is required except for AuthzExtension.
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -3062,6 +3733,10 @@ private void ensureSupportedEventsIsMutable() { * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -3091,6 +3766,10 @@ private void ensureSupportedEventsIsMutable() { * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -3117,6 +3796,10 @@ public int getSupportedEventsCount() { * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -3144,6 +3827,10 @@ public com.google.cloud.networkservices.v1.EventType getSupportedEvents(int inde * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -3179,6 +3866,10 @@ public Builder setSupportedEvents( * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -3212,6 +3903,10 @@ public Builder addSupportedEvents(com.google.cloud.networkservices.v1.EventType * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -3245,6 +3940,10 @@ public Builder addAllSupportedEvents( * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -3274,6 +3973,10 @@ public Builder clearSupportedEvents() { * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -3301,6 +4004,10 @@ public java.util.List getSupportedEventsValueList() { * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -3328,6 +4035,10 @@ public int getSupportedEventsValue(int index) { * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -3359,6 +4070,10 @@ public Builder setSupportedEventsValue(int index, int value) { * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -3389,6 +4104,10 @@ public Builder addSupportedEventsValue(int value) { * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -3947,112 +4666,385 @@ public Builder addForwardHeadersBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.Struct metadata_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - metadataBuilder_; + private com.google.protobuf.LazyStringArrayList forwardAttributes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureForwardAttributesIsMutable() { + if (!forwardAttributes_.isModifiable()) { + forwardAttributes_ = new com.google.protobuf.LazyStringArrayList(forwardAttributes_); + } + bitField0_ |= 0x00000080; + } /** * * *
-       * Optional. The metadata provided here is included as part of the
-       * `metadata_context` (of type `google.protobuf.Struct`) in the
-       * `ProcessingRequest` message sent to the extension server.
-       *
-       * The metadata is available under the namespace
-       * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`.
-       * For example:
-       * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`.
-       *
-       * The following variables are supported in the metadata:
-       *
-       * `{forwarding_rule_id}` - substituted with the forwarding rule's fully
-       * qualified resource name.
+       * Optional. List of the Envoy attributes to forward to the extension
+       * server. The attributes provided here are included as part of the
+       * `ProcessingRequest.attributes` field (of type
+       * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+       * names. Refer to the
+       * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+       * for the names of attributes that can be forwarded. If omitted, no
+       * attributes are sent. Each element is a string indicating the
+       * attribute name.
+       * 
* - * This field must not be set for plugin extensions. Setting it results in - * a validation error. + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * - * You can set metadata at either the resource level or the extension level. - * The extension level metadata is recommended because you can pass a - * different set of metadata through each extension to the backend. + * @return A list containing the forwardAttributes. + */ + public com.google.protobuf.ProtocolStringList getForwardAttributesList() { + forwardAttributes_.makeImmutable(); + return forwardAttributes_; + } + + /** * - * This field is subject to following limitations: * - * * The total size of the metadata must be less than 1KiB. - * * The total number of keys in the metadata must be less than 16. - * * The length of each key must be less than 64 characters. - * * The length of each value must be less than 1024 characters. - * * All values must be strings. + *
+       * Optional. List of the Envoy attributes to forward to the extension
+       * server. The attributes provided here are included as part of the
+       * `ProcessingRequest.attributes` field (of type
+       * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+       * names. Refer to the
+       * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+       * for the names of attributes that can be forwarded. If omitted, no
+       * attributes are sent. Each element is a string indicating the
+       * attribute name.
        * 
* - * .google.protobuf.Struct metadata = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the metadata field is set. + * @return The count of forwardAttributes. */ - public boolean hasMetadata() { - return ((bitField0_ & 0x00000080) != 0); + public int getForwardAttributesCount() { + return forwardAttributes_.size(); } /** * * *
-       * Optional. The metadata provided here is included as part of the
-       * `metadata_context` (of type `google.protobuf.Struct`) in the
-       * `ProcessingRequest` message sent to the extension server.
+       * Optional. List of the Envoy attributes to forward to the extension
+       * server. The attributes provided here are included as part of the
+       * `ProcessingRequest.attributes` field (of type
+       * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+       * names. Refer to the
+       * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+       * for the names of attributes that can be forwarded. If omitted, no
+       * attributes are sent. Each element is a string indicating the
+       * attribute name.
+       * 
* - * The metadata is available under the namespace - * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`. - * For example: - * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * - * The following variables are supported in the metadata: + * @param index The index of the element to return. + * @return The forwardAttributes at the given index. + */ + public java.lang.String getForwardAttributes(int index) { + return forwardAttributes_.get(index); + } + + /** * - * `{forwarding_rule_id}` - substituted with the forwarding rule's fully - * qualified resource name. * - * This field must not be set for plugin extensions. Setting it results in - * a validation error. + *
+       * Optional. List of the Envoy attributes to forward to the extension
+       * server. The attributes provided here are included as part of the
+       * `ProcessingRequest.attributes` field (of type
+       * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+       * names. Refer to the
+       * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+       * for the names of attributes that can be forwarded. If omitted, no
+       * attributes are sent. Each element is a string indicating the
+       * attribute name.
+       * 
* - * You can set metadata at either the resource level or the extension level. - * The extension level metadata is recommended because you can pass a - * different set of metadata through each extension to the backend. + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * - * This field is subject to following limitations: + * @param index The index of the value to return. + * @return The bytes of the forwardAttributes at the given index. + */ + public com.google.protobuf.ByteString getForwardAttributesBytes(int index) { + return forwardAttributes_.getByteString(index); + } + + /** * - * * The total size of the metadata must be less than 1KiB. - * * The total number of keys in the metadata must be less than 16. - * * The length of each key must be less than 64 characters. - * * The length of each value must be less than 1024 characters. - * * All values must be strings. + * + *
+       * Optional. List of the Envoy attributes to forward to the extension
+       * server. The attributes provided here are included as part of the
+       * `ProcessingRequest.attributes` field (of type
+       * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+       * names. Refer to the
+       * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+       * for the names of attributes that can be forwarded. If omitted, no
+       * attributes are sent. Each element is a string indicating the
+       * attribute name.
        * 
* - * .google.protobuf.Struct metadata = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The metadata. + * @param index The index to set the value at. + * @param value The forwardAttributes to set. + * @return This builder for chaining. */ - public com.google.protobuf.Struct getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); + public Builder setForwardAttributes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureForwardAttributesIsMutable(); + forwardAttributes_.set(index, value); + bitField0_ |= 0x00000080; + onChanged(); + return this; } /** * * *
-       * Optional. The metadata provided here is included as part of the
-       * `metadata_context` (of type `google.protobuf.Struct`) in the
-       * `ProcessingRequest` message sent to the extension server.
+       * Optional. List of the Envoy attributes to forward to the extension
+       * server. The attributes provided here are included as part of the
+       * `ProcessingRequest.attributes` field (of type
+       * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+       * names. Refer to the
+       * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+       * for the names of attributes that can be forwarded. If omitted, no
+       * attributes are sent. Each element is a string indicating the
+       * attribute name.
+       * 
* - * The metadata is available under the namespace + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The forwardAttributes to add. + * @return This builder for chaining. + */ + public Builder addForwardAttributes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureForwardAttributesIsMutable(); + forwardAttributes_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. List of the Envoy attributes to forward to the extension
+       * server. The attributes provided here are included as part of the
+       * `ProcessingRequest.attributes` field (of type
+       * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+       * names. Refer to the
+       * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+       * for the names of attributes that can be forwarded. If omitted, no
+       * attributes are sent. Each element is a string indicating the
+       * attribute name.
+       * 
+ * + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The forwardAttributes to add. + * @return This builder for chaining. + */ + public Builder addAllForwardAttributes(java.lang.Iterable values) { + ensureForwardAttributesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, forwardAttributes_); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. List of the Envoy attributes to forward to the extension
+       * server. The attributes provided here are included as part of the
+       * `ProcessingRequest.attributes` field (of type
+       * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+       * names. Refer to the
+       * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+       * for the names of attributes that can be forwarded. If omitted, no
+       * attributes are sent. Each element is a string indicating the
+       * attribute name.
+       * 
+ * + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearForwardAttributes() { + forwardAttributes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. List of the Envoy attributes to forward to the extension
+       * server. The attributes provided here are included as part of the
+       * `ProcessingRequest.attributes` field (of type
+       * `map<string, google.protobuf.Struct>`), where the keys are the attribute
+       * names. Refer to the
+       * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
+       * for the names of attributes that can be forwarded. If omitted, no
+       * attributes are sent. Each element is a string indicating the
+       * attribute name.
+       * 
+ * + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the forwardAttributes to add. + * @return This builder for chaining. + */ + public Builder addForwardAttributesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureForwardAttributesIsMutable(); + forwardAttributes_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private com.google.protobuf.Struct metadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + metadataBuilder_; + + /** + * + * + *
+       * Optional. The metadata provided here is included as part of the
+       * `metadata_context` (of type `google.protobuf.Struct`) in the
+       * `ProcessingRequest` message sent to the extension server.
+       *
+       * For `AuthzExtension` resources, the metadata is available under the
+       * namespace `com.google.authz_extension.<resource_name>`.
+       * For other types of extensions, the metadata is available under the
+       * namespace
+       * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`.
+       * For example:
+       * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`.
+       *
+       * The following variables are supported in the metadata:
+       *
+       * `{forwarding_rule_id}` - substituted with the forwarding rule's fully
+       * qualified resource name.
+       *
+       * This field must not be set for plugin extensions. Setting it results in
+       * a validation error.
+       *
+       * You can set metadata at either the resource level or the extension level.
+       * The extension level metadata is recommended because you can pass a
+       * different set of metadata through each extension to the backend.
+       *
+       * This field is subject to following limitations:
+       *
+       * * The total size of the metadata must be less than 1KiB.
+       * * The total number of keys in the metadata must be less than 16.
+       * * The length of each key must be less than 64 characters.
+       * * The length of each value must be less than 1024 characters.
+       * * All values must be strings.
+       * 
+ * + * .google.protobuf.Struct metadata = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+       * Optional. The metadata provided here is included as part of the
+       * `metadata_context` (of type `google.protobuf.Struct`) in the
+       * `ProcessingRequest` message sent to the extension server.
+       *
+       * For `AuthzExtension` resources, the metadata is available under the
+       * namespace `com.google.authz_extension.<resource_name>`.
+       * For other types of extensions, the metadata is available under the
+       * namespace
+       * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`.
+       * For example:
+       * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`.
+       *
+       * The following variables are supported in the metadata:
+       *
+       * `{forwarding_rule_id}` - substituted with the forwarding rule's fully
+       * qualified resource name.
+       *
+       * This field must not be set for plugin extensions. Setting it results in
+       * a validation error.
+       *
+       * You can set metadata at either the resource level or the extension level.
+       * The extension level metadata is recommended because you can pass a
+       * different set of metadata through each extension to the backend.
+       *
+       * This field is subject to following limitations:
+       *
+       * * The total size of the metadata must be less than 1KiB.
+       * * The total number of keys in the metadata must be less than 16.
+       * * The length of each key must be less than 64 characters.
+       * * The length of each value must be less than 1024 characters.
+       * * All values must be strings.
+       * 
+ * + * .google.protobuf.Struct metadata = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metadata. + */ + public com.google.protobuf.Struct getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. The metadata provided here is included as part of the
+       * `metadata_context` (of type `google.protobuf.Struct`) in the
+       * `ProcessingRequest` message sent to the extension server.
+       *
+       * For `AuthzExtension` resources, the metadata is available under the
+       * namespace `com.google.authz_extension.<resource_name>`.
+       * For other types of extensions, the metadata is available under the
+       * namespace
        * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`.
        * For example:
        * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`.
@@ -4090,7 +5082,7 @@ public Builder setMetadata(com.google.protobuf.Struct value) {
         } else {
           metadataBuilder_.setMessage(value);
         }
-        bitField0_ |= 0x00000080;
+        bitField0_ |= 0x00000100;
         onChanged();
         return this;
       }
@@ -4103,7 +5095,10 @@ public Builder setMetadata(com.google.protobuf.Struct value) {
        * `metadata_context` (of type `google.protobuf.Struct`) in the
        * `ProcessingRequest` message sent to the extension server.
        *
-       * The metadata is available under the namespace
+       * For `AuthzExtension` resources, the metadata is available under the
+       * namespace `com.google.authz_extension.<resource_name>`.
+       * For other types of extensions, the metadata is available under the
+       * namespace
        * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`.
        * For example:
        * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`.
@@ -4138,7 +5133,7 @@ public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) {
         } else {
           metadataBuilder_.setMessage(builderForValue.build());
         }
-        bitField0_ |= 0x00000080;
+        bitField0_ |= 0x00000100;
         onChanged();
         return this;
       }
@@ -4151,7 +5146,10 @@ public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) {
        * `metadata_context` (of type `google.protobuf.Struct`) in the
        * `ProcessingRequest` message sent to the extension server.
        *
-       * The metadata is available under the namespace
+       * For `AuthzExtension` resources, the metadata is available under the
+       * namespace `com.google.authz_extension.<resource_name>`.
+       * For other types of extensions, the metadata is available under the
+       * namespace
        * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`.
        * For example:
        * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`.
@@ -4182,7 +5180,7 @@ public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) {
        */
       public Builder mergeMetadata(com.google.protobuf.Struct value) {
         if (metadataBuilder_ == null) {
-          if (((bitField0_ & 0x00000080) != 0)
+          if (((bitField0_ & 0x00000100) != 0)
               && metadata_ != null
               && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) {
             getMetadataBuilder().mergeFrom(value);
@@ -4193,7 +5191,7 @@ public Builder mergeMetadata(com.google.protobuf.Struct value) {
           metadataBuilder_.mergeFrom(value);
         }
         if (metadata_ != null) {
-          bitField0_ |= 0x00000080;
+          bitField0_ |= 0x00000100;
           onChanged();
         }
         return this;
@@ -4207,7 +5205,10 @@ public Builder mergeMetadata(com.google.protobuf.Struct value) {
        * `metadata_context` (of type `google.protobuf.Struct`) in the
        * `ProcessingRequest` message sent to the extension server.
        *
-       * The metadata is available under the namespace
+       * For `AuthzExtension` resources, the metadata is available under the
+       * namespace `com.google.authz_extension.<resource_name>`.
+       * For other types of extensions, the metadata is available under the
+       * namespace
        * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`.
        * For example:
        * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`.
@@ -4237,7 +5238,7 @@ public Builder mergeMetadata(com.google.protobuf.Struct value) {
        * 
        */
       public Builder clearMetadata() {
-        bitField0_ = (bitField0_ & ~0x00000080);
+        bitField0_ = (bitField0_ & ~0x00000100);
         metadata_ = null;
         if (metadataBuilder_ != null) {
           metadataBuilder_.dispose();
@@ -4255,7 +5256,10 @@ public Builder clearMetadata() {
        * `metadata_context` (of type `google.protobuf.Struct`) in the
        * `ProcessingRequest` message sent to the extension server.
        *
-       * The metadata is available under the namespace
+       * For `AuthzExtension` resources, the metadata is available under the
+       * namespace `com.google.authz_extension.<resource_name>`.
+       * For other types of extensions, the metadata is available under the
+       * namespace
        * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`.
        * For example:
        * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`.
@@ -4285,7 +5289,7 @@ public Builder clearMetadata() {
        * 
        */
       public com.google.protobuf.Struct.Builder getMetadataBuilder() {
-        bitField0_ |= 0x00000080;
+        bitField0_ |= 0x00000100;
         onChanged();
         return internalGetMetadataFieldBuilder().getBuilder();
       }
@@ -4298,7 +5302,10 @@ public com.google.protobuf.Struct.Builder getMetadataBuilder() {
        * `metadata_context` (of type `google.protobuf.Struct`) in the
        * `ProcessingRequest` message sent to the extension server.
        *
-       * The metadata is available under the namespace
+       * For `AuthzExtension` resources, the metadata is available under the
+       * namespace `com.google.authz_extension.<resource_name>`.
+       * For other types of extensions, the metadata is available under the
+       * namespace
        * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`.
        * For example:
        * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`.
@@ -4343,7 +5350,10 @@ public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() {
        * `metadata_context` (of type `google.protobuf.Struct`) in the
        * `ProcessingRequest` message sent to the extension server.
        *
-       * The metadata is available under the namespace
+       * For `AuthzExtension` resources, the metadata is available under the
+       * namespace `com.google.authz_extension.<resource_name>`.
+       * For other types of extensions, the metadata is available under the
+       * namespace
        * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`.
        * For example:
        * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`.
@@ -4389,6 +5399,416 @@ public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() {
         return metadataBuilder_;
       }
 
+      private int requestBodySendMode_ = 0;
+
+      /**
+       *
+       *
+       * 
+       * Optional. Configures the send mode for request body processing.
+       *
+       * The field can only be set if `supported_events` includes `REQUEST_BODY`.
+       * If `supported_events` includes `REQUEST_BODY`,
+       * but `request_body_send_mode` is unset, the default value `STREAMED` is
+       * used.
+       *
+       * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
+       * must include both `REQUEST_BODY` and `REQUEST_TRAILERS`.
+       *
+       * This field can be set only for `LbTrafficExtension` and
+       * `LbRouteExtension` resources, and only when the `service` field of the
+       * extension points to a `BackendService`. Only `FULL_DUPLEX_STREAMED` mode
+       * is supported for `LbRouteExtension` resources.
+       * 
+ * + * + * .google.cloud.networkservices.v1.BodySendMode request_body_send_mode = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for requestBodySendMode. + */ + @java.lang.Override + public int getRequestBodySendModeValue() { + return requestBodySendMode_; + } + + /** + * + * + *
+       * Optional. Configures the send mode for request body processing.
+       *
+       * The field can only be set if `supported_events` includes `REQUEST_BODY`.
+       * If `supported_events` includes `REQUEST_BODY`,
+       * but `request_body_send_mode` is unset, the default value `STREAMED` is
+       * used.
+       *
+       * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
+       * must include both `REQUEST_BODY` and `REQUEST_TRAILERS`.
+       *
+       * This field can be set only for `LbTrafficExtension` and
+       * `LbRouteExtension` resources, and only when the `service` field of the
+       * extension points to a `BackendService`. Only `FULL_DUPLEX_STREAMED` mode
+       * is supported for `LbRouteExtension` resources.
+       * 
+ * + * + * .google.cloud.networkservices.v1.BodySendMode request_body_send_mode = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for requestBodySendMode to set. + * @return This builder for chaining. + */ + public Builder setRequestBodySendModeValue(int value) { + requestBodySendMode_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Configures the send mode for request body processing.
+       *
+       * The field can only be set if `supported_events` includes `REQUEST_BODY`.
+       * If `supported_events` includes `REQUEST_BODY`,
+       * but `request_body_send_mode` is unset, the default value `STREAMED` is
+       * used.
+       *
+       * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
+       * must include both `REQUEST_BODY` and `REQUEST_TRAILERS`.
+       *
+       * This field can be set only for `LbTrafficExtension` and
+       * `LbRouteExtension` resources, and only when the `service` field of the
+       * extension points to a `BackendService`. Only `FULL_DUPLEX_STREAMED` mode
+       * is supported for `LbRouteExtension` resources.
+       * 
+ * + * + * .google.cloud.networkservices.v1.BodySendMode request_body_send_mode = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestBodySendMode. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.BodySendMode getRequestBodySendMode() { + com.google.cloud.networkservices.v1.BodySendMode result = + com.google.cloud.networkservices.v1.BodySendMode.forNumber(requestBodySendMode_); + return result == null + ? com.google.cloud.networkservices.v1.BodySendMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Optional. Configures the send mode for request body processing.
+       *
+       * The field can only be set if `supported_events` includes `REQUEST_BODY`.
+       * If `supported_events` includes `REQUEST_BODY`,
+       * but `request_body_send_mode` is unset, the default value `STREAMED` is
+       * used.
+       *
+       * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
+       * must include both `REQUEST_BODY` and `REQUEST_TRAILERS`.
+       *
+       * This field can be set only for `LbTrafficExtension` and
+       * `LbRouteExtension` resources, and only when the `service` field of the
+       * extension points to a `BackendService`. Only `FULL_DUPLEX_STREAMED` mode
+       * is supported for `LbRouteExtension` resources.
+       * 
+ * + * + * .google.cloud.networkservices.v1.BodySendMode request_body_send_mode = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The requestBodySendMode to set. + * @return This builder for chaining. + */ + public Builder setRequestBodySendMode( + com.google.cloud.networkservices.v1.BodySendMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + requestBodySendMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Configures the send mode for request body processing.
+       *
+       * The field can only be set if `supported_events` includes `REQUEST_BODY`.
+       * If `supported_events` includes `REQUEST_BODY`,
+       * but `request_body_send_mode` is unset, the default value `STREAMED` is
+       * used.
+       *
+       * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
+       * must include both `REQUEST_BODY` and `REQUEST_TRAILERS`.
+       *
+       * This field can be set only for `LbTrafficExtension` and
+       * `LbRouteExtension` resources, and only when the `service` field of the
+       * extension points to a `BackendService`. Only `FULL_DUPLEX_STREAMED` mode
+       * is supported for `LbRouteExtension` resources.
+       * 
+ * + * + * .google.cloud.networkservices.v1.BodySendMode request_body_send_mode = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearRequestBodySendMode() { + bitField0_ = (bitField0_ & ~0x00000200); + requestBodySendMode_ = 0; + onChanged(); + return this; + } + + private int responseBodySendMode_ = 0; + + /** + * + * + *
+       * Optional. Configures the send mode for response processing. If
+       * unspecified, the default value `STREAMED` is used.
+       *
+       * The field can only be set if `supported_events` includes `RESPONSE_BODY`.
+       * If `supported_events` includes `RESPONSE_BODY`, but
+       * `response_body_send_mode` is unset, the default value `STREAMED` is used.
+       *
+       * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
+       * must include both `RESPONSE_BODY` and `RESPONSE_TRAILERS`.
+       *
+       * This field can be set only for `LbTrafficExtension` resources, and only
+       * when the `service` field of the extension points to a `BackendService`.
+       * 
+ * + * + * .google.cloud.networkservices.v1.BodySendMode response_body_send_mode = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for responseBodySendMode. + */ + @java.lang.Override + public int getResponseBodySendModeValue() { + return responseBodySendMode_; + } + + /** + * + * + *
+       * Optional. Configures the send mode for response processing. If
+       * unspecified, the default value `STREAMED` is used.
+       *
+       * The field can only be set if `supported_events` includes `RESPONSE_BODY`.
+       * If `supported_events` includes `RESPONSE_BODY`, but
+       * `response_body_send_mode` is unset, the default value `STREAMED` is used.
+       *
+       * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
+       * must include both `RESPONSE_BODY` and `RESPONSE_TRAILERS`.
+       *
+       * This field can be set only for `LbTrafficExtension` resources, and only
+       * when the `service` field of the extension points to a `BackendService`.
+       * 
+ * + * + * .google.cloud.networkservices.v1.BodySendMode response_body_send_mode = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for responseBodySendMode to set. + * @return This builder for chaining. + */ + public Builder setResponseBodySendModeValue(int value) { + responseBodySendMode_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Configures the send mode for response processing. If
+       * unspecified, the default value `STREAMED` is used.
+       *
+       * The field can only be set if `supported_events` includes `RESPONSE_BODY`.
+       * If `supported_events` includes `RESPONSE_BODY`, but
+       * `response_body_send_mode` is unset, the default value `STREAMED` is used.
+       *
+       * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
+       * must include both `RESPONSE_BODY` and `RESPONSE_TRAILERS`.
+       *
+       * This field can be set only for `LbTrafficExtension` resources, and only
+       * when the `service` field of the extension points to a `BackendService`.
+       * 
+ * + * + * .google.cloud.networkservices.v1.BodySendMode response_body_send_mode = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The responseBodySendMode. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.BodySendMode getResponseBodySendMode() { + com.google.cloud.networkservices.v1.BodySendMode result = + com.google.cloud.networkservices.v1.BodySendMode.forNumber(responseBodySendMode_); + return result == null + ? com.google.cloud.networkservices.v1.BodySendMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Optional. Configures the send mode for response processing. If
+       * unspecified, the default value `STREAMED` is used.
+       *
+       * The field can only be set if `supported_events` includes `RESPONSE_BODY`.
+       * If `supported_events` includes `RESPONSE_BODY`, but
+       * `response_body_send_mode` is unset, the default value `STREAMED` is used.
+       *
+       * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
+       * must include both `RESPONSE_BODY` and `RESPONSE_TRAILERS`.
+       *
+       * This field can be set only for `LbTrafficExtension` resources, and only
+       * when the `service` field of the extension points to a `BackendService`.
+       * 
+ * + * + * .google.cloud.networkservices.v1.BodySendMode response_body_send_mode = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The responseBodySendMode to set. + * @return This builder for chaining. + */ + public Builder setResponseBodySendMode( + com.google.cloud.networkservices.v1.BodySendMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + responseBodySendMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Configures the send mode for response processing. If
+       * unspecified, the default value `STREAMED` is used.
+       *
+       * The field can only be set if `supported_events` includes `RESPONSE_BODY`.
+       * If `supported_events` includes `RESPONSE_BODY`, but
+       * `response_body_send_mode` is unset, the default value `STREAMED` is used.
+       *
+       * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
+       * must include both `RESPONSE_BODY` and `RESPONSE_TRAILERS`.
+       *
+       * This field can be set only for `LbTrafficExtension` resources, and only
+       * when the `service` field of the extension points to a `BackendService`.
+       * 
+ * + * + * .google.cloud.networkservices.v1.BodySendMode response_body_send_mode = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearResponseBodySendMode() { + bitField0_ = (bitField0_ & ~0x00000400); + responseBodySendMode_ = 0; + onChanged(); + return this; + } + + private boolean observabilityMode_; + + /** + * + * + *
+       * Optional. When set to `true`, the calls to the extension backend are
+       * performed asynchronously, without pausing the processing of the ongoing
+       * request. In this mode, only `STREAMED` (default) body processing is
+       * supported. Responses, if any, are ignored.
+       *
+       * Supported by regional `LbTrafficExtension` and `LbRouteExtension`
+       * resources.
+       * 
+ * + * bool observability_mode = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The observabilityMode. + */ + @java.lang.Override + public boolean getObservabilityMode() { + return observabilityMode_; + } + + /** + * + * + *
+       * Optional. When set to `true`, the calls to the extension backend are
+       * performed asynchronously, without pausing the processing of the ongoing
+       * request. In this mode, only `STREAMED` (default) body processing is
+       * supported. Responses, if any, are ignored.
+       *
+       * Supported by regional `LbTrafficExtension` and `LbRouteExtension`
+       * resources.
+       * 
+ * + * bool observability_mode = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The observabilityMode to set. + * @return This builder for chaining. + */ + public Builder setObservabilityMode(boolean value) { + + observabilityMode_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. When set to `true`, the calls to the extension backend are
+       * performed asynchronously, without pausing the processing of the ongoing
+       * request. In this mode, only `STREAMED` (default) body processing is
+       * supported. Responses, if any, are ignored.
+       *
+       * Supported by regional `LbTrafficExtension` and `LbRouteExtension`
+       * resources.
+       * 
+ * + * bool observability_mode = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearObservabilityMode() { + bitField0_ = (bitField0_ & ~0x00000800); + observabilityMode_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.ExtensionChain.Extension) } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/Gateway.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/Gateway.java index 5d59c2b2036d..7ed24ccea7cc 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/Gateway.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/Gateway.java @@ -1128,7 +1128,7 @@ public com.google.protobuf.ByteString getAddressesBytes(int index) { *
    * Required. One or more port numbers (1-65535), on which the Gateway will
    * receive traffic. The proxy binds to the specified ports.
-   * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
+   * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports.
    * Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
    * support multiple ports.
    * 
@@ -1148,7 +1148,7 @@ public java.util.List getPortsList() { *
    * Required. One or more port numbers (1-65535), on which the Gateway will
    * receive traffic. The proxy binds to the specified ports.
-   * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
+   * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports.
    * Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
    * support multiple ports.
    * 
@@ -1167,7 +1167,7 @@ public int getPortsCount() { *
    * Required. One or more port numbers (1-65535), on which the Gateway will
    * receive traffic. The proxy binds to the specified ports.
-   * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
+   * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports.
    * Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
    * support multiple ports.
    * 
@@ -1183,6 +1183,27 @@ public int getPorts(int index) { private int portsMemoizedSerializedSize = -1; + public static final int ALL_PORTS_FIELD_NUMBER = 34; + private boolean allPorts_ = false; + + /** + * + * + *
+   * Optional. If true, the Gateway will listen on all ports. This is mutually
+   * exclusive with the `ports` field. This field only applies to gateways of
+   * type 'SECURE_WEB_GATEWAY'.
+   * 
+ * + * bool all_ports = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allPorts. + */ + @java.lang.Override + public boolean getAllPorts() { + return allPorts_; + } + public static final int SCOPE_FIELD_NUMBER = 8; @SuppressWarnings("serial") @@ -1751,6 +1772,27 @@ public com.google.cloud.networkservices.v1.Gateway.RoutingMode getRoutingMode() : result; } + public static final int ALLOW_GLOBAL_ACCESS_FIELD_NUMBER = 33; + private boolean allowGlobalAccess_ = false; + + /** + * + * + *
+   * Optional. If true, the gateway will allow traffic from clients outside of
+   * the region where the gateway is located.
+   * This field is configurable only for gateways of type SECURE_WEB_GATEWAY.
+   * 
+ * + * bool allow_global_access = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowGlobalAccess. + */ + @java.lang.Override + public boolean getAllowGlobalAccess() { + return allowGlobalAccess_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1827,6 +1869,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(32, routingMode_); } + if (allowGlobalAccess_ != false) { + output.writeBool(33, allowGlobalAccess_); + } + if (allPorts_ != false) { + output.writeBool(34, allPorts_); + } getUnknownFields().writeTo(output); } @@ -1920,6 +1968,12 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(32, routingMode_); } + if (allowGlobalAccess_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(33, allowGlobalAccess_); + } + if (allPorts_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(34, allPorts_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1951,6 +2005,7 @@ public boolean equals(final java.lang.Object obj) { if (type_ != other.type_) return false; if (!getAddressesList().equals(other.getAddressesList())) return false; if (!getPortsList().equals(other.getPortsList())) return false; + if (getAllPorts() != other.getAllPorts()) return false; if (!getScope().equals(other.getScope())) return false; if (!getServerTlsPolicy().equals(other.getServerTlsPolicy())) return false; if (!getCertificateUrlsList().equals(other.getCertificateUrlsList())) return false; @@ -1963,6 +2018,7 @@ public boolean equals(final java.lang.Object obj) { if (envoyHeaders_ != other.envoyHeaders_) return false; } if (routingMode_ != other.routingMode_) return false; + if (getAllowGlobalAccess() != other.getAllowGlobalAccess()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2002,6 +2058,8 @@ public int hashCode() { hash = (37 * hash) + PORTS_FIELD_NUMBER; hash = (53 * hash) + getPortsList().hashCode(); } + hash = (37 * hash) + ALL_PORTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllPorts()); hash = (37 * hash) + SCOPE_FIELD_NUMBER; hash = (53 * hash) + getScope().hashCode(); hash = (37 * hash) + SERVER_TLS_POLICY_FIELD_NUMBER; @@ -2024,6 +2082,8 @@ public int hashCode() { } hash = (37 * hash) + ROUTING_MODE_FIELD_NUMBER; hash = (53 * hash) + routingMode_; + hash = (37 * hash) + ALLOW_GLOBAL_ACCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowGlobalAccess()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2216,6 +2276,7 @@ public Builder clear() { type_ = 0; addresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); ports_ = emptyIntList(); + allPorts_ = false; scope_ = ""; serverTlsPolicy_ = ""; certificateUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); @@ -2225,6 +2286,7 @@ public Builder clear() { ipVersion_ = 0; envoyHeaders_ = 0; routingMode_ = 0; + allowGlobalAccess_ = false; return this; } @@ -2295,34 +2357,40 @@ private void buildPartial0(com.google.cloud.networkservices.v1.Gateway result) { result.ports_ = ports_; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.scope_ = scope_; + result.allPorts_ = allPorts_; } if (((from_bitField0_ & 0x00000400) != 0)) { - result.serverTlsPolicy_ = serverTlsPolicy_; + result.scope_ = scope_; } if (((from_bitField0_ & 0x00000800) != 0)) { + result.serverTlsPolicy_ = serverTlsPolicy_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { certificateUrls_.makeImmutable(); result.certificateUrls_ = certificateUrls_; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.gatewaySecurityPolicy_ = gatewaySecurityPolicy_; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.network_ = network_; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.subnetwork_ = subnetwork_; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.ipVersion_ = ipVersion_; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.envoyHeaders_ = envoyHeaders_; to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { result.routingMode_ = routingMode_; } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.allowGlobalAccess_ = allowGlobalAccess_; + } result.bitField0_ |= to_bitField0_; } @@ -2385,20 +2453,23 @@ public Builder mergeFrom(com.google.cloud.networkservices.v1.Gateway other) { } onChanged(); } + if (other.getAllPorts() != false) { + setAllPorts(other.getAllPorts()); + } if (!other.getScope().isEmpty()) { scope_ = other.scope_; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } if (!other.getServerTlsPolicy().isEmpty()) { serverTlsPolicy_ = other.serverTlsPolicy_; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } if (!other.certificateUrls_.isEmpty()) { if (certificateUrls_.isEmpty()) { certificateUrls_ = other.certificateUrls_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; } else { ensureCertificateUrlsIsMutable(); certificateUrls_.addAll(other.certificateUrls_); @@ -2407,17 +2478,17 @@ public Builder mergeFrom(com.google.cloud.networkservices.v1.Gateway other) { } if (!other.getGatewaySecurityPolicy().isEmpty()) { gatewaySecurityPolicy_ = other.gatewaySecurityPolicy_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } if (!other.getNetwork().isEmpty()) { network_ = other.network_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } if (!other.getSubnetwork().isEmpty()) { subnetwork_ = other.subnetwork_; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } if (other.ipVersion_ != 0) { @@ -2429,6 +2500,9 @@ public Builder mergeFrom(com.google.cloud.networkservices.v1.Gateway other) { if (other.routingMode_ != 0) { setRoutingModeValue(other.getRoutingModeValue()); } + if (other.getAllowGlobalAccess() != false) { + setAllowGlobalAccess(other.getAllowGlobalAccess()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2509,13 +2583,13 @@ public Builder mergeFrom( case 66: { scope_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 66 case 74: { serverTlsPolicy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 74 case 88: @@ -2552,39 +2626,51 @@ public Builder mergeFrom( case 130: { network_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 130 case 138: { subnetwork_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 138 case 146: { gatewaySecurityPolicy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 146 case 168: { ipVersion_ = input.readEnum(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 168 case 224: { envoyHeaders_ = input.readEnum(); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 224 case 256: { routingMode_ = input.readEnum(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 256 + case 264: + { + allowGlobalAccess_ = input.readBool(); + bitField0_ |= 0x00080000; + break; + } // case 264 + case 272: + { + allPorts_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 272 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3916,7 +4002,7 @@ private void ensurePortsIsMutable() { *
      * Required. One or more port numbers (1-65535), on which the Gateway will
      * receive traffic. The proxy binds to the specified ports.
-     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
+     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports.
      * Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
      * support multiple ports.
      * 
@@ -3936,7 +4022,7 @@ public java.util.List getPortsList() { *
      * Required. One or more port numbers (1-65535), on which the Gateway will
      * receive traffic. The proxy binds to the specified ports.
-     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
+     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports.
      * Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
      * support multiple ports.
      * 
@@ -3955,7 +4041,7 @@ public int getPortsCount() { *
      * Required. One or more port numbers (1-65535), on which the Gateway will
      * receive traffic. The proxy binds to the specified ports.
-     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
+     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports.
      * Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
      * support multiple ports.
      * 
@@ -3975,7 +4061,7 @@ public int getPorts(int index) { *
      * Required. One or more port numbers (1-65535), on which the Gateway will
      * receive traffic. The proxy binds to the specified ports.
-     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
+     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports.
      * Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
      * support multiple ports.
      * 
@@ -4001,7 +4087,7 @@ public Builder setPorts(int index, int value) { *
      * Required. One or more port numbers (1-65535), on which the Gateway will
      * receive traffic. The proxy binds to the specified ports.
-     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
+     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports.
      * Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
      * support multiple ports.
      * 
@@ -4026,7 +4112,7 @@ public Builder addPorts(int value) { *
      * Required. One or more port numbers (1-65535), on which the Gateway will
      * receive traffic. The proxy binds to the specified ports.
-     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
+     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports.
      * Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
      * support multiple ports.
      * 
@@ -4050,7 +4136,7 @@ public Builder addAllPorts(java.lang.Iterable value *
      * Required. One or more port numbers (1-65535), on which the Gateway will
      * receive traffic. The proxy binds to the specified ports.
-     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
+     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports.
      * Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
      * support multiple ports.
      * 
@@ -4066,6 +4152,68 @@ public Builder clearPorts() { return this; } + private boolean allPorts_; + + /** + * + * + *
+     * Optional. If true, the Gateway will listen on all ports. This is mutually
+     * exclusive with the `ports` field. This field only applies to gateways of
+     * type 'SECURE_WEB_GATEWAY'.
+     * 
+ * + * bool all_ports = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allPorts. + */ + @java.lang.Override + public boolean getAllPorts() { + return allPorts_; + } + + /** + * + * + *
+     * Optional. If true, the Gateway will listen on all ports. This is mutually
+     * exclusive with the `ports` field. This field only applies to gateways of
+     * type 'SECURE_WEB_GATEWAY'.
+     * 
+ * + * bool all_ports = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The allPorts to set. + * @return This builder for chaining. + */ + public Builder setAllPorts(boolean value) { + + allPorts_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If true, the Gateway will listen on all ports. This is mutually
+     * exclusive with the `ports` field. This field only applies to gateways of
+     * type 'SECURE_WEB_GATEWAY'.
+     * 
+ * + * bool all_ports = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAllPorts() { + bitField0_ = (bitField0_ & ~0x00000200); + allPorts_ = false; + onChanged(); + return this; + } + private java.lang.Object scope_ = ""; /** @@ -4152,7 +4300,7 @@ public Builder setScope(java.lang.String value) { throw new NullPointerException(); } scope_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4177,7 +4325,7 @@ public Builder setScope(java.lang.String value) { */ public Builder clearScope() { scope_ = getDefaultInstance().getScope(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -4207,7 +4355,7 @@ public Builder setScopeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); scope_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4286,7 +4434,7 @@ public Builder setServerTlsPolicy(java.lang.String value) { throw new NullPointerException(); } serverTlsPolicy_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4307,7 +4455,7 @@ public Builder setServerTlsPolicy(java.lang.String value) { */ public Builder clearServerTlsPolicy() { serverTlsPolicy_ = getDefaultInstance().getServerTlsPolicy(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -4333,7 +4481,7 @@ public Builder setServerTlsPolicyBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); serverTlsPolicy_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4345,7 +4493,7 @@ private void ensureCertificateUrlsIsMutable() { if (!certificateUrls_.isModifiable()) { certificateUrls_ = new com.google.protobuf.LazyStringArrayList(certificateUrls_); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; } /** @@ -4450,7 +4598,7 @@ public Builder setCertificateUrls(int index, java.lang.String value) { } ensureCertificateUrlsIsMutable(); certificateUrls_.set(index, value); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4477,7 +4625,7 @@ public Builder addCertificateUrls(java.lang.String value) { } ensureCertificateUrlsIsMutable(); certificateUrls_.add(value); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4501,7 +4649,7 @@ public Builder addCertificateUrls(java.lang.String value) { public Builder addAllCertificateUrls(java.lang.Iterable values) { ensureCertificateUrlsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certificateUrls_); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4523,7 +4671,7 @@ public Builder addAllCertificateUrls(java.lang.Iterable values */ public Builder clearCertificateUrls() { certificateUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); ; onChanged(); return this; @@ -4552,7 +4700,7 @@ public Builder addCertificateUrlsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureCertificateUrlsIsMutable(); certificateUrls_.add(value); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4649,7 +4797,7 @@ public Builder setGatewaySecurityPolicy(java.lang.String value) { throw new NullPointerException(); } gatewaySecurityPolicy_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4676,7 +4824,7 @@ public Builder setGatewaySecurityPolicy(java.lang.String value) { */ public Builder clearGatewaySecurityPolicy() { gatewaySecurityPolicy_ = getDefaultInstance().getGatewaySecurityPolicy(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -4708,7 +4856,7 @@ public Builder setGatewaySecurityPolicyBytes(com.google.protobuf.ByteString valu } checkByteStringIsUtf8(value); gatewaySecurityPolicy_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4796,7 +4944,7 @@ public Builder setNetwork(java.lang.String value) { throw new NullPointerException(); } network_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4820,7 +4968,7 @@ public Builder setNetwork(java.lang.String value) { */ public Builder clearNetwork() { network_ = getDefaultInstance().getNetwork(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -4849,7 +4997,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); network_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4937,7 +5085,7 @@ public Builder setSubnetwork(java.lang.String value) { throw new NullPointerException(); } subnetwork_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4961,7 +5109,7 @@ public Builder setSubnetwork(java.lang.String value) { */ public Builder clearSubnetwork() { subnetwork_ = getDefaultInstance().getSubnetwork(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -4990,7 +5138,7 @@ public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); subnetwork_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5033,7 +5181,7 @@ public int getIpVersionValue() { */ public Builder setIpVersionValue(int value) { ipVersion_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5080,7 +5228,7 @@ public Builder setIpVersion(com.google.cloud.networkservices.v1.Gateway.IpVersio if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; ipVersion_ = value.getNumber(); onChanged(); return this; @@ -5101,7 +5249,7 @@ public Builder setIpVersion(com.google.cloud.networkservices.v1.Gateway.IpVersio * @return This builder for chaining. */ public Builder clearIpVersion() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); ipVersion_ = 0; onChanged(); return this; @@ -5126,7 +5274,7 @@ public Builder clearIpVersion() { */ @java.lang.Override public boolean hasEnvoyHeaders() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -5167,7 +5315,7 @@ public int getEnvoyHeadersValue() { */ public Builder setEnvoyHeadersValue(int value) { envoyHeaders_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -5216,7 +5364,7 @@ public Builder setEnvoyHeaders(com.google.cloud.networkservices.v1.EnvoyHeaders if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; envoyHeaders_ = value.getNumber(); onChanged(); return this; @@ -5238,7 +5386,7 @@ public Builder setEnvoyHeaders(com.google.cloud.networkservices.v1.EnvoyHeaders * @return This builder for chaining. */ public Builder clearEnvoyHeaders() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); envoyHeaders_ = 0; onChanged(); return this; @@ -5284,7 +5432,7 @@ public int getRoutingModeValue() { */ public Builder setRoutingModeValue(int value) { routingMode_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -5333,7 +5481,7 @@ public Builder setRoutingMode(com.google.cloud.networkservices.v1.Gateway.Routin if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; routingMode_ = value.getNumber(); onChanged(); return this; @@ -5355,12 +5503,74 @@ public Builder setRoutingMode(com.google.cloud.networkservices.v1.Gateway.Routin * @return This builder for chaining. */ public Builder clearRoutingMode() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); routingMode_ = 0; onChanged(); return this; } + private boolean allowGlobalAccess_; + + /** + * + * + *
+     * Optional. If true, the gateway will allow traffic from clients outside of
+     * the region where the gateway is located.
+     * This field is configurable only for gateways of type SECURE_WEB_GATEWAY.
+     * 
+ * + * bool allow_global_access = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowGlobalAccess. + */ + @java.lang.Override + public boolean getAllowGlobalAccess() { + return allowGlobalAccess_; + } + + /** + * + * + *
+     * Optional. If true, the gateway will allow traffic from clients outside of
+     * the region where the gateway is located.
+     * This field is configurable only for gateways of type SECURE_WEB_GATEWAY.
+     * 
+ * + * bool allow_global_access = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The allowGlobalAccess to set. + * @return This builder for chaining. + */ + public Builder setAllowGlobalAccess(boolean value) { + + allowGlobalAccess_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If true, the gateway will allow traffic from clients outside of
+     * the region where the gateway is located.
+     * This field is configurable only for gateways of type SECURE_WEB_GATEWAY.
+     * 
+ * + * bool allow_global_access = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAllowGlobalAccess() { + bitField0_ = (bitField0_ & ~0x00080000); + allowGlobalAccess_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.Gateway) } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GatewayOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GatewayOrBuilder.java index 11b9f779a04d..1916794acbcb 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GatewayOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GatewayOrBuilder.java @@ -371,7 +371,7 @@ java.lang.String getLabelsOrDefault( *
    * Required. One or more port numbers (1-65535), on which the Gateway will
    * receive traffic. The proxy binds to the specified ports.
-   * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
+   * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports.
    * Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
    * support multiple ports.
    * 
@@ -388,7 +388,7 @@ java.lang.String getLabelsOrDefault( *
    * Required. One or more port numbers (1-65535), on which the Gateway will
    * receive traffic. The proxy binds to the specified ports.
-   * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
+   * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports.
    * Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
    * support multiple ports.
    * 
@@ -405,7 +405,7 @@ java.lang.String getLabelsOrDefault( *
    * Required. One or more port numbers (1-65535), on which the Gateway will
    * receive traffic. The proxy binds to the specified ports.
-   * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
+   * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports.
    * Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
    * support multiple ports.
    * 
@@ -417,6 +417,21 @@ java.lang.String getLabelsOrDefault( */ int getPorts(int index); + /** + * + * + *
+   * Optional. If true, the Gateway will listen on all ports. This is mutually
+   * exclusive with the `ports` field. This field only applies to gateways of
+   * type 'SECURE_WEB_GATEWAY'.
+   * 
+ * + * bool all_ports = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allPorts. + */ + boolean getAllPorts(); + /** * * @@ -795,4 +810,19 @@ java.lang.String getLabelsOrDefault( * @return The routingMode. */ com.google.cloud.networkservices.v1.Gateway.RoutingMode getRoutingMode(); + + /** + * + * + *
+   * Optional. If true, the gateway will allow traffic from clients outside of
+   * the region where the gateway is located.
+   * This field is configurable only for gateways of type SECURE_WEB_GATEWAY.
+   * 
+ * + * bool allow_global_access = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowGlobalAccess. + */ + boolean getAllowGlobalAccess(); } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GatewayProto.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GatewayProto.java index 38de6ef3c736..72c4ab748d8b 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GatewayProto.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GatewayProto.java @@ -85,7 +85,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "-google/cloud/networkservices/v1/gateway.proto\022\037google.cloud.networkservices.v1" + "\032\037google/api/field_behavior.proto\032\031googl" + "e/api/resource.proto\032,google/cloud/networkservices/v1/common.proto\032 google/proto" - + "buf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\204\013\n" + + "buf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\276\013\n" + "\007Gateway\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\026\n" + "\tself_link\030\r" @@ -99,7 +99,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0162-.google.cloud.networkservices.v1.Gateway.TypeB\003\340A\005\0229\n" + "\taddresses\030\007 \003(\tB&\340A\001\372A \n" + "\036compute.googleapis.com/Address\022\022\n" - + "\005ports\030\013 \003(\005B\003\340A\002\022\022\n" + + "\005ports\030\013 \003(\005B\003\340A\002\022\026\n" + + "\tall_ports\030\" \001(\010B\003\340A\001\022\022\n" + "\005scope\030\010 \001(\tB\003\340A\001\022Q\n" + "\021server_tls_policy\030\t \001(\tB6\340A\001\372A0\n" + ".networksecurity.googleapis.com/ServerTlsPolicy\022O\n" @@ -111,12 +112,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036compute.googleapis.com/Network\022=\n\n" + "subnetwork\030\021 \001(\tB)\340A\001\372A#\n" + "!compute.googleapis.com/Subnetwork\022K\n\n" - + "ip_version\030\025 \001(" - + "\01622.google.cloud.networkservices.v1.Gateway.IpVersionB\003\340A\001\022N\n\r" - + "envoy_headers\030\034 \001(" - + "\0162-.google.cloud.networkservices.v1.EnvoyHeadersB\003\340A\001H\000\210\001\001\022O\n" - + "\014routing_mode\030 \001(\016" - + "24.google.cloud.networkservices.v1.Gateway.RoutingModeB\003\340A\001\032-\n" + + "ip_version\030\025 \001(\01622.google.cloud" + + ".networkservices.v1.Gateway.IpVersionB\003\340A\001\022N\n\r" + + "envoy_headers\030\034 \001(\0162-.google.cloud" + + ".networkservices.v1.EnvoyHeadersB\003\340A\001H\000\210\001\001\022O\n" + + "\014routing_mode\030 \001(\01624.google.cloud." + + "networkservices.v1.Gateway.RoutingModeB\003\340A\001\022 \n" + + "\023allow_global_access\030! \001(\010B\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"C\n" @@ -131,8 +133,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013RoutingMode\022\031\n" + "\025EXPLICIT_ROUTING_MODE\020\000\022\031\n" + "\025NEXT_HOP_ROUTING_MODE\020\001:g\352Ad\n" - + "&networkservices.googleapis.com/Gateway\022:projects" - + "/{project}/locations/{location}/gateways/{gateway}B\020\n" + + "&networkservices.googleapis.com" + + "/Gateway\022:projects/{project}/locations/{location}/gateways/{gateway}B\020\n" + "\016_envoy_headers\"|\n" + "\023ListGatewaysRequest\022>\n" + "\006parent\030\001 \001(" @@ -150,31 +152,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB.\340A\002\372A(\022&networkservices.googleapis.com/Gateway\022\027\n\n" + "gateway_id\030\002 \001(\tB\003\340A\002\022>\n" - + "\007gateway\030\003" - + " \001(\0132(.google.cloud.networkservices.v1.GatewayB\003\340A\002\"\214\001\n" + + "\007gateway\030\003 \001(\0132(." + + "google.cloud.networkservices.v1.GatewayB\003\340A\002\"\214\001\n" + "\024UpdateGatewayRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022>\n" - + "\007gateway\030\002 \001" - + "(\0132(.google.cloud.networkservices.v1.GatewayB\003\340A\002\"T\n" + + "\007gateway\030\002" + + " \001(\0132(.google.cloud.networkservices.v1.GatewayB\003\340A\002\"T\n" + "\024DeleteGatewayRequest\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + "&networkservices.googleapis.com/GatewayB\211\006\n" - + "#com.google.cloud.networkservices.v1B\014GatewayProtoP\001ZMcloud.g" - + "oogle.com/go/networkservices/apiv1/netwo" - + "rkservicespb;networkservicespb\252\002\037Google." - + "Cloud.NetworkServices.V1\312\002\037Google\\Cloud\\" - + "NetworkServices\\V1\352\002\"Google::Cloud::NetworkServices::V1\352A\221\001\n" - + "4networksecurity.googleapis.com/GatewaySecurityPolicy\022Yproje" - + "cts/{project}/locations/{location}/gatew" - + "aySecurityPolicies/{gateway_security_policy}\352Aa\n" - + "!compute.googleapis.com/Subnetwo" - + "rk\022 + * Request used by the GetAgentGateway method. + *
+ * + * Protobuf type {@code google.cloud.networkservices.v1.GetAgentGatewayRequest} + */ +@com.google.protobuf.Generated +public final class GetAgentGatewayRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.GetAgentGatewayRequest) + GetAgentGatewayRequestOrBuilder { + 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= */ "", + "GetAgentGatewayRequest"); + } + + // Use GetAgentGatewayRequest.newBuilder() to construct. + private GetAgentGatewayRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAgentGatewayRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_GetAgentGatewayRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_GetAgentGatewayRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.GetAgentGatewayRequest.class, + com.google.cloud.networkservices.v1.GetAgentGatewayRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. A name of the AgentGateway to get. Must be in the format
+   * `projects/*/locations/*/agentGateways/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. A name of the AgentGateway to get. Must be in the format
+   * `projects/*/locations/*/agentGateways/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.cloud.networkservices.v1.GetAgentGatewayRequest)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.GetAgentGatewayRequest other = + (com.google.cloud.networkservices.v1.GetAgentGatewayRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.GetAgentGatewayRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.GetAgentGatewayRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.GetAgentGatewayRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.GetAgentGatewayRequest 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.cloud.networkservices.v1.GetAgentGatewayRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.GetAgentGatewayRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.GetAgentGatewayRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.GetAgentGatewayRequest 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.cloud.networkservices.v1.GetAgentGatewayRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.GetAgentGatewayRequest 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.cloud.networkservices.v1.GetAgentGatewayRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.GetAgentGatewayRequest 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.cloud.networkservices.v1.GetAgentGatewayRequest 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 used by the GetAgentGateway method.
+   * 
+ * + * Protobuf type {@code google.cloud.networkservices.v1.GetAgentGatewayRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.GetAgentGatewayRequest) + com.google.cloud.networkservices.v1.GetAgentGatewayRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_GetAgentGatewayRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_GetAgentGatewayRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.GetAgentGatewayRequest.class, + com.google.cloud.networkservices.v1.GetAgentGatewayRequest.Builder.class); + } + + // Construct using com.google.cloud.networkservices.v1.GetAgentGatewayRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_GetAgentGatewayRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.GetAgentGatewayRequest getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.GetAgentGatewayRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.GetAgentGatewayRequest build() { + com.google.cloud.networkservices.v1.GetAgentGatewayRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.GetAgentGatewayRequest buildPartial() { + com.google.cloud.networkservices.v1.GetAgentGatewayRequest result = + new com.google.cloud.networkservices.v1.GetAgentGatewayRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkservices.v1.GetAgentGatewayRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.GetAgentGatewayRequest) { + return mergeFrom((com.google.cloud.networkservices.v1.GetAgentGatewayRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkservices.v1.GetAgentGatewayRequest other) { + if (other == com.google.cloud.networkservices.v1.GetAgentGatewayRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. A name of the AgentGateway to get. Must be in the format
+     * `projects/*/locations/*/agentGateways/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. A name of the AgentGateway to get. Must be in the format
+     * `projects/*/locations/*/agentGateways/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. A name of the AgentGateway to get. Must be in the format
+     * `projects/*/locations/*/agentGateways/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. A name of the AgentGateway to get. Must be in the format
+     * `projects/*/locations/*/agentGateways/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. A name of the AgentGateway to get. Must be in the format
+     * `projects/*/locations/*/agentGateways/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.GetAgentGatewayRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.GetAgentGatewayRequest) + private static final com.google.cloud.networkservices.v1.GetAgentGatewayRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.GetAgentGatewayRequest(); + } + + public static com.google.cloud.networkservices.v1.GetAgentGatewayRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAgentGatewayRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.GetAgentGatewayRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetAgentGatewayRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetAgentGatewayRequestOrBuilder.java new file mode 100644 index 000000000000..1bc9d23547cc --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetAgentGatewayRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * 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/cloud/networkservices/v1/agent_gateway.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +@com.google.protobuf.Generated +public interface GetAgentGatewayRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.GetAgentGatewayRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. A name of the AgentGateway to get. Must be in the format
+   * `projects/*/locations/*/agentGateways/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. A name of the AgentGateway to get. Must be in the format
+   * `projects/*/locations/*/agentGateways/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetEndpointPolicyRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetEndpointPolicyRequest.java index 40a22f5b63ce..9237dcf24646 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetEndpointPolicyRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetEndpointPolicyRequest.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. A name of the EndpointPolicy to get. Must be in the format
-   * `projects/*/locations/global/endpointPolicies/*`.
+   * `projects/*/locations/*/endpointPolicies/*`.
    * 
* * @@ -107,7 +107,7 @@ public java.lang.String getName() { * *
    * Required. A name of the EndpointPolicy to get. Must be in the format
-   * `projects/*/locations/global/endpointPolicies/*`.
+   * `projects/*/locations/*/endpointPolicies/*`.
    * 
* * @@ -450,7 +450,7 @@ public Builder mergeFrom( * *
      * Required. A name of the EndpointPolicy to get. Must be in the format
-     * `projects/*/locations/global/endpointPolicies/*`.
+     * `projects/*/locations/*/endpointPolicies/*`.
      * 
* * @@ -476,7 +476,7 @@ public java.lang.String getName() { * *
      * Required. A name of the EndpointPolicy to get. Must be in the format
-     * `projects/*/locations/global/endpointPolicies/*`.
+     * `projects/*/locations/*/endpointPolicies/*`.
      * 
* * @@ -502,7 +502,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. A name of the EndpointPolicy to get. Must be in the format
-     * `projects/*/locations/global/endpointPolicies/*`.
+     * `projects/*/locations/*/endpointPolicies/*`.
      * 
* * @@ -527,7 +527,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. A name of the EndpointPolicy to get. Must be in the format
-     * `projects/*/locations/global/endpointPolicies/*`.
+     * `projects/*/locations/*/endpointPolicies/*`.
      * 
* * @@ -548,7 +548,7 @@ public Builder clearName() { * *
      * Required. A name of the EndpointPolicy to get. Must be in the format
-     * `projects/*/locations/global/endpointPolicies/*`.
+     * `projects/*/locations/*/endpointPolicies/*`.
      * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetEndpointPolicyRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetEndpointPolicyRequestOrBuilder.java index bf0cf41b605a..cd549dca8591 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetEndpointPolicyRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetEndpointPolicyRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface GetEndpointPolicyRequestOrBuilder * *
    * Required. A name of the EndpointPolicy to get. Must be in the format
-   * `projects/*/locations/global/endpointPolicies/*`.
+   * `projects/*/locations/*/endpointPolicies/*`.
    * 
* * @@ -47,7 +47,7 @@ public interface GetEndpointPolicyRequestOrBuilder * *
    * Required. A name of the EndpointPolicy to get. Must be in the format
-   * `projects/*/locations/global/endpointPolicies/*`.
+   * `projects/*/locations/*/endpointPolicies/*`.
    * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetGrpcRouteRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetGrpcRouteRequest.java index cadb2cb34410..2ff32c84fd60 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetGrpcRouteRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetGrpcRouteRequest.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. A name of the GrpcRoute to get. Must be in the format
-   * `projects/*/locations/global/grpcRoutes/*`.
+   * `projects/*/locations/*/grpcRoutes/*`.
    * 
* * @@ -107,7 +107,7 @@ public java.lang.String getName() { * *
    * Required. A name of the GrpcRoute to get. Must be in the format
-   * `projects/*/locations/global/grpcRoutes/*`.
+   * `projects/*/locations/*/grpcRoutes/*`.
    * 
* * @@ -447,7 +447,7 @@ public Builder mergeFrom( * *
      * Required. A name of the GrpcRoute to get. Must be in the format
-     * `projects/*/locations/global/grpcRoutes/*`.
+     * `projects/*/locations/*/grpcRoutes/*`.
      * 
* * @@ -473,7 +473,7 @@ public java.lang.String getName() { * *
      * Required. A name of the GrpcRoute to get. Must be in the format
-     * `projects/*/locations/global/grpcRoutes/*`.
+     * `projects/*/locations/*/grpcRoutes/*`.
      * 
* * @@ -499,7 +499,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. A name of the GrpcRoute to get. Must be in the format
-     * `projects/*/locations/global/grpcRoutes/*`.
+     * `projects/*/locations/*/grpcRoutes/*`.
      * 
* * @@ -524,7 +524,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. A name of the GrpcRoute to get. Must be in the format
-     * `projects/*/locations/global/grpcRoutes/*`.
+     * `projects/*/locations/*/grpcRoutes/*`.
      * 
* * @@ -545,7 +545,7 @@ public Builder clearName() { * *
      * Required. A name of the GrpcRoute to get. Must be in the format
-     * `projects/*/locations/global/grpcRoutes/*`.
+     * `projects/*/locations/*/grpcRoutes/*`.
      * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetGrpcRouteRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetGrpcRouteRequestOrBuilder.java index 5f47ddf84c34..2ed70bc32597 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetGrpcRouteRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetGrpcRouteRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface GetGrpcRouteRequestOrBuilder * *
    * Required. A name of the GrpcRoute to get. Must be in the format
-   * `projects/*/locations/global/grpcRoutes/*`.
+   * `projects/*/locations/*/grpcRoutes/*`.
    * 
* * @@ -47,7 +47,7 @@ public interface GetGrpcRouteRequestOrBuilder * *
    * Required. A name of the GrpcRoute to get. Must be in the format
-   * `projects/*/locations/global/grpcRoutes/*`.
+   * `projects/*/locations/*/grpcRoutes/*`.
    * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetHttpRouteRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetHttpRouteRequest.java index d93ff0b56b1b..7624dd4bce2f 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetHttpRouteRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetHttpRouteRequest.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. A name of the HttpRoute to get. Must be in the format
-   * `projects/*/locations/global/httpRoutes/*`.
+   * `projects/*/locations/*/httpRoutes/*`.
    * 
* * @@ -107,7 +107,7 @@ public java.lang.String getName() { * *
    * Required. A name of the HttpRoute to get. Must be in the format
-   * `projects/*/locations/global/httpRoutes/*`.
+   * `projects/*/locations/*/httpRoutes/*`.
    * 
* * @@ -447,7 +447,7 @@ public Builder mergeFrom( * *
      * Required. A name of the HttpRoute to get. Must be in the format
-     * `projects/*/locations/global/httpRoutes/*`.
+     * `projects/*/locations/*/httpRoutes/*`.
      * 
* * @@ -473,7 +473,7 @@ public java.lang.String getName() { * *
      * Required. A name of the HttpRoute to get. Must be in the format
-     * `projects/*/locations/global/httpRoutes/*`.
+     * `projects/*/locations/*/httpRoutes/*`.
      * 
* * @@ -499,7 +499,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. A name of the HttpRoute to get. Must be in the format
-     * `projects/*/locations/global/httpRoutes/*`.
+     * `projects/*/locations/*/httpRoutes/*`.
      * 
* * @@ -524,7 +524,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. A name of the HttpRoute to get. Must be in the format
-     * `projects/*/locations/global/httpRoutes/*`.
+     * `projects/*/locations/*/httpRoutes/*`.
      * 
* * @@ -545,7 +545,7 @@ public Builder clearName() { * *
      * Required. A name of the HttpRoute to get. Must be in the format
-     * `projects/*/locations/global/httpRoutes/*`.
+     * `projects/*/locations/*/httpRoutes/*`.
      * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetHttpRouteRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetHttpRouteRequestOrBuilder.java index a1994d052e2e..5088242c3a77 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetHttpRouteRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetHttpRouteRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface GetHttpRouteRequestOrBuilder * *
    * Required. A name of the HttpRoute to get. Must be in the format
-   * `projects/*/locations/global/httpRoutes/*`.
+   * `projects/*/locations/*/httpRoutes/*`.
    * 
* * @@ -47,7 +47,7 @@ public interface GetHttpRouteRequestOrBuilder * *
    * Required. A name of the HttpRoute to get. Must be in the format
-   * `projects/*/locations/global/httpRoutes/*`.
+   * `projects/*/locations/*/httpRoutes/*`.
    * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetMeshRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetMeshRequest.java index 8ddf4e436504..23f92c271acc 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetMeshRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetMeshRequest.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. A name of the Mesh to get. Must be in the format
-   * `projects/*/locations/global/meshes/*`.
+   * `projects/*/locations/*/meshes/*`.
    * 
* * @@ -107,7 +107,7 @@ public java.lang.String getName() { * *
    * Required. A name of the Mesh to get. Must be in the format
-   * `projects/*/locations/global/meshes/*`.
+   * `projects/*/locations/*/meshes/*`.
    * 
* * @@ -446,7 +446,7 @@ public Builder mergeFrom( * *
      * Required. A name of the Mesh to get. Must be in the format
-     * `projects/*/locations/global/meshes/*`.
+     * `projects/*/locations/*/meshes/*`.
      * 
* * @@ -472,7 +472,7 @@ public java.lang.String getName() { * *
      * Required. A name of the Mesh to get. Must be in the format
-     * `projects/*/locations/global/meshes/*`.
+     * `projects/*/locations/*/meshes/*`.
      * 
* * @@ -498,7 +498,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. A name of the Mesh to get. Must be in the format
-     * `projects/*/locations/global/meshes/*`.
+     * `projects/*/locations/*/meshes/*`.
      * 
* * @@ -523,7 +523,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. A name of the Mesh to get. Must be in the format
-     * `projects/*/locations/global/meshes/*`.
+     * `projects/*/locations/*/meshes/*`.
      * 
* * @@ -544,7 +544,7 @@ public Builder clearName() { * *
      * Required. A name of the Mesh to get. Must be in the format
-     * `projects/*/locations/global/meshes/*`.
+     * `projects/*/locations/*/meshes/*`.
      * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetMeshRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetMeshRequestOrBuilder.java index e12ef37e28d4..e8e843e7134b 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetMeshRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetMeshRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface GetMeshRequestOrBuilder * *
    * Required. A name of the Mesh to get. Must be in the format
-   * `projects/*/locations/global/meshes/*`.
+   * `projects/*/locations/*/meshes/*`.
    * 
* * @@ -47,7 +47,7 @@ public interface GetMeshRequestOrBuilder * *
    * Required. A name of the Mesh to get. Must be in the format
-   * `projects/*/locations/global/meshes/*`.
+   * `projects/*/locations/*/meshes/*`.
    * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTcpRouteRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTcpRouteRequest.java index 470d94197a2a..22529b67d26b 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTcpRouteRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTcpRouteRequest.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. A name of the TcpRoute to get. Must be in the format
-   * `projects/*/locations/global/tcpRoutes/*`.
+   * `projects/*/locations/*/tcpRoutes/*`.
    * 
* * @@ -107,7 +107,7 @@ public java.lang.String getName() { * *
    * Required. A name of the TcpRoute to get. Must be in the format
-   * `projects/*/locations/global/tcpRoutes/*`.
+   * `projects/*/locations/*/tcpRoutes/*`.
    * 
* * @@ -447,7 +447,7 @@ public Builder mergeFrom( * *
      * Required. A name of the TcpRoute to get. Must be in the format
-     * `projects/*/locations/global/tcpRoutes/*`.
+     * `projects/*/locations/*/tcpRoutes/*`.
      * 
* * @@ -473,7 +473,7 @@ public java.lang.String getName() { * *
      * Required. A name of the TcpRoute to get. Must be in the format
-     * `projects/*/locations/global/tcpRoutes/*`.
+     * `projects/*/locations/*/tcpRoutes/*`.
      * 
* * @@ -499,7 +499,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. A name of the TcpRoute to get. Must be in the format
-     * `projects/*/locations/global/tcpRoutes/*`.
+     * `projects/*/locations/*/tcpRoutes/*`.
      * 
* * @@ -524,7 +524,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. A name of the TcpRoute to get. Must be in the format
-     * `projects/*/locations/global/tcpRoutes/*`.
+     * `projects/*/locations/*/tcpRoutes/*`.
      * 
* * @@ -545,7 +545,7 @@ public Builder clearName() { * *
      * Required. A name of the TcpRoute to get. Must be in the format
-     * `projects/*/locations/global/tcpRoutes/*`.
+     * `projects/*/locations/*/tcpRoutes/*`.
      * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTcpRouteRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTcpRouteRequestOrBuilder.java index 30d2ca705923..e2a7d9b6e252 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTcpRouteRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTcpRouteRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface GetTcpRouteRequestOrBuilder * *
    * Required. A name of the TcpRoute to get. Must be in the format
-   * `projects/*/locations/global/tcpRoutes/*`.
+   * `projects/*/locations/*/tcpRoutes/*`.
    * 
* * @@ -47,7 +47,7 @@ public interface GetTcpRouteRequestOrBuilder * *
    * Required. A name of the TcpRoute to get. Must be in the format
-   * `projects/*/locations/global/tcpRoutes/*`.
+   * `projects/*/locations/*/tcpRoutes/*`.
    * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTlsRouteRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTlsRouteRequest.java index f079560de704..f471fdc0632a 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTlsRouteRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTlsRouteRequest.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. A name of the TlsRoute to get. Must be in the format
-   * `projects/*/locations/global/tlsRoutes/*`.
+   * `projects/*/locations/*/tlsRoutes/*`.
    * 
* * @@ -107,7 +107,7 @@ public java.lang.String getName() { * *
    * Required. A name of the TlsRoute to get. Must be in the format
-   * `projects/*/locations/global/tlsRoutes/*`.
+   * `projects/*/locations/*/tlsRoutes/*`.
    * 
* * @@ -447,7 +447,7 @@ public Builder mergeFrom( * *
      * Required. A name of the TlsRoute to get. Must be in the format
-     * `projects/*/locations/global/tlsRoutes/*`.
+     * `projects/*/locations/*/tlsRoutes/*`.
      * 
* * @@ -473,7 +473,7 @@ public java.lang.String getName() { * *
      * Required. A name of the TlsRoute to get. Must be in the format
-     * `projects/*/locations/global/tlsRoutes/*`.
+     * `projects/*/locations/*/tlsRoutes/*`.
      * 
* * @@ -499,7 +499,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. A name of the TlsRoute to get. Must be in the format
-     * `projects/*/locations/global/tlsRoutes/*`.
+     * `projects/*/locations/*/tlsRoutes/*`.
      * 
* * @@ -524,7 +524,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. A name of the TlsRoute to get. Must be in the format
-     * `projects/*/locations/global/tlsRoutes/*`.
+     * `projects/*/locations/*/tlsRoutes/*`.
      * 
* * @@ -545,7 +545,7 @@ public Builder clearName() { * *
      * Required. A name of the TlsRoute to get. Must be in the format
-     * `projects/*/locations/global/tlsRoutes/*`.
+     * `projects/*/locations/*/tlsRoutes/*`.
      * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTlsRouteRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTlsRouteRequestOrBuilder.java index a984f11582c5..37d61cd06c05 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTlsRouteRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTlsRouteRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface GetTlsRouteRequestOrBuilder * *
    * Required. A name of the TlsRoute to get. Must be in the format
-   * `projects/*/locations/global/tlsRoutes/*`.
+   * `projects/*/locations/*/tlsRoutes/*`.
    * 
* * @@ -47,7 +47,7 @@ public interface GetTlsRouteRequestOrBuilder * *
    * Required. A name of the TlsRoute to get. Must be in the format
-   * `projects/*/locations/global/tlsRoutes/*`.
+   * `projects/*/locations/*/tlsRoutes/*`.
    * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GrpcRoute.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GrpcRoute.java index 7a531b52a8e1..3a9b3013dce6 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GrpcRoute.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GrpcRoute.java @@ -14608,7 +14608,7 @@ public com.google.cloud.networkservices.v1.GrpcRoute.RouteRule getDefaultInstanc * *
    * Identifier. Name of the GrpcRoute resource. It matches pattern
-   * `projects/*/locations/global/grpcRoutes/<grpc_route_name>`
+   * `projects/*/locations/*/grpcRoutes/<grpc_route_name>`
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -14633,7 +14633,7 @@ public java.lang.String getName() { * *
    * Identifier. Name of the GrpcRoute resource. It matches pattern
-   * `projects/*/locations/global/grpcRoutes/<grpc_route_name>`
+   * `projects/*/locations/*/grpcRoutes/<grpc_route_name>`
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -15174,7 +15174,7 @@ public com.google.protobuf.ByteString getHostnamesBytes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -15195,7 +15195,7 @@ public com.google.protobuf.ProtocolStringList getMeshesList() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -15216,7 +15216,7 @@ public int getMeshesCount() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -15238,7 +15238,7 @@ public java.lang.String getMeshes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -15267,7 +15267,7 @@ public com.google.protobuf.ByteString getMeshesBytes(int index) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -15289,7 +15289,7 @@ public com.google.protobuf.ProtocolStringList getGatewaysList() { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -15311,7 +15311,7 @@ public int getGatewaysCount() { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -15334,7 +15334,7 @@ public java.lang.String getGateways(int index) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -16143,7 +16143,7 @@ public Builder mergeFrom( * *
      * Identifier. Name of the GrpcRoute resource. It matches pattern
-     * `projects/*/locations/global/grpcRoutes/<grpc_route_name>`
+     * `projects/*/locations/*/grpcRoutes/<grpc_route_name>`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -16167,7 +16167,7 @@ public java.lang.String getName() { * *
      * Identifier. Name of the GrpcRoute resource. It matches pattern
-     * `projects/*/locations/global/grpcRoutes/<grpc_route_name>`
+     * `projects/*/locations/*/grpcRoutes/<grpc_route_name>`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -16191,7 +16191,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Identifier. Name of the GrpcRoute resource. It matches pattern
-     * `projects/*/locations/global/grpcRoutes/<grpc_route_name>`
+     * `projects/*/locations/*/grpcRoutes/<grpc_route_name>`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -16214,7 +16214,7 @@ public Builder setName(java.lang.String value) { * *
      * Identifier. Name of the GrpcRoute resource. It matches pattern
-     * `projects/*/locations/global/grpcRoutes/<grpc_route_name>`
+     * `projects/*/locations/*/grpcRoutes/<grpc_route_name>`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -16233,7 +16233,7 @@ public Builder clearName() { * *
      * Identifier. Name of the GrpcRoute resource. It matches pattern
-     * `projects/*/locations/global/grpcRoutes/<grpc_route_name>`
+     * `projects/*/locations/*/grpcRoutes/<grpc_route_name>`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -17546,7 +17546,7 @@ private void ensureMeshesIsMutable() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -17568,7 +17568,7 @@ public com.google.protobuf.ProtocolStringList getMeshesList() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -17589,7 +17589,7 @@ public int getMeshesCount() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -17611,7 +17611,7 @@ public java.lang.String getMeshes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -17633,7 +17633,7 @@ public com.google.protobuf.ByteString getMeshesBytes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -17663,7 +17663,7 @@ public Builder setMeshes(int index, java.lang.String value) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -17692,7 +17692,7 @@ public Builder addMeshes(java.lang.String value) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -17718,7 +17718,7 @@ public Builder addAllMeshes(java.lang.Iterable values) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -17743,7 +17743,7 @@ public Builder clearMeshes() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -17784,7 +17784,7 @@ private void ensureGatewaysIsMutable() { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -17807,7 +17807,7 @@ public com.google.protobuf.ProtocolStringList getGatewaysList() { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -17829,7 +17829,7 @@ public int getGatewaysCount() { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -17852,7 +17852,7 @@ public java.lang.String getGateways(int index) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -17875,7 +17875,7 @@ public com.google.protobuf.ByteString getGatewaysBytes(int index) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -17906,7 +17906,7 @@ public Builder setGateways(int index, java.lang.String value) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -17936,7 +17936,7 @@ public Builder addGateways(java.lang.String value) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -17963,7 +17963,7 @@ public Builder addAllGateways(java.lang.Iterable values) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -17989,7 +17989,7 @@ public Builder clearGateways() { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GrpcRouteOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GrpcRouteOrBuilder.java index eb6a751f7016..6fbac0dc15d9 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GrpcRouteOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GrpcRouteOrBuilder.java @@ -31,7 +31,7 @@ public interface GrpcRouteOrBuilder * *
    * Identifier. Name of the GrpcRoute resource. It matches pattern
-   * `projects/*/locations/global/grpcRoutes/<grpc_route_name>`
+   * `projects/*/locations/*/grpcRoutes/<grpc_route_name>`
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -45,7 +45,7 @@ public interface GrpcRouteOrBuilder * *
    * Identifier. Name of the GrpcRoute resource. It matches pattern
-   * `projects/*/locations/global/grpcRoutes/<grpc_route_name>`
+   * `projects/*/locations/*/grpcRoutes/<grpc_route_name>`
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -433,7 +433,7 @@ java.lang.String getLabelsOrDefault( * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -452,7 +452,7 @@ java.lang.String getLabelsOrDefault( * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -471,7 +471,7 @@ java.lang.String getLabelsOrDefault( * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -491,7 +491,7 @@ java.lang.String getLabelsOrDefault( * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -512,7 +512,7 @@ java.lang.String getLabelsOrDefault( * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -532,7 +532,7 @@ java.lang.String getLabelsOrDefault( * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -552,7 +552,7 @@ java.lang.String getLabelsOrDefault( * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -573,7 +573,7 @@ java.lang.String getLabelsOrDefault( * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRoute.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRoute.java index d2bdf838d59c..fbf60b664871 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRoute.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRoute.java @@ -30393,7 +30393,7 @@ public com.google.cloud.networkservices.v1.HttpRoute.RouteRule getDefaultInstanc * *
    * Identifier. Name of the HttpRoute resource. It matches pattern
-   * `projects/*/locations/global/httpRoutes/http_route_name>`.
+   * `projects/*/locations/*/httpRoutes/http_route_name>`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -30418,7 +30418,7 @@ public java.lang.String getName() { * *
    * Identifier. Name of the HttpRoute resource. It matches pattern
-   * `projects/*/locations/global/httpRoutes/http_route_name>`.
+   * `projects/*/locations/*/httpRoutes/http_route_name>`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -30824,7 +30824,7 @@ public com.google.protobuf.ByteString getHostnamesBytes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -30847,7 +30847,7 @@ public com.google.protobuf.ProtocolStringList getMeshesList() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -30870,7 +30870,7 @@ public int getMeshesCount() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -30894,7 +30894,7 @@ public java.lang.String getMeshes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -30925,7 +30925,7 @@ public com.google.protobuf.ByteString getMeshesBytes(int index) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -30947,7 +30947,7 @@ public com.google.protobuf.ProtocolStringList getGatewaysList() { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -30969,7 +30969,7 @@ public int getGatewaysCount() { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -30992,7 +30992,7 @@ public java.lang.String getGateways(int index) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -31898,7 +31898,7 @@ public Builder mergeFrom( * *
      * Identifier. Name of the HttpRoute resource. It matches pattern
-     * `projects/*/locations/global/httpRoutes/http_route_name>`.
+     * `projects/*/locations/*/httpRoutes/http_route_name>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -31922,7 +31922,7 @@ public java.lang.String getName() { * *
      * Identifier. Name of the HttpRoute resource. It matches pattern
-     * `projects/*/locations/global/httpRoutes/http_route_name>`.
+     * `projects/*/locations/*/httpRoutes/http_route_name>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -31946,7 +31946,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Identifier. Name of the HttpRoute resource. It matches pattern
-     * `projects/*/locations/global/httpRoutes/http_route_name>`.
+     * `projects/*/locations/*/httpRoutes/http_route_name>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -31969,7 +31969,7 @@ public Builder setName(java.lang.String value) { * *
      * Identifier. Name of the HttpRoute resource. It matches pattern
-     * `projects/*/locations/global/httpRoutes/http_route_name>`.
+     * `projects/*/locations/*/httpRoutes/http_route_name>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -31988,7 +31988,7 @@ public Builder clearName() { * *
      * Identifier. Name of the HttpRoute resource. It matches pattern
-     * `projects/*/locations/global/httpRoutes/http_route_name>`.
+     * `projects/*/locations/*/httpRoutes/http_route_name>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -33066,7 +33066,7 @@ private void ensureMeshesIsMutable() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -33090,7 +33090,7 @@ public com.google.protobuf.ProtocolStringList getMeshesList() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -33113,7 +33113,7 @@ public int getMeshesCount() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -33137,7 +33137,7 @@ public java.lang.String getMeshes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -33161,7 +33161,7 @@ public com.google.protobuf.ByteString getMeshesBytes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -33193,7 +33193,7 @@ public Builder setMeshes(int index, java.lang.String value) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -33224,7 +33224,7 @@ public Builder addMeshes(java.lang.String value) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -33252,7 +33252,7 @@ public Builder addAllMeshes(java.lang.Iterable values) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -33279,7 +33279,7 @@ public Builder clearMeshes() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -33322,7 +33322,7 @@ private void ensureGatewaysIsMutable() { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -33345,7 +33345,7 @@ public com.google.protobuf.ProtocolStringList getGatewaysList() { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -33367,7 +33367,7 @@ public int getGatewaysCount() { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -33390,7 +33390,7 @@ public java.lang.String getGateways(int index) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -33413,7 +33413,7 @@ public com.google.protobuf.ByteString getGatewaysBytes(int index) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -33444,7 +33444,7 @@ public Builder setGateways(int index, java.lang.String value) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -33474,7 +33474,7 @@ public Builder addGateways(java.lang.String value) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -33501,7 +33501,7 @@ public Builder addAllGateways(java.lang.Iterable values) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -33527,7 +33527,7 @@ public Builder clearGateways() { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRouteOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRouteOrBuilder.java index a1a302ab15a2..b8ea17a30587 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRouteOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRouteOrBuilder.java @@ -31,7 +31,7 @@ public interface HttpRouteOrBuilder * *
    * Identifier. Name of the HttpRoute resource. It matches pattern
-   * `projects/*/locations/global/httpRoutes/http_route_name>`.
+   * `projects/*/locations/*/httpRoutes/http_route_name>`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -45,7 +45,7 @@ public interface HttpRouteOrBuilder * *
    * Identifier. Name of the HttpRoute resource. It matches pattern
-   * `projects/*/locations/global/httpRoutes/http_route_name>`.
+   * `projects/*/locations/*/httpRoutes/http_route_name>`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -342,7 +342,7 @@ public interface HttpRouteOrBuilder * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -363,7 +363,7 @@ public interface HttpRouteOrBuilder * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -384,7 +384,7 @@ public interface HttpRouteOrBuilder * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -406,7 +406,7 @@ public interface HttpRouteOrBuilder * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -429,7 +429,7 @@ public interface HttpRouteOrBuilder * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -449,7 +449,7 @@ public interface HttpRouteOrBuilder * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -469,7 +469,7 @@ public interface HttpRouteOrBuilder * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -490,7 +490,7 @@ public interface HttpRouteOrBuilder * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRouteProto.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRouteProto.java index e569969565e7..2e4a04fcab27 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRouteProto.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRouteProto.java @@ -163,8 +163,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n" + "0google/cloud/networkservices/v1/http_route.proto\022\037google.cloud.networkservices" - + ".v1\032\037google/api/field_behavior.proto\032\031go" - + "ogle/api/resource.proto\032\036google/protobuf/duration.proto\032" + + ".v1\032\037google/api/field_behavior.proto\032\033go" + + "ogle/api/field_info.proto\032\031google/api/re" + + "source.proto\032\036google/protobuf/duration.proto\032" + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\217$\n" + "\tHttpRoute\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\026\n" @@ -179,18 +180,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010gateways\030\t \003(\tB.\340A\001\372A(\n" + "&networkservices.googleapis.com/Gateway\022K\n" + "\006labels\030\n" - + " \003(\013" - + "26.google.cloud.networkservices.v1.HttpRoute.LabelsEntryB\003\340A\001\022H\n" - + "\005rules\030\006 \003(\01324.g" - + "oogle.cloud.networkservices.v1.HttpRoute.RouteRuleB\003\340A\002\032\277\002\n" + + " \003(\01326.google.c" + + "loud.networkservices.v1.HttpRoute.LabelsEntryB\003\340A\001\022H\n" + + "\005rules\030\006 \003(\01324.google.cloud" + + ".networkservices.v1.HttpRoute.RouteRuleB\003\340A\002\032\277\002\n" + "\013HeaderMatch\022\025\n" + "\013exact_match\030\002 \001(\tH\000\022\025\n" + "\013regex_match\030\003 \001(\tH\000\022\026\n" + "\014prefix_match\030\004 \001(\tH\000\022\027\n\r" + "present_match\030\005 \001(\010H\000\022\026\n" + "\014suffix_match\030\006 \001(\tH\000\022Z\n" - + "\013range_match\030\007 \001(\0132C.google.cloud.networkservic" - + "es.v1.HttpRoute.HeaderMatch.IntegerRangeH\000\022\016\n" + + "\013range_match\030\007 \001(\013" + + "2C.google.cloud.networkservices.v1.HttpRoute.HeaderMatch.IntegerRangeH\000\022\016\n" + "\006header\030\001 \001(\t\022\024\n" + "\014invert_match\030\010 \001(\010\032*\n" + "\014IntegerRange\022\r\n" @@ -208,25 +209,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014prefix_match\030\002 \001(\tH\000\022\025\n" + "\013regex_match\030\003 \001(\tH\000\022\023\n" + "\013ignore_case\030\004 \001(\010\022G\n" - + "\007headers\030\005 \003(\01326." - + "google.cloud.networkservices.v1.HttpRoute.HeaderMatch\022X\n" - + "\020query_parameters\030\006 \003(\0132" - + ">.google.cloud.networkservices.v1.HttpRoute.QueryParameterMatchB\013\n" + + "\007headers\030\005 \003(\01326.google.clou" + + "d.networkservices.v1.HttpRoute.HeaderMatch\022X\n" + + "\020query_parameters\030\006 \003(\0132>.google.cl" + + "oud.networkservices.v1.HttpRoute.QueryParameterMatchB\013\n" + "\tPathMatch\032\242\002\n" + "\013Destination\022@\n" + "\014service_name\030\001 \001(\tB*\372A\'\n" + "%compute.googleapis.com/BackendService\022\016\n" + "\006weight\030\002 \001(\005\022_\n" - + "\027request_header_modifier\030\003" - + " \001(\01329.google.cloud.networkservices.v1.HttpRoute.HeaderModifierB\003\340A\001\022`\n" - + "\030response_header_modifier\030\004 \001(\01329.google.cloud" - + ".networkservices.v1.HttpRoute.HeaderModifierB\003\340A\001\032\206\003\n" + + "\027request_header_modifier\030\003 \001(\01329.g" + + "oogle.cloud.networkservices.v1.HttpRoute.HeaderModifierB\003\340A\001\022`\n" + + "\030response_header_modifier\030\004 \001(\01329.google.cloud.networkser" + + "vices.v1.HttpRoute.HeaderModifierB\003\340A\001\032\206\003\n" + "\010Redirect\022\025\n\r" + "host_redirect\030\001 \001(\t\022\025\n\r" + "path_redirect\030\002 \001(\t\022\026\n" + "\016prefix_rewrite\030\003 \001(\t\022W\n\r" - + "response_code\030\004 \001(\0162@.go" - + "ogle.cloud.networkservices.v1.HttpRoute.Redirect.ResponseCode\022\026\n" + + "response_code\030\004 \001(\0162@.google.cloud." + + "networkservices.v1.HttpRoute.Redirect.ResponseCode\022\026\n" + "\016https_redirect\030\005 \001(\010\022\023\n" + "\013strip_query\030\006 \001(\010\022\025\n\r" + "port_redirect\030\007 \001(\005\"\226\001\n" @@ -238,10 +239,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022TEMPORARY_REDIRECT\020\004\022\026\n" + "\022PERMANENT_REDIRECT\020\005\032\301\002\n" + "\024FaultInjectionPolicy\022T\n" - + "\005delay\030\001 \001" - + "(\0132E.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Delay\022T\n" - + "\005abort\030\002 \001(\0132E.google.cloud.networkservices." - + "v1.HttpRoute.FaultInjectionPolicy.Abort\032K\n" + + "\005delay\030\001 \001(\0132E.google" + + ".cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Delay\022T\n" + + "\005abort\030\002 \001(\0132E." + + "google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Abort\032K\n" + "\005Delay\022.\n" + "\013fixed_delay\030\001 \001(\0132\031.google.protobuf.Duration\022\022\n\n" + "percentage\030\002 \001(\005\0320\n" @@ -251,10 +252,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035StatefulSessionAffinityPolicy\0222\n\n" + "cookie_ttl\030\001 \001(\0132\031.google.protobuf.DurationB\003\340A\002\032\232\002\n" + "\016HeaderModifier\022O\n" - + "\003set\030\001 " - + "\003(\0132B.google.cloud.networkservices.v1.HttpRoute.HeaderModifier.SetEntry\022O\n" - + "\003add\030\002" - + " \003(\0132B.google.cloud.networkservices.v1.HttpRoute.HeaderModifier.AddEntry\022\016\n" + + "\003set\030\001 \003(\0132B.googl" + + "e.cloud.networkservices.v1.HttpRoute.HeaderModifier.SetEntry\022O\n" + + "\003add\030\002 \003(\0132B.goog" + + "le.cloud.networkservices.v1.HttpRoute.HeaderModifier.AddEntry\022\016\n" + "\006remove\030\003 \003(\t\032*\n" + "\010SetEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -270,8 +271,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013num_retries\030\002 \001(\005\0222\n" + "\017per_try_timeout\030\003 \001(\0132\031.google.protobuf.Duration\032\177\n" + "\023RequestMirrorPolicy\022K\n" - + "\013destination\030\001 \001(\0132" - + "6.google.cloud.networkservices.v1.HttpRoute.Destination\022\033\n" + + "\013destination\030\001 \001(\01326.google.cl" + + "oud.networkservices.v1.HttpRoute.Destination\022\033\n" + "\016mirror_percent\030\002 \001(\002B\003\340A\001\032\305\001\n\n" + "CorsPolicy\022\025\n\r" + "allow_origins\030\001 \003(\t\022\034\n" @@ -288,48 +289,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006status\030\001 \001(\005B\003\340A\002B\n\n" + "\010HttpBody\032\262\010\n" + "\013RouteAction\022L\n" - + "\014destinations\030\001 \003(\01326.googl" - + "e.cloud.networkservices.v1.HttpRoute.Destination\022E\n" - + "\010redirect\030\002 \001(\01323.google.clou" - + "d.networkservices.v1.HttpRoute.Redirect\022_\n" - + "\026fault_injection_policy\030\004 \001(\0132?.google" - + ".cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy\022Z\n" - + "\027request_header_modifier\030\005" - + " \001(\01329.google.cloud.networkservices.v1.HttpRoute.HeaderModifier\022[\n" - + "\030response_header_modifier\030\006 \001(\01329.google.cloud.ne" - + "tworkservices.v1.HttpRoute.HeaderModifier\022J\n" + + "\014destinations\030\001" + + " \003(\01326.google.cloud.networkservices.v1.HttpRoute.Destination\022E\n" + + "\010redirect\030\002" + + " \001(\01323.google.cloud.networkservices.v1.HttpRoute.Redirect\022_\n" + + "\026fault_injection_policy\030\004 \001(\0132?.google.cloud.netw" + + "orkservices.v1.HttpRoute.FaultInjectionPolicy\022Z\n" + + "\027request_header_modifier\030\005 \001(\01329" + + ".google.cloud.networkservices.v1.HttpRoute.HeaderModifier\022[\n" + + "\030response_header_modifier\030\006" + + " \001(\01329.google.cloud.networkservices.v1.HttpRoute.HeaderModifier\022J\n" + "\013url_rewrite\030\007" + " \001(\01325.google.cloud.networkservices.v1.HttpRoute.URLRewrite\022*\n" + "\007timeout\030\010 \001(\0132\031.google.protobuf.Duration\022L\n" - + "\014retry_policy\030\t \001(\01326.google.cloud.n" - + "etworkservices.v1.HttpRoute.RetryPolicy\022]\n" + + "\014retry_policy\030\t" + + " \001(\01326.google.cloud.networkservices.v1.HttpRoute.RetryPolicy\022]\n" + "\025request_mirror_policy\030\n" + " \001(\0132>.google.cloud.networkservices.v1.HttpRoute.RequestMirrorPolicy\022J\n" - + "\013cors_policy\030\013 \001(\01325.go" - + "ogle.cloud.networkservices.v1.HttpRoute.CorsPolicy\022p\n" - + "\031stateful_session_affinity\030\014 \001(\0132H.google.cloud.networkservices.v1." - + "HttpRoute.StatefulSessionAffinityPolicyB\003\340A\001\022[\n" + + "\013cors_policy\030\013 \001(\01325.google.cloud." + + "networkservices.v1.HttpRoute.CorsPolicy\022p\n" + + "\031stateful_session_affinity\030\014 \001(\0132H.goo" + + "gle.cloud.networkservices.v1.HttpRoute.StatefulSessionAffinityPolicyB\003\340A\001\022[\n" + "\017direct_response\030\r" - + " \001(\0132=.google.c" - + "loud.networkservices.v1.HttpRoute.HttpDirectResponseB\003\340A\001\0224\n" + + " \001(\0132=.google.cloud.networ" + + "kservices.v1.HttpRoute.HttpDirectResponseB\003\340A\001\0224\n" + "\014idle_timeout\030\016" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\032\233\001\n" + "\tRouteRule\022F\n" + "\007matches\030\001" + " \003(\01325.google.cloud.networkservices.v1.HttpRoute.RouteMatch\022F\n" - + "\006action\030\002" - + " \001(\01326.google.cloud.networkservices.v1.HttpRoute.RouteAction\032-\n" + + "\006action\030\002 \001" + + "(\01326.google.cloud.networkservices.v1.HttpRoute.RouteAction\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:n\352Ak\n" - + "(networkservices.googleapis.com/HttpRo" - + "ute\022?projects/{project}/locations/{location}/httpRoutes/{http_route}\"\245\001\n" + + "(networkservices.googleapis.com/HttpRoute\022?projec" + + "ts/{project}/locations/{location}/httpRoutes/{http_route}\"\272\001\n" + "\025ListHttpRoutesRequest\022@\n" - + "\006parent\030\001 \001(\tB0\340A\002\372A*\022(" - + "networkservices.googleapis.com/HttpRoute\022\021\n" + + "\006parent\030\001 \001(" + + "\tB0\340A\002\372A*\022(networkservices.googleapis.com/HttpRoute\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\022#\n" - + "\026return_partial_success\030\004 \001(\010B\003\340A\001\"\207\001\n" + + "\026return_partial_success\030\004 \001(\010B\003\340A\001\022\023\n" + + "\006filter\030\005 \001(\tB\003\340A\001\"\207\001\n" + "\026ListHttpRoutesResponse\022?\n" + "\013http_routes\030\001" + " \003(\0132*.google.cloud.networkservices.v1.HttpRoute\022\027\n" @@ -337,32 +339,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013unreachable\030\003 \003(\t\"U\n" + "\023GetHttpRouteRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" - + "(networkservices.googleapis.com/HttpRoute\"\273\001\n" + + "(networkservices.googleapis.com/HttpRoute\"\334\001\n" + "\026CreateHttpRouteRequest\022@\n" - + "\006parent\030\001 \001(" - + "\tB0\340A\002\372A*\022(networkservices.googleapis.com/HttpRoute\022\032\n\r" + + "\006parent\030\001 \001(\tB0\340A\002\372" + + "A*\022(networkservices.googleapis.com/HttpRoute\022\032\n\r" + "http_route_id\030\002 \001(\tB\003\340A\002\022C\n\n" - + "http_route\030\003 \001" - + "(\0132*.google.cloud.networkservices.v1.HttpRouteB\003\340A\002\"\223\001\n" + + "http_route\030\003" + + " \001(\0132*.google.cloud.networkservices.v1.HttpRouteB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\223\001\n" + "\026UpdateHttpRouteRequest\0224\n" + "\013update_mask\030\001" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022C\n\n" - + "http_route\030\002 \001(\0132*.googl" - + "e.cloud.networkservices.v1.HttpRouteB\003\340A\002\"X\n" + + "http_route\030\002 \001(\0132*.go" + + "ogle.cloud.networkservices.v1.HttpRouteB\003\340A\002\"X\n" + "\026DeleteHttpRouteRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + "(networkservices.googleapis.com/HttpRouteB\357\001\n" - + "#com.google.cloud.networkservices.v1B\016HttpRouteProtoP\001ZMcloud.goo" - + "gle.com/go/networkservices/apiv1/network" - + "servicespb;networkservicespb\252\002\037Google.Cl" - + "oud.NetworkServices.V1\312\002\037Google\\Cloud\\Ne" - + "tworkServices\\V1\352\002\"Google::Cloud::NetworkServices::V1b\006proto3" + + "#com.google.cloud.networkservices.v1B\016HttpRouteProtoP\001ZMcloud." + + "google.com/go/networkservices/apiv1/netw" + + "orkservicespb;networkservicespb\252\002\037Google" + + ".Cloud.NetworkServices.V1\312\002\037Google\\Cloud" + + "\\NetworkServices\\V1\352\002\"Google::Cloud::NetworkServices::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(), com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), @@ -603,7 +607,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_networkservices_v1_ListHttpRoutesRequest_descriptor, new java.lang.String[] { - "Parent", "PageSize", "PageToken", "ReturnPartialSuccess", + "Parent", "PageSize", "PageToken", "ReturnPartialSuccess", "Filter", }); internal_static_google_cloud_networkservices_v1_ListHttpRoutesResponse_descriptor = getDescriptor().getMessageType(2); @@ -627,7 +631,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_networkservices_v1_CreateHttpRouteRequest_descriptor, new java.lang.String[] { - "Parent", "HttpRouteId", "HttpRoute", + "Parent", "HttpRouteId", "HttpRoute", "RequestId", }); internal_static_google_cloud_networkservices_v1_UpdateHttpRouteRequest_descriptor = getDescriptor().getMessageType(5); @@ -647,6 +651,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); @@ -654,6 +659,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor 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); registry.add(com.google.api.ResourceProto.resource); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysRequest.java new file mode 100644 index 000000000000..d92ac404dd79 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysRequest.java @@ -0,0 +1,1027 @@ +/* + * 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/cloud/networkservices/v1/agent_gateway.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +/** + * + * + *
+ * Request used with the ListAgentGateways method.
+ * 
+ * + * Protobuf type {@code google.cloud.networkservices.v1.ListAgentGatewaysRequest} + */ +@com.google.protobuf.Generated +public final class ListAgentGatewaysRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.ListAgentGatewaysRequest) + ListAgentGatewaysRequestOrBuilder { + 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= */ "", + "ListAgentGatewaysRequest"); + } + + // Use ListAgentGatewaysRequest.newBuilder() to construct. + private ListAgentGatewaysRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAgentGatewaysRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_ListAgentGatewaysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_ListAgentGatewaysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest.class, + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The project and location from which the AgentGateways should be
+   * listed, specified in the format `projects/*/locations/*`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The project and location from which the AgentGateways should be
+   * listed, specified in the format `projects/*/locations/*`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
+   * Optional. Maximum number of AgentGateways to return per call.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. The value returned by the last `ListAgentGatewaysResponse`
+   * Indicates that this is a continuation of a prior `ListAgentGateways`
+   * call, and that the system should return the next page of data.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The value returned by the last `ListAgentGatewaysResponse`
+   * Indicates that this is a continuation of a prior `ListAgentGateways`
+   * call, and that the system should return the next page of data.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RETURN_PARTIAL_SUCCESS_FIELD_NUMBER = 4; + private boolean returnPartialSuccess_ = false; + + /** + * + * + *
+   * Optional. If true, allow partial responses for multi-regional Aggregated
+   * List requests. Otherwise if one of the locations is down or unreachable,
+   * the Aggregated List request will fail.
+   * 
+ * + * bool return_partial_success = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + 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(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (returnPartialSuccess_ != false) { + output.writeBool(4, returnPartialSuccess_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (returnPartialSuccess_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, returnPartialSuccess_); + } + 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.cloud.networkservices.v1.ListAgentGatewaysRequest)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest other = + (com.google.cloud.networkservices.v1.ListAgentGatewaysRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getReturnPartialSuccess() != other.getReturnPartialSuccess()) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + RETURN_PARTIAL_SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPartialSuccess()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysRequest 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.cloud.networkservices.v1.ListAgentGatewaysRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysRequest 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.cloud.networkservices.v1.ListAgentGatewaysRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysRequest 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.cloud.networkservices.v1.ListAgentGatewaysRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysRequest 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.cloud.networkservices.v1.ListAgentGatewaysRequest 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 used with the ListAgentGateways method.
+   * 
+ * + * Protobuf type {@code google.cloud.networkservices.v1.ListAgentGatewaysRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.ListAgentGatewaysRequest) + com.google.cloud.networkservices.v1.ListAgentGatewaysRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_ListAgentGatewaysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_ListAgentGatewaysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest.class, + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest.Builder.class); + } + + // Construct using com.google.cloud.networkservices.v1.ListAgentGatewaysRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + returnPartialSuccess_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_ListAgentGatewaysRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.ListAgentGatewaysRequest + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.ListAgentGatewaysRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.ListAgentGatewaysRequest build() { + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.ListAgentGatewaysRequest buildPartial() { + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest result = + new com.google.cloud.networkservices.v1.ListAgentGatewaysRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.returnPartialSuccess_ = returnPartialSuccess_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.ListAgentGatewaysRequest) { + return mergeFrom((com.google.cloud.networkservices.v1.ListAgentGatewaysRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkservices.v1.ListAgentGatewaysRequest other) { + if (other + == com.google.cloud.networkservices.v1.ListAgentGatewaysRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getReturnPartialSuccess() != false) { + setReturnPartialSuccess(other.getReturnPartialSuccess()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + returnPartialSuccess_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The project and location from which the AgentGateways should be
+     * listed, specified in the format `projects/*/locations/*`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The project and location from which the AgentGateways should be
+     * listed, specified in the format `projects/*/locations/*`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The project and location from which the AgentGateways should be
+     * listed, specified in the format `projects/*/locations/*`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The project and location from which the AgentGateways should be
+     * listed, specified in the format `projects/*/locations/*`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The project and location from which the AgentGateways should be
+     * listed, specified in the format `projects/*/locations/*`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. Maximum number of AgentGateways to return per call.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Maximum number of AgentGateways to return per call.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Maximum number of AgentGateways to return per call.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. The value returned by the last `ListAgentGatewaysResponse`
+     * Indicates that this is a continuation of a prior `ListAgentGateways`
+     * call, and that the system should return the next page of data.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The value returned by the last `ListAgentGatewaysResponse`
+     * Indicates that this is a continuation of a prior `ListAgentGateways`
+     * call, and that the system should return the next page of data.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The value returned by the last `ListAgentGatewaysResponse`
+     * Indicates that this is a continuation of a prior `ListAgentGateways`
+     * call, and that the system should return the next page of data.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The value returned by the last `ListAgentGatewaysResponse`
+     * Indicates that this is a continuation of a prior `ListAgentGateways`
+     * call, and that the system should return the next page of data.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The value returned by the last `ListAgentGatewaysResponse`
+     * Indicates that this is a continuation of a prior `ListAgentGateways`
+     * call, and that the system should return the next page of data.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean returnPartialSuccess_; + + /** + * + * + *
+     * Optional. If true, allow partial responses for multi-regional Aggregated
+     * List requests. Otherwise if one of the locations is down or unreachable,
+     * the Aggregated List request will fail.
+     * 
+ * + * bool return_partial_success = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + /** + * + * + *
+     * Optional. If true, allow partial responses for multi-regional Aggregated
+     * List requests. Otherwise if one of the locations is down or unreachable,
+     * the Aggregated List request will fail.
+     * 
+ * + * bool return_partial_success = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The returnPartialSuccess to set. + * @return This builder for chaining. + */ + public Builder setReturnPartialSuccess(boolean value) { + + returnPartialSuccess_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If true, allow partial responses for multi-regional Aggregated
+     * List requests. Otherwise if one of the locations is down or unreachable,
+     * the Aggregated List request will fail.
+     * 
+ * + * bool return_partial_success = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReturnPartialSuccess() { + bitField0_ = (bitField0_ & ~0x00000008); + returnPartialSuccess_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.ListAgentGatewaysRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.ListAgentGatewaysRequest) + private static final com.google.cloud.networkservices.v1.ListAgentGatewaysRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.ListAgentGatewaysRequest(); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAgentGatewaysRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.ListAgentGatewaysRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysRequestOrBuilder.java new file mode 100644 index 000000000000..7fe4843333a8 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysRequestOrBuilder.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/cloud/networkservices/v1/agent_gateway.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +@com.google.protobuf.Generated +public interface ListAgentGatewaysRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.ListAgentGatewaysRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The project and location from which the AgentGateways should be
+   * listed, specified in the format `projects/*/locations/*`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The project and location from which the AgentGateways should be
+   * listed, specified in the format `projects/*/locations/*`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Maximum number of AgentGateways to return per call.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The value returned by the last `ListAgentGatewaysResponse`
+   * Indicates that this is a continuation of a prior `ListAgentGateways`
+   * call, and that the system should return the next page of data.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. The value returned by the last `ListAgentGatewaysResponse`
+   * Indicates that this is a continuation of a prior `ListAgentGateways`
+   * call, and that the system should return the next page of data.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. If true, allow partial responses for multi-regional Aggregated
+   * List requests. Otherwise if one of the locations is down or unreachable,
+   * the Aggregated List request will fail.
+   * 
+ * + * bool return_partial_success = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + boolean getReturnPartialSuccess(); +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysResponse.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysResponse.java new file mode 100644 index 000000000000..e24def5d77fd --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysResponse.java @@ -0,0 +1,1459 @@ +/* + * 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/cloud/networkservices/v1/agent_gateway.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +/** + * + * + *
+ * Response returned by the ListAgentGateways method.
+ * 
+ * + * Protobuf type {@code google.cloud.networkservices.v1.ListAgentGatewaysResponse} + */ +@com.google.protobuf.Generated +public final class ListAgentGatewaysResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.ListAgentGatewaysResponse) + ListAgentGatewaysResponseOrBuilder { + 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= */ "", + "ListAgentGatewaysResponse"); + } + + // Use ListAgentGatewaysResponse.newBuilder() to construct. + private ListAgentGatewaysResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAgentGatewaysResponse() { + agentGateways_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_ListAgentGatewaysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_ListAgentGatewaysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse.class, + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse.Builder.class); + } + + public static final int AGENT_GATEWAYS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List agentGateways_; + + /** + * + * + *
+   * List of AgentGateway resources.
+   * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + @java.lang.Override + public java.util.List getAgentGatewaysList() { + return agentGateways_; + } + + /** + * + * + *
+   * List of AgentGateway resources.
+   * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + @java.lang.Override + public java.util.List + getAgentGatewaysOrBuilderList() { + return agentGateways_; + } + + /** + * + * + *
+   * List of AgentGateway resources.
+   * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + @java.lang.Override + public int getAgentGatewaysCount() { + return agentGateways_.size(); + } + + /** + * + * + *
+   * List of AgentGateway resources.
+   * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway getAgentGateways(int index) { + return agentGateways_.get(index); + } + + /** + * + * + *
+   * List of AgentGateway resources.
+   * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGatewayOrBuilder getAgentGatewaysOrBuilder( + int index) { + return agentGateways_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * `next_page_token` is included. To get the next set of results, call this
+   * method again using the value of `next_page_token` as `page_token`.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * `next_page_token` is included. To get the next set of results, call this
+   * method again using the value of `next_page_token` as `page_token`.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Unreachable resources. Populated when the request attempts to list all
+   * resources across all supported locations, while some locations are
+   * temporarily unavailable.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Unreachable resources. Populated when the request attempts to list all
+   * resources across all supported locations, while some locations are
+   * temporarily unavailable.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Unreachable resources. Populated when the request attempts to list all
+   * resources across all supported locations, while some locations are
+   * temporarily unavailable.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+   * Unreachable resources. Populated when the request attempts to list all
+   * resources across all supported locations, while some locations are
+   * temporarily unavailable.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < agentGateways_.size(); i++) { + output.writeMessage(1, agentGateways_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(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 < agentGateways_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, agentGateways_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networkservices.v1.ListAgentGatewaysResponse)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse other = + (com.google.cloud.networkservices.v1.ListAgentGatewaysResponse) obj; + + if (!getAgentGatewaysList().equals(other.getAgentGatewaysList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) 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 (getAgentGatewaysCount() > 0) { + hash = (37 * hash) + AGENT_GATEWAYS_FIELD_NUMBER; + hash = (53 * hash) + getAgentGatewaysList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysResponse 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.cloud.networkservices.v1.ListAgentGatewaysResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysResponse 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.cloud.networkservices.v1.ListAgentGatewaysResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysResponse 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.cloud.networkservices.v1.ListAgentGatewaysResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysResponse 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.cloud.networkservices.v1.ListAgentGatewaysResponse 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 returned by the ListAgentGateways method.
+   * 
+ * + * Protobuf type {@code google.cloud.networkservices.v1.ListAgentGatewaysResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.ListAgentGatewaysResponse) + com.google.cloud.networkservices.v1.ListAgentGatewaysResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_ListAgentGatewaysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_ListAgentGatewaysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse.class, + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse.Builder.class); + } + + // Construct using com.google.cloud.networkservices.v1.ListAgentGatewaysResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (agentGatewaysBuilder_ == null) { + agentGateways_ = java.util.Collections.emptyList(); + } else { + agentGateways_ = null; + agentGatewaysBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_ListAgentGatewaysResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.ListAgentGatewaysResponse + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.ListAgentGatewaysResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.ListAgentGatewaysResponse build() { + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.ListAgentGatewaysResponse buildPartial() { + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse result = + new com.google.cloud.networkservices.v1.ListAgentGatewaysResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse result) { + if (agentGatewaysBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + agentGateways_ = java.util.Collections.unmodifiableList(agentGateways_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.agentGateways_ = agentGateways_; + } else { + result.agentGateways_ = agentGatewaysBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.ListAgentGatewaysResponse) { + return mergeFrom((com.google.cloud.networkservices.v1.ListAgentGatewaysResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkservices.v1.ListAgentGatewaysResponse other) { + if (other + == com.google.cloud.networkservices.v1.ListAgentGatewaysResponse.getDefaultInstance()) + return this; + if (agentGatewaysBuilder_ == null) { + if (!other.agentGateways_.isEmpty()) { + if (agentGateways_.isEmpty()) { + agentGateways_ = other.agentGateways_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAgentGatewaysIsMutable(); + agentGateways_.addAll(other.agentGateways_); + } + onChanged(); + } + } else { + if (!other.agentGateways_.isEmpty()) { + if (agentGatewaysBuilder_.isEmpty()) { + agentGatewaysBuilder_.dispose(); + agentGatewaysBuilder_ = null; + agentGateways_ = other.agentGateways_; + bitField0_ = (bitField0_ & ~0x00000001); + agentGatewaysBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAgentGatewaysFieldBuilder() + : null; + } else { + agentGatewaysBuilder_.addAllMessages(other.agentGateways_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.networkservices.v1.AgentGateway m = + input.readMessage( + com.google.cloud.networkservices.v1.AgentGateway.parser(), + extensionRegistry); + if (agentGatewaysBuilder_ == null) { + ensureAgentGatewaysIsMutable(); + agentGateways_.add(m); + } else { + agentGatewaysBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List agentGateways_ = + java.util.Collections.emptyList(); + + private void ensureAgentGatewaysIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + agentGateways_ = + new java.util.ArrayList( + agentGateways_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway, + com.google.cloud.networkservices.v1.AgentGateway.Builder, + com.google.cloud.networkservices.v1.AgentGatewayOrBuilder> + agentGatewaysBuilder_; + + /** + * + * + *
+     * List of AgentGateway resources.
+     * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public java.util.List getAgentGatewaysList() { + if (agentGatewaysBuilder_ == null) { + return java.util.Collections.unmodifiableList(agentGateways_); + } else { + return agentGatewaysBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * List of AgentGateway resources.
+     * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public int getAgentGatewaysCount() { + if (agentGatewaysBuilder_ == null) { + return agentGateways_.size(); + } else { + return agentGatewaysBuilder_.getCount(); + } + } + + /** + * + * + *
+     * List of AgentGateway resources.
+     * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public com.google.cloud.networkservices.v1.AgentGateway getAgentGateways(int index) { + if (agentGatewaysBuilder_ == null) { + return agentGateways_.get(index); + } else { + return agentGatewaysBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * List of AgentGateway resources.
+     * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public Builder setAgentGateways( + int index, com.google.cloud.networkservices.v1.AgentGateway value) { + if (agentGatewaysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentGatewaysIsMutable(); + agentGateways_.set(index, value); + onChanged(); + } else { + agentGatewaysBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * List of AgentGateway resources.
+     * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public Builder setAgentGateways( + int index, com.google.cloud.networkservices.v1.AgentGateway.Builder builderForValue) { + if (agentGatewaysBuilder_ == null) { + ensureAgentGatewaysIsMutable(); + agentGateways_.set(index, builderForValue.build()); + onChanged(); + } else { + agentGatewaysBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of AgentGateway resources.
+     * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public Builder addAgentGateways(com.google.cloud.networkservices.v1.AgentGateway value) { + if (agentGatewaysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentGatewaysIsMutable(); + agentGateways_.add(value); + onChanged(); + } else { + agentGatewaysBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * List of AgentGateway resources.
+     * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public Builder addAgentGateways( + int index, com.google.cloud.networkservices.v1.AgentGateway value) { + if (agentGatewaysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentGatewaysIsMutable(); + agentGateways_.add(index, value); + onChanged(); + } else { + agentGatewaysBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * List of AgentGateway resources.
+     * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public Builder addAgentGateways( + com.google.cloud.networkservices.v1.AgentGateway.Builder builderForValue) { + if (agentGatewaysBuilder_ == null) { + ensureAgentGatewaysIsMutable(); + agentGateways_.add(builderForValue.build()); + onChanged(); + } else { + agentGatewaysBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of AgentGateway resources.
+     * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public Builder addAgentGateways( + int index, com.google.cloud.networkservices.v1.AgentGateway.Builder builderForValue) { + if (agentGatewaysBuilder_ == null) { + ensureAgentGatewaysIsMutable(); + agentGateways_.add(index, builderForValue.build()); + onChanged(); + } else { + agentGatewaysBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of AgentGateway resources.
+     * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public Builder addAllAgentGateways( + java.lang.Iterable values) { + if (agentGatewaysBuilder_ == null) { + ensureAgentGatewaysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, agentGateways_); + onChanged(); + } else { + agentGatewaysBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * List of AgentGateway resources.
+     * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public Builder clearAgentGateways() { + if (agentGatewaysBuilder_ == null) { + agentGateways_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + agentGatewaysBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * List of AgentGateway resources.
+     * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public Builder removeAgentGateways(int index) { + if (agentGatewaysBuilder_ == null) { + ensureAgentGatewaysIsMutable(); + agentGateways_.remove(index); + onChanged(); + } else { + agentGatewaysBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * List of AgentGateway resources.
+     * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public com.google.cloud.networkservices.v1.AgentGateway.Builder getAgentGatewaysBuilder( + int index) { + return internalGetAgentGatewaysFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * List of AgentGateway resources.
+     * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public com.google.cloud.networkservices.v1.AgentGatewayOrBuilder getAgentGatewaysOrBuilder( + int index) { + if (agentGatewaysBuilder_ == null) { + return agentGateways_.get(index); + } else { + return agentGatewaysBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * List of AgentGateway resources.
+     * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public java.util.List + getAgentGatewaysOrBuilderList() { + if (agentGatewaysBuilder_ != null) { + return agentGatewaysBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(agentGateways_); + } + } + + /** + * + * + *
+     * List of AgentGateway resources.
+     * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public com.google.cloud.networkservices.v1.AgentGateway.Builder addAgentGatewaysBuilder() { + return internalGetAgentGatewaysFieldBuilder() + .addBuilder(com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance()); + } + + /** + * + * + *
+     * List of AgentGateway resources.
+     * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public com.google.cloud.networkservices.v1.AgentGateway.Builder addAgentGatewaysBuilder( + int index) { + return internalGetAgentGatewaysFieldBuilder() + .addBuilder(index, com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance()); + } + + /** + * + * + *
+     * List of AgentGateway resources.
+     * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public java.util.List + getAgentGatewaysBuilderList() { + return internalGetAgentGatewaysFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway, + com.google.cloud.networkservices.v1.AgentGateway.Builder, + com.google.cloud.networkservices.v1.AgentGatewayOrBuilder> + internalGetAgentGatewaysFieldBuilder() { + if (agentGatewaysBuilder_ == null) { + agentGatewaysBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway, + com.google.cloud.networkservices.v1.AgentGateway.Builder, + com.google.cloud.networkservices.v1.AgentGatewayOrBuilder>( + agentGateways_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + agentGateways_ = null; + } + return agentGatewaysBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * `next_page_token` is included. To get the next set of results, call this
+     * method again using the value of `next_page_token` as `page_token`.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * `next_page_token` is included. To get the next set of results, call this
+     * method again using the value of `next_page_token` as `page_token`.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * `next_page_token` is included. To get the next set of results, call this
+     * method again using the value of `next_page_token` as `page_token`.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * `next_page_token` is included. To get the next set of results, call this
+     * method again using the value of `next_page_token` as `page_token`.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * `next_page_token` is included. To get the next set of results, call this
+     * method again using the value of `next_page_token` as `page_token`.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Unreachable resources. Populated when the request attempts to list all
+     * resources across all supported locations, while some locations are
+     * temporarily unavailable.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Unreachable resources. Populated when the request attempts to list all
+     * resources across all supported locations, while some locations are
+     * temporarily unavailable.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Unreachable resources. Populated when the request attempts to list all
+     * resources across all supported locations, while some locations are
+     * temporarily unavailable.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+     * Unreachable resources. Populated when the request attempts to list all
+     * resources across all supported locations, while some locations are
+     * temporarily unavailable.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
+     * Unreachable resources. Populated when the request attempts to list all
+     * resources across all supported locations, while some locations are
+     * temporarily unavailable.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unreachable resources. Populated when the request attempts to list all
+     * resources across all supported locations, while some locations are
+     * temporarily unavailable.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unreachable resources. Populated when the request attempts to list all
+     * resources across all supported locations, while some locations are
+     * temporarily unavailable.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unreachable resources. Populated when the request attempts to list all
+     * resources across all supported locations, while some locations are
+     * temporarily unavailable.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unreachable resources. Populated when the request attempts to list all
+     * resources across all supported locations, while some locations are
+     * temporarily unavailable.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.ListAgentGatewaysResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.ListAgentGatewaysResponse) + private static final com.google.cloud.networkservices.v1.ListAgentGatewaysResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.ListAgentGatewaysResponse(); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAgentGatewaysResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.ListAgentGatewaysResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysResponseOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysResponseOrBuilder.java new file mode 100644 index 000000000000..b68ae93d3287 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysResponseOrBuilder.java @@ -0,0 +1,176 @@ +/* + * 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/cloud/networkservices/v1/agent_gateway.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +@com.google.protobuf.Generated +public interface ListAgentGatewaysResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.ListAgentGatewaysResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of AgentGateway resources.
+   * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + java.util.List getAgentGatewaysList(); + + /** + * + * + *
+   * List of AgentGateway resources.
+   * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + com.google.cloud.networkservices.v1.AgentGateway getAgentGateways(int index); + + /** + * + * + *
+   * List of AgentGateway resources.
+   * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + int getAgentGatewaysCount(); + + /** + * + * + *
+   * List of AgentGateway resources.
+   * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + java.util.List + getAgentGatewaysOrBuilderList(); + + /** + * + * + *
+   * List of AgentGateway resources.
+   * 
+ * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + com.google.cloud.networkservices.v1.AgentGatewayOrBuilder getAgentGatewaysOrBuilder(int index); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * `next_page_token` is included. To get the next set of results, call this
+   * method again using the value of `next_page_token` as `page_token`.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * `next_page_token` is included. To get the next set of results, call this
+   * method again using the value of `next_page_token` as `page_token`.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Unreachable resources. Populated when the request attempts to list all
+   * resources across all supported locations, while some locations are
+   * temporarily unavailable.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Unreachable resources. Populated when the request attempts to list all
+   * resources across all supported locations, while some locations are
+   * temporarily unavailable.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Unreachable resources. Populated when the request attempts to list all
+   * resources across all supported locations, while some locations are
+   * temporarily unavailable.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Unreachable resources. Populated when the request attempts to list all
+   * resources across all supported locations, while some locations are
+   * temporarily unavailable.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListEndpointPoliciesRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListEndpointPoliciesRequest.java index ce96c6fc0dda..28bd8b190d9c 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListEndpointPoliciesRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListEndpointPoliciesRequest.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The project and location from which the EndpointPolicies should
-   * be listed, specified in the format `projects/*/locations/global`.
+   * be listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -108,7 +108,7 @@ public java.lang.String getParent() { * *
    * Required. The project and location from which the EndpointPolicies should
-   * be listed, specified in the format `projects/*/locations/global`.
+   * be listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -619,7 +619,7 @@ public Builder mergeFrom( * *
      * Required. The project and location from which the EndpointPolicies should
-     * be listed, specified in the format `projects/*/locations/global`.
+     * be listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -645,7 +645,7 @@ public java.lang.String getParent() { * *
      * Required. The project and location from which the EndpointPolicies should
-     * be listed, specified in the format `projects/*/locations/global`.
+     * be listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -671,7 +671,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The project and location from which the EndpointPolicies should
-     * be listed, specified in the format `projects/*/locations/global`.
+     * be listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -696,7 +696,7 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The project and location from which the EndpointPolicies should
-     * be listed, specified in the format `projects/*/locations/global`.
+     * be listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -717,7 +717,7 @@ public Builder clearParent() { * *
      * Required. The project and location from which the EndpointPolicies should
-     * be listed, specified in the format `projects/*/locations/global`.
+     * be listed, specified in the format `projects/*/locations/*`.
      * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListEndpointPoliciesRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListEndpointPoliciesRequestOrBuilder.java index c7c09bd927a7..20b7eb46b85f 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListEndpointPoliciesRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListEndpointPoliciesRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface ListEndpointPoliciesRequestOrBuilder * *
    * Required. The project and location from which the EndpointPolicies should
-   * be listed, specified in the format `projects/*/locations/global`.
+   * be listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -47,7 +47,7 @@ public interface ListEndpointPoliciesRequestOrBuilder * *
    * Required. The project and location from which the EndpointPolicies should
-   * be listed, specified in the format `projects/*/locations/global`.
+   * be listed, specified in the format `projects/*/locations/*`.
    * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListGrpcRoutesRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListGrpcRoutesRequest.java index 494c2c083e91..ddea809cb92c 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListGrpcRoutesRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListGrpcRoutesRequest.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The project and location from which the GrpcRoutes should be
-   * listed, specified in the format `projects/*/locations/global`.
+   * listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -108,7 +108,7 @@ public java.lang.String getParent() { * *
    * Required. The project and location from which the GrpcRoutes should be
-   * listed, specified in the format `projects/*/locations/global`.
+   * listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -613,7 +613,7 @@ public Builder mergeFrom( * *
      * Required. The project and location from which the GrpcRoutes should be
-     * listed, specified in the format `projects/*/locations/global`.
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -639,7 +639,7 @@ public java.lang.String getParent() { * *
      * Required. The project and location from which the GrpcRoutes should be
-     * listed, specified in the format `projects/*/locations/global`.
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -665,7 +665,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The project and location from which the GrpcRoutes should be
-     * listed, specified in the format `projects/*/locations/global`.
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -690,7 +690,7 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The project and location from which the GrpcRoutes should be
-     * listed, specified in the format `projects/*/locations/global`.
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -711,7 +711,7 @@ public Builder clearParent() { * *
      * Required. The project and location from which the GrpcRoutes should be
-     * listed, specified in the format `projects/*/locations/global`.
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListGrpcRoutesRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListGrpcRoutesRequestOrBuilder.java index 2e0272dacf87..7e440e87d37f 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListGrpcRoutesRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListGrpcRoutesRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface ListGrpcRoutesRequestOrBuilder * *
    * Required. The project and location from which the GrpcRoutes should be
-   * listed, specified in the format `projects/*/locations/global`.
+   * listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -47,7 +47,7 @@ public interface ListGrpcRoutesRequestOrBuilder * *
    * Required. The project and location from which the GrpcRoutes should be
-   * listed, specified in the format `projects/*/locations/global`.
+   * listed, specified in the format `projects/*/locations/*`.
    * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListHttpRoutesRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListHttpRoutesRequest.java index 6874393c82b3..c447ce91a541 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListHttpRoutesRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListHttpRoutesRequest.java @@ -54,6 +54,7 @@ private ListHttpRoutesRequest(com.google.protobuf.GeneratedMessage.Builder bu private ListHttpRoutesRequest() { parent_ = ""; pageToken_ = ""; + filter_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -81,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The project and location from which the HttpRoutes should be
-   * listed, specified in the format `projects/*/locations/global`.
+   * listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -108,7 +109,7 @@ public java.lang.String getParent() { * *
    * Required. The project and location from which the HttpRoutes should be
-   * listed, specified in the format `projects/*/locations/global`.
+   * listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -227,6 +228,59 @@ public boolean getReturnPartialSuccess() { return returnPartialSuccess_; } + public static final int FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Filter expression to restrict the list.
+   * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Filter expression to restrict the list.
+   * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -253,6 +307,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (returnPartialSuccess_ != false) { output.writeBool(4, returnPartialSuccess_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, filter_); + } getUnknownFields().writeTo(output); } @@ -274,6 +331,9 @@ public int getSerializedSize() { if (returnPartialSuccess_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, returnPartialSuccess_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, filter_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -294,6 +354,7 @@ public boolean equals(final java.lang.Object obj) { if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (getReturnPartialSuccess() != other.getReturnPartialSuccess()) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -313,6 +374,8 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + RETURN_PARTIAL_SUCCESS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPartialSuccess()); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -458,6 +521,7 @@ public Builder clear() { pageSize_ = 0; pageToken_ = ""; returnPartialSuccess_ = false; + filter_ = ""; return this; } @@ -506,6 +570,9 @@ private void buildPartial0(com.google.cloud.networkservices.v1.ListHttpRoutesReq if (((from_bitField0_ & 0x00000008) != 0)) { result.returnPartialSuccess_ = returnPartialSuccess_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } } @java.lang.Override @@ -537,6 +604,11 @@ public Builder mergeFrom(com.google.cloud.networkservices.v1.ListHttpRoutesReque if (other.getReturnPartialSuccess() != false) { setReturnPartialSuccess(other.getReturnPartialSuccess()); } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -587,6 +659,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 32 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -613,7 +691,7 @@ public Builder mergeFrom( * *
      * Required. The project and location from which the HttpRoutes should be
-     * listed, specified in the format `projects/*/locations/global`.
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -639,7 +717,7 @@ public java.lang.String getParent() { * *
      * Required. The project and location from which the HttpRoutes should be
-     * listed, specified in the format `projects/*/locations/global`.
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -665,7 +743,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The project and location from which the HttpRoutes should be
-     * listed, specified in the format `projects/*/locations/global`.
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -690,7 +768,7 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The project and location from which the HttpRoutes should be
-     * listed, specified in the format `projects/*/locations/global`.
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -711,7 +789,7 @@ public Builder clearParent() { * *
      * Required. The project and location from which the HttpRoutes should be
-     * listed, specified in the format `projects/*/locations/global`.
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -971,6 +1049,117 @@ public Builder clearReturnPartialSuccess() { return this; } + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Filter expression to restrict the list.
+     * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Filter expression to restrict the list.
+     * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Filter expression to restrict the list.
+     * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filter expression to restrict the list.
+     * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filter expression to restrict the list.
+     * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.ListHttpRoutesRequest) } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListHttpRoutesRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListHttpRoutesRequestOrBuilder.java index 655d09fc5cf2..767b1907f6ec 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListHttpRoutesRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListHttpRoutesRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface ListHttpRoutesRequestOrBuilder * *
    * Required. The project and location from which the HttpRoutes should be
-   * listed, specified in the format `projects/*/locations/global`.
+   * listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -47,7 +47,7 @@ public interface ListHttpRoutesRequestOrBuilder * *
    * Required. The project and location from which the HttpRoutes should be
-   * listed, specified in the format `projects/*/locations/global`.
+   * listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -115,4 +115,30 @@ public interface ListHttpRoutesRequestOrBuilder * @return The returnPartialSuccess. */ boolean getReturnPartialSuccess(); + + /** + * + * + *
+   * Optional. Filter expression to restrict the list.
+   * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Filter expression to restrict the list.
+   * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListMeshesRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListMeshesRequest.java index 3cb0f17d2136..22d4c293acb4 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListMeshesRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListMeshesRequest.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The project and location from which the Meshes should be
-   * listed, specified in the format `projects/*/locations/global`.
+   * listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -108,7 +108,7 @@ public java.lang.String getParent() { * *
    * Required. The project and location from which the Meshes should be
-   * listed, specified in the format `projects/*/locations/global`.
+   * listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -613,7 +613,7 @@ public Builder mergeFrom( * *
      * Required. The project and location from which the Meshes should be
-     * listed, specified in the format `projects/*/locations/global`.
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -639,7 +639,7 @@ public java.lang.String getParent() { * *
      * Required. The project and location from which the Meshes should be
-     * listed, specified in the format `projects/*/locations/global`.
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -665,7 +665,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The project and location from which the Meshes should be
-     * listed, specified in the format `projects/*/locations/global`.
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -690,7 +690,7 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The project and location from which the Meshes should be
-     * listed, specified in the format `projects/*/locations/global`.
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -711,7 +711,7 @@ public Builder clearParent() { * *
      * Required. The project and location from which the Meshes should be
-     * listed, specified in the format `projects/*/locations/global`.
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListMeshesRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListMeshesRequestOrBuilder.java index 402caca8937b..364bc32dfad0 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListMeshesRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListMeshesRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface ListMeshesRequestOrBuilder * *
    * Required. The project and location from which the Meshes should be
-   * listed, specified in the format `projects/*/locations/global`.
+   * listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -47,7 +47,7 @@ public interface ListMeshesRequestOrBuilder * *
    * Required. The project and location from which the Meshes should be
-   * listed, specified in the format `projects/*/locations/global`.
+   * listed, specified in the format `projects/*/locations/*`.
    * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTcpRoutesRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTcpRoutesRequest.java index 5616e6ff93d8..3e369e892abb 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTcpRoutesRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTcpRoutesRequest.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The project and location from which the TcpRoutes should be
-   * listed, specified in the format `projects/*/locations/global`.
+   * listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -108,7 +108,7 @@ public java.lang.String getParent() { * *
    * Required. The project and location from which the TcpRoutes should be
-   * listed, specified in the format `projects/*/locations/global`.
+   * listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -613,7 +613,7 @@ public Builder mergeFrom( * *
      * Required. The project and location from which the TcpRoutes should be
-     * listed, specified in the format `projects/*/locations/global`.
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -639,7 +639,7 @@ public java.lang.String getParent() { * *
      * Required. The project and location from which the TcpRoutes should be
-     * listed, specified in the format `projects/*/locations/global`.
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -665,7 +665,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The project and location from which the TcpRoutes should be
-     * listed, specified in the format `projects/*/locations/global`.
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -690,7 +690,7 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The project and location from which the TcpRoutes should be
-     * listed, specified in the format `projects/*/locations/global`.
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -711,7 +711,7 @@ public Builder clearParent() { * *
      * Required. The project and location from which the TcpRoutes should be
-     * listed, specified in the format `projects/*/locations/global`.
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTcpRoutesRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTcpRoutesRequestOrBuilder.java index c8bd0c12c2c4..ace6ee2e00a4 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTcpRoutesRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTcpRoutesRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface ListTcpRoutesRequestOrBuilder * *
    * Required. The project and location from which the TcpRoutes should be
-   * listed, specified in the format `projects/*/locations/global`.
+   * listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -47,7 +47,7 @@ public interface ListTcpRoutesRequestOrBuilder * *
    * Required. The project and location from which the TcpRoutes should be
-   * listed, specified in the format `projects/*/locations/global`.
+   * listed, specified in the format `projects/*/locations/*`.
    * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTlsRoutesRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTlsRoutesRequest.java index dc282c7eeba8..d1e2965105e0 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTlsRoutesRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTlsRoutesRequest.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The project and location from which the TlsRoutes should be
-   * listed, specified in the format `projects/*/locations/global`.
+   * listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -108,7 +108,7 @@ public java.lang.String getParent() { * *
    * Required. The project and location from which the TlsRoutes should be
-   * listed, specified in the format `projects/*/locations/global`.
+   * listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -613,7 +613,7 @@ public Builder mergeFrom( * *
      * Required. The project and location from which the TlsRoutes should be
-     * listed, specified in the format `projects/*/locations/global`.
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -639,7 +639,7 @@ public java.lang.String getParent() { * *
      * Required. The project and location from which the TlsRoutes should be
-     * listed, specified in the format `projects/*/locations/global`.
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -665,7 +665,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The project and location from which the TlsRoutes should be
-     * listed, specified in the format `projects/*/locations/global`.
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -690,7 +690,7 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The project and location from which the TlsRoutes should be
-     * listed, specified in the format `projects/*/locations/global`.
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -711,7 +711,7 @@ public Builder clearParent() { * *
      * Required. The project and location from which the TlsRoutes should be
-     * listed, specified in the format `projects/*/locations/global`.
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTlsRoutesRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTlsRoutesRequestOrBuilder.java index 1b83bf6ee882..40b58a44a405 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTlsRoutesRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTlsRoutesRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface ListTlsRoutesRequestOrBuilder * *
    * Required. The project and location from which the TlsRoutes should be
-   * listed, specified in the format `projects/*/locations/global`.
+   * listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -47,7 +47,7 @@ public interface ListTlsRoutesRequestOrBuilder * *
    * Required. The project and location from which the TlsRoutes should be
-   * listed, specified in the format `projects/*/locations/global`.
+   * listed, specified in the format `projects/*/locations/*`.
    * 
* * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/Mesh.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/Mesh.java index 9e4b627828b9..68f17a6d25aa 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/Mesh.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/Mesh.java @@ -98,7 +98,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * *
    * Identifier. Name of the Mesh resource. It matches pattern
-   * `projects/*/locations/global/meshes/<mesh_name>`.
+   * `projects/*/locations/*/meshes/<mesh_name>`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -123,7 +123,7 @@ public java.lang.String getName() { * *
    * Identifier. Name of the Mesh resource. It matches pattern
-   * `projects/*/locations/global/meshes/<mesh_name>`.
+   * `projects/*/locations/*/meshes/<mesh_name>`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1102,7 +1102,7 @@ public Builder mergeFrom( * *
      * Identifier. Name of the Mesh resource. It matches pattern
-     * `projects/*/locations/global/meshes/<mesh_name>`.
+     * `projects/*/locations/*/meshes/<mesh_name>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1126,7 +1126,7 @@ public java.lang.String getName() { * *
      * Identifier. Name of the Mesh resource. It matches pattern
-     * `projects/*/locations/global/meshes/<mesh_name>`.
+     * `projects/*/locations/*/meshes/<mesh_name>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1150,7 +1150,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Identifier. Name of the Mesh resource. It matches pattern
-     * `projects/*/locations/global/meshes/<mesh_name>`.
+     * `projects/*/locations/*/meshes/<mesh_name>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1173,7 +1173,7 @@ public Builder setName(java.lang.String value) { * *
      * Identifier. Name of the Mesh resource. It matches pattern
-     * `projects/*/locations/global/meshes/<mesh_name>`.
+     * `projects/*/locations/*/meshes/<mesh_name>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1192,7 +1192,7 @@ public Builder clearName() { * *
      * Identifier. Name of the Mesh resource. It matches pattern
-     * `projects/*/locations/global/meshes/<mesh_name>`.
+     * `projects/*/locations/*/meshes/<mesh_name>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/MeshOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/MeshOrBuilder.java index 4be4f12e9592..47056573b397 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/MeshOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/MeshOrBuilder.java @@ -31,7 +31,7 @@ public interface MeshOrBuilder * *
    * Identifier. Name of the Mesh resource. It matches pattern
-   * `projects/*/locations/global/meshes/<mesh_name>`.
+   * `projects/*/locations/*/meshes/<mesh_name>`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -45,7 +45,7 @@ public interface MeshOrBuilder * *
    * Identifier. Name of the Mesh resource. It matches pattern
-   * `projects/*/locations/global/meshes/<mesh_name>`.
+   * `projects/*/locations/*/meshes/<mesh_name>`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/MeshProto.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/MeshProto.java index 2a321eb04acf..79adf4e4a5d8 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/MeshProto.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/MeshProto.java @@ -87,7 +87,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pi/resource.proto\032,google/cloud/networks" + "ervices/v1/common.proto\032 google/protobuf" + "/field_mask.proto\032\037google/protobuf/times" - + "tamp.proto\"\221\004\n\004Mesh\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\026" + + "tamp.proto\"\237\004\n\004Mesh\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\026" + "\n\tself_link\030\t \001(\tB\003\340A\003\0224\n\013create_time\030\002 " + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" + "update_time\030\003 \001(\0132\032.google.protobuf.Time" @@ -97,38 +97,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tion_port\030\010 \001(\005B\003\340A\001\022N\n\renvoy_headers\030\020 " + "\001(\0162-.google.cloud.networkservices.v1.En" + "voyHeadersB\003\340A\001H\000\210\001\001\032-\n\013LabelsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:_\352A\\\n#networ" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:m\352Aj\n#networ" + "kservices.googleapis.com/Mesh\0225projects/" + "{project}/locations/{location}/meshes/{m" - + "esh}B\020\n\016_envoy_headers\"\234\001\n\021ListMeshesReq" - + "uest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#networkser" - + "vices.googleapis.com/Mesh\022\021\n\tpage_size\030\002" - + " \001(\005\022\022\n\npage_token\030\003 \001(\t\022#\n\026return_parti" - + "al_success\030\004 \001(\010B\003\340A\001\"y\n\022ListMeshesRespo" - + "nse\0225\n\006meshes\030\001 \003(\0132%.google.cloud.netwo" - + "rkservices.v1.Mesh\022\027\n\017next_page_token\030\002 " - + "\001(\t\022\023\n\013unreachable\030\003 \003(\t\"K\n\016GetMeshReque" - + "st\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#networkservice" - + "s.googleapis.com/Mesh\"\240\001\n\021CreateMeshRequ" - + "est\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#networkserv" - + "ices.googleapis.com/Mesh\022\024\n\007mesh_id\030\002 \001(" - + "\tB\003\340A\002\0228\n\004mesh\030\003 \001(\0132%.google.cloud.netw" - + "orkservices.v1.MeshB\003\340A\002\"\203\001\n\021UpdateMeshR" - + "equest\0224\n\013update_mask\030\001 \001(\0132\032.google.pro" - + "tobuf.FieldMaskB\003\340A\001\0228\n\004mesh\030\002 \001(\0132%.goo" - + "gle.cloud.networkservices.v1.MeshB\003\340A\002\"N" - + "\n\021DeleteMeshRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A" - + "%\n#networkservices.googleapis.com/MeshB\344" - + "\002\n#com.google.cloud.networkservices.v1B\t" - + "MeshProtoP\001ZMcloud.google.com/go/network" - + "services/apiv1/networkservicespb;network" - + "servicespb\252\002\037Google.Cloud.NetworkService" - + "s.V1\312\002\037Google\\Cloud\\NetworkServices\\V1\352\002" - + "\"Google::Cloud::NetworkServices::V1\352Aw\n(" - + "compute.googleapis.com/ServiceAttachment" - + "\022Kprojects/{project}/regions/{region}/se" - + "rviceAttachments/{service_attachment}b\006p" - + "roto3" + + "esh}*\006meshes2\004meshB\020\n\016_envoy_headers\"\234\001\n" + + "\021ListMeshesRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372" + + "A%\022#networkservices.googleapis.com/Mesh\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022#" + + "\n\026return_partial_success\030\004 \001(\010B\003\340A\001\"y\n\022L" + + "istMeshesResponse\0225\n\006meshes\030\001 \003(\0132%.goog" + + "le.cloud.networkservices.v1.Mesh\022\027\n\017next" + + "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"K" + + "\n\016GetMeshRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#" + + "networkservices.googleapis.com/Mesh\"\240\001\n\021" + + "CreateMeshRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A" + + "%\022#networkservices.googleapis.com/Mesh\022\024" + + "\n\007mesh_id\030\002 \001(\tB\003\340A\002\0228\n\004mesh\030\003 \001(\0132%.goo" + + "gle.cloud.networkservices.v1.MeshB\003\340A\002\"\203" + + "\001\n\021UpdateMeshRequest\0224\n\013update_mask\030\001 \001(" + + "\0132\032.google.protobuf.FieldMaskB\003\340A\001\0228\n\004me" + + "sh\030\002 \001(\0132%.google.cloud.networkservices." + + "v1.MeshB\003\340A\002\"N\n\021DeleteMeshRequest\0229\n\004nam" + + "e\030\001 \001(\tB+\340A\002\372A%\n#networkservices.googlea" + + "pis.com/MeshB\344\002\n#com.google.cloud.networ" + + "kservices.v1B\tMeshProtoP\001ZMcloud.google." + + "com/go/networkservices/apiv1/networkserv" + + "icespb;networkservicespb\252\002\037Google.Cloud." + + "NetworkServices.V1\312\002\037Google\\Cloud\\Networ" + + "kServices\\V1\352\002\"Google::Cloud::NetworkSer" + + "vices::V1\352Aw\n(compute.googleapis.com/Ser" + + "viceAttachment\022Kprojects/{project}/regio" + + "ns/{region}/serviceAttachments/{service_" + + "attachment}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesOuterClass.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesOuterClass.java index fa24440605c5..3164597530d7 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesOuterClass.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesOuterClass.java @@ -51,380 +51,413 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n6google/cloud/networkservices/v1/networ" + "k_services.proto\022\037google.cloud.networkse" + "rvices.v1\032\034google/api/annotations.proto\032" - + "\027google/api/client.proto\032,google/cloud/n" - + "etworkservices/v1/common.proto\0325google/c" - + "loud/networkservices/v1/endpoint_policy." - + "proto\0323google/cloud/networkservices/v1/e" - + "xtensibility.proto\032-google/cloud/network" - + "services/v1/gateway.proto\0320google/cloud/" - + "networkservices/v1/grpc_route.proto\0320goo" - + "gle/cloud/networkservices/v1/http_route." - + "proto\032*google/cloud/networkservices/v1/m" - + "esh.proto\0320google/cloud/networkservices/" - + "v1/route_view.proto\0325google/cloud/networ" - + "kservices/v1/service_binding.proto\0327goog" - + "le/cloud/networkservices/v1/service_lb_p" - + "olicy.proto\032/google/cloud/networkservice" - + "s/v1/tcp_route.proto\032/google/cloud/netwo" - + "rkservices/v1/tls_route.proto\032#google/lo" - + "ngrunning/operations.proto\032\033google/proto" - + "buf/empty.proto2\302m\n\017NetworkServices\022\332\001\n\024" - + "ListEndpointPolicies\022<.google.cloud.netw" - + "orkservices.v1.ListEndpointPoliciesReque" - + "st\032=.google.cloud.networkservices.v1.Lis" - + "tEndpointPoliciesResponse\"E\332A\006parent\202\323\344\223" - + "\0026\0224/v1/{parent=projects/*/locations/*}/" - + "endpointPolicies\022\304\001\n\021GetEndpointPolicy\0229" - + ".google.cloud.networkservices.v1.GetEndp" - + "ointPolicyRequest\032/.google.cloud.network" - + "services.v1.EndpointPolicy\"C\332A\004name\202\323\344\223\002" - + "6\0224/v1/{name=projects/*/locations/*/endp" - + "ointPolicies/*}\022\265\002\n\024CreateEndpointPolicy" - + "\022<.google.cloud.networkservices.v1.Creat" - + "eEndpointPolicyRequest\032\035.google.longrunn" - + "ing.Operation\"\277\001\312AC\n\016EndpointPolicy\0221goo" - + "gle.cloud.networkservices.v1.OperationMe" - + "tadata\332A)parent,endpoint_policy,endpoint" - + "_policy_id\202\323\344\223\002G\"4/v1/{parent=projects/*" - + "/locations/*}/endpointPolicies:\017endpoint" - + "_policy\022\267\002\n\024UpdateEndpointPolicy\022<.googl" - + "e.cloud.networkservices.v1.UpdateEndpoin" - + "tPolicyRequest\032\035.google.longrunning.Oper" - + "ation\"\301\001\312AC\n\016EndpointPolicy\0221google.clou" - + "d.networkservices.v1.OperationMetadata\332A" - + "\033endpoint_policy,update_mask\202\323\344\223\002W2D/v1/" - + "{endpoint_policy.name=projects/*/locatio" - + "ns/*/endpointPolicies/*}:\017endpoint_polic" - + "y\022\206\002\n\024DeleteEndpointPolicy\022<.google.clou" - + "d.networkservices.v1.DeleteEndpointPolic" - + "yRequest\032\035.google.longrunning.Operation\"" - + "\220\001\312AJ\n\025google.protobuf.Empty\0221google.clo" - + "ud.networkservices.v1.OperationMetadata\332" - + "A\004name\202\323\344\223\0026*4/v1/{name=projects/*/locat" - + "ions/*/endpointPolicies/*}\022\346\001\n\026ListWasmP" - + "luginVersions\022>.google.cloud.networkserv" - + "ices.v1.ListWasmPluginVersionsRequest\032?." - + "google.cloud.networkservices.v1.ListWasm" - + "PluginVersionsResponse\"K\332A\006parent\202\323\344\223\002<\022" - + ":/v1/{parent=projects/*/locations/*/wasm" - + "Plugins/*}/versions\022\323\001\n\024GetWasmPluginVer" - + "sion\022<.google.cloud.networkservices.v1.G" - + "etWasmPluginVersionRequest\0322.google.clou" - + "d.networkservices.v1.WasmPluginVersion\"I" - + "\332A\004name\202\323\344\223\002<\022:/v1/{name=projects/*/loca" - + "tions/*/wasmPlugins/*/versions/*}\022\320\002\n\027Cr" - + "eateWasmPluginVersion\022?.google.cloud.net" - + "workservices.v1.CreateWasmPluginVersionR" - + "equest\032\035.google.longrunning.Operation\"\324\001" - + "\312AF\n\021WasmPluginVersion\0221google.cloud.net" - + "workservices.v1.OperationMetadata\332A1pare" - + "nt,wasm_plugin_version,wasm_plugin_versi" - + "on_id\202\323\344\223\002Q\":/v1/{parent=projects/*/loca" - + "tions/*/wasmPlugins/*}/versions:\023wasm_pl" - + "ugin_version\022\222\002\n\027DeleteWasmPluginVersion" - + "\022?.google.cloud.networkservices.v1.Delet" - + "eWasmPluginVersionRequest\032\035.google.longr" - + "unning.Operation\"\226\001\312AJ\n\025google.protobuf." - + "Empty\0221google.cloud.networkservices.v1.O" - + "perationMetadata\332A\004name\202\323\344\223\002<*:/v1/{name" - + "=projects/*/locations/*/wasmPlugins/*/ve" - + "rsions/*}\022\306\001\n\017ListWasmPlugins\0227.google.c" - + "loud.networkservices.v1.ListWasmPluginsR" - + "equest\0328.google.cloud.networkservices.v1" - + ".ListWasmPluginsResponse\"@\332A\006parent\202\323\344\223\002" - + "1\022//v1/{parent=projects/*/locations/*}/w" - + "asmPlugins\022\263\001\n\rGetWasmPlugin\0225.google.cl" - + "oud.networkservices.v1.GetWasmPluginRequ" - + "est\032+.google.cloud.networkservices.v1.Wa" - + "smPlugin\">\332A\004name\202\323\344\223\0021\022//v1/{name=proje" - + "cts/*/locations/*/wasmPlugins/*}\022\230\002\n\020Cre" - + "ateWasmPlugin\0228.google.cloud.networkserv" - + "ices.v1.CreateWasmPluginRequest\032\035.google" - + ".longrunning.Operation\"\252\001\312A?\n\nWasmPlugin" + + "\027google/api/client.proto\0323google/cloud/n" + + "etworkservices/v1/agent_gateway.proto\032,g" + + "oogle/cloud/networkservices/v1/common.pr" + + "oto\0325google/cloud/networkservices/v1/end" + + "point_policy.proto\0323google/cloud/network" + + "services/v1/extensibility.proto\032-google/" + + "cloud/networkservices/v1/gateway.proto\0320" + + "google/cloud/networkservices/v1/grpc_rou" + + "te.proto\0320google/cloud/networkservices/v" + + "1/http_route.proto\032*google/cloud/network" + + "services/v1/mesh.proto\0320google/cloud/net" + + "workservices/v1/route_view.proto\0325google" + + "/cloud/networkservices/v1/service_bindin" + + "g.proto\0327google/cloud/networkservices/v1" + + "/service_lb_policy.proto\032/google/cloud/n" + + "etworkservices/v1/tcp_route.proto\032/googl" + + "e/cloud/networkservices/v1/tls_route.pro" + + "to\032#google/longrunning/operations.proto\032" + + "\033google/protobuf/empty.proto2\247w\n\017Network" + + "Services\022\332\001\n\024ListEndpointPolicies\022<.goog" + + "le.cloud.networkservices.v1.ListEndpoint" + + "PoliciesRequest\032=.google.cloud.networkse" + + "rvices.v1.ListEndpointPoliciesResponse\"E" + + "\332A\006parent\202\323\344\223\0026\0224/v1/{parent=projects/*/" + + "locations/*}/endpointPolicies\022\304\001\n\021GetEnd" + + "pointPolicy\0229.google.cloud.networkservic" + + "es.v1.GetEndpointPolicyRequest\032/.google." + + "cloud.networkservices.v1.EndpointPolicy\"" + + "C\332A\004name\202\323\344\223\0026\0224/v1/{name=projects/*/loc" + + "ations/*/endpointPolicies/*}\022\265\002\n\024CreateE" + + "ndpointPolicy\022<.google.cloud.networkserv" + + "ices.v1.CreateEndpointPolicyRequest\032\035.go" + + "ogle.longrunning.Operation\"\277\001\312AC\n\016Endpoi" + + "ntPolicy\0221google.cloud.networkservices.v" + + "1.OperationMetadata\332A)parent,endpoint_po" + + "licy,endpoint_policy_id\202\323\344\223\002G\"4/v1/{pare" + + "nt=projects/*/locations/*}/endpointPolic" + + "ies:\017endpoint_policy\022\267\002\n\024UpdateEndpointP" + + "olicy\022<.google.cloud.networkservices.v1." + + "UpdateEndpointPolicyRequest\032\035.google.lon" + + "grunning.Operation\"\301\001\312AC\n\016EndpointPolicy" + "\0221google.cloud.networkservices.v1.Operat" - + "ionMetadata\332A!parent,wasm_plugin,wasm_pl" - + "ugin_id\202\323\344\223\002>\"//v1/{parent=projects/*/lo" - + "cations/*}/wasmPlugins:\013wasm_plugin\022\232\002\n\020" - + "UpdateWasmPlugin\0228.google.cloud.networks" - + "ervices.v1.UpdateWasmPluginRequest\032\035.goo" - + "gle.longrunning.Operation\"\254\001\312A?\n\nWasmPlu" - + "gin\0221google.cloud.networkservices.v1.Ope" - + "rationMetadata\332A\027wasm_plugin,update_mask" - + "\202\323\344\223\002J2;/v1/{wasm_plugin.name=projects/*" - + "/locations/*/wasmPlugins/*}:\013wasm_plugin" - + "\022\371\001\n\020DeleteWasmPlugin\0228.google.cloud.net" - + "workservices.v1.DeleteWasmPluginRequest\032" - + "\035.google.longrunning.Operation\"\213\001\312AJ\n\025go" - + "ogle.protobuf.Empty\0221google.cloud.networ" - + "kservices.v1.OperationMetadata\332A\004name\202\323\344" - + "\223\0021*//v1/{name=projects/*/locations/*/wa" - + "smPlugins/*}\022\272\001\n\014ListGateways\0224.google.c" - + "loud.networkservices.v1.ListGatewaysRequ" - + "est\0325.google.cloud.networkservices.v1.Li" - + "stGatewaysResponse\"=\332A\006parent\202\323\344\223\002.\022,/v1" - + "/{parent=projects/*/locations/*}/gateway" - + "s\022\247\001\n\nGetGateway\0222.google.cloud.networks" - + "ervices.v1.GetGatewayRequest\032(.google.cl" - + "oud.networkservices.v1.Gateway\";\332A\004name\202" - + "\323\344\223\002.\022,/v1/{name=projects/*/locations/*/" - + "gateways/*}\022\200\002\n\rCreateGateway\0225.google.c" - + "loud.networkservices.v1.CreateGatewayReq" - + "uest\032\035.google.longrunning.Operation\"\230\001\312A" - + "<\n\007Gateway\0221google.cloud.networkservices" - + ".v1.OperationMetadata\332A\031parent,gateway,g" - + "ateway_id\202\323\344\223\0027\",/v1/{parent=projects/*/" - + "locations/*}/gateways:\007gateway\022\202\002\n\rUpdat" - + "eGateway\0225.google.cloud.networkservices." - + "v1.UpdateGatewayRequest\032\035.google.longrun" - + "ning.Operation\"\232\001\312A<\n\007Gateway\0221google.cl" - + "oud.networkservices.v1.OperationMetadata" - + "\332A\023gateway,update_mask\202\323\344\223\002?24/v1/{gatew" - + "ay.name=projects/*/locations/*/gateways/" - + "*}:\007gateway\022\360\001\n\rDeleteGateway\0225.google.c" - + "loud.networkservices.v1.DeleteGatewayReq" - + "uest\032\035.google.longrunning.Operation\"\210\001\312A" - + "J\n\025google.protobuf.Empty\0221google.cloud.n" - + "etworkservices.v1.OperationMetadata\332A\004na" - + "me\202\323\344\223\002.*,/v1/{name=projects/*/locations" - + "/*/gateways/*}\022\302\001\n\016ListGrpcRoutes\0226.goog" - + "le.cloud.networkservices.v1.ListGrpcRout" - + "esRequest\0327.google.cloud.networkservices" - + ".v1.ListGrpcRoutesResponse\"?\332A\006parent\202\323\344" - + "\223\0020\022./v1/{parent=projects/*/locations/*}" - + "/grpcRoutes\022\257\001\n\014GetGrpcRoute\0224.google.cl" - + "oud.networkservices.v1.GetGrpcRouteReque" - + "st\032*.google.cloud.networkservices.v1.Grp" - + "cRoute\"=\332A\004name\202\323\344\223\0020\022./v1/{name=project" - + "s/*/locations/*/grpcRoutes/*}\022\221\002\n\017Create" - + "GrpcRoute\0227.google.cloud.networkservices" - + ".v1.CreateGrpcRouteRequest\032\035.google.long" - + "running.Operation\"\245\001\312A>\n\tGrpcRoute\0221goog" - + "le.cloud.networkservices.v1.OperationMet" - + "adata\332A\037parent,grpc_route,grpc_route_id\202" - + "\323\344\223\002<\"./v1/{parent=projects/*/locations/" - + "*}/grpcRoutes:\ngrpc_route\022\223\002\n\017UpdateGrpc" - + "Route\0227.google.cloud.networkservices.v1." - + "UpdateGrpcRouteRequest\032\035.google.longrunn" - + "ing.Operation\"\247\001\312A>\n\tGrpcRoute\0221google.c" - + "loud.networkservices.v1.OperationMetadat" - + "a\332A\026grpc_route,update_mask\202\323\344\223\002G29/v1/{g" - + "rpc_route.name=projects/*/locations/*/gr" - + "pcRoutes/*}:\ngrpc_route\022\366\001\n\017DeleteGrpcRo" - + "ute\0227.google.cloud.networkservices.v1.De" - + "leteGrpcRouteRequest\032\035.google.longrunnin" - + "g.Operation\"\212\001\312AJ\n\025google.protobuf.Empty" - + "\0221google.cloud.networkservices.v1.Operat" - + "ionMetadata\332A\004name\202\323\344\223\0020*./v1/{name=proj" - + "ects/*/locations/*/grpcRoutes/*}\022\302\001\n\016Lis" - + "tHttpRoutes\0226.google.cloud.networkservic" - + "es.v1.ListHttpRoutesRequest\0327.google.clo" - + "ud.networkservices.v1.ListHttpRoutesResp" - + "onse\"?\332A\006parent\202\323\344\223\0020\022./v1/{parent=proje" - + "cts/*/locations/*}/httpRoutes\022\257\001\n\014GetHtt" - + "pRoute\0224.google.cloud.networkservices.v1" - + ".GetHttpRouteRequest\032*.google.cloud.netw" - + "orkservices.v1.HttpRoute\"=\332A\004name\202\323\344\223\0020\022" - + "./v1/{name=projects/*/locations/*/httpRo" - + "utes/*}\022\221\002\n\017CreateHttpRoute\0227.google.clo" - + "ud.networkservices.v1.CreateHttpRouteReq" - + "uest\032\035.google.longrunning.Operation\"\245\001\312A" - + ">\n\tHttpRoute\0221google.cloud.networkservic" - + "es.v1.OperationMetadata\332A\037parent,http_ro" - + "ute,http_route_id\202\323\344\223\002<\"./v1/{parent=pro" - + "jects/*/locations/*}/httpRoutes:\nhttp_ro" - + "ute\022\223\002\n\017UpdateHttpRoute\0227.google.cloud.n" - + "etworkservices.v1.UpdateHttpRouteRequest" - + "\032\035.google.longrunning.Operation\"\247\001\312A>\n\tH" - + "ttpRoute\0221google.cloud.networkservices.v" - + "1.OperationMetadata\332A\026http_route,update_" - + "mask\202\323\344\223\002G29/v1/{http_route.name=project" - + "s/*/locations/*/httpRoutes/*}:\nhttp_rout" - + "e\022\366\001\n\017DeleteHttpRoute\0227.google.cloud.net" - + "workservices.v1.DeleteHttpRouteRequest\032\035" - + ".google.longrunning.Operation\"\212\001\312AJ\n\025goo" + + "ionMetadata\332A\033endpoint_policy,update_mas" + + "k\202\323\344\223\002W2D/v1/{endpoint_policy.name=proje" + + "cts/*/locations/*/endpointPolicies/*}:\017e" + + "ndpoint_policy\022\206\002\n\024DeleteEndpointPolicy\022" + + "<.google.cloud.networkservices.v1.Delete" + + "EndpointPolicyRequest\032\035.google.longrunni" + + "ng.Operation\"\220\001\312AJ\n\025google.protobuf.Empt" + + "y\0221google.cloud.networkservices.v1.Opera" + + "tionMetadata\332A\004name\202\323\344\223\0026*4/v1/{name=pro" + + "jects/*/locations/*/endpointPolicies/*}\022" + + "\346\001\n\026ListWasmPluginVersions\022>.google.clou" + + "d.networkservices.v1.ListWasmPluginVersi" + + "onsRequest\032?.google.cloud.networkservice" + + "s.v1.ListWasmPluginVersionsResponse\"K\332A\006" + + "parent\202\323\344\223\002<\022:/v1/{parent=projects/*/loc" + + "ations/*/wasmPlugins/*}/versions\022\323\001\n\024Get" + + "WasmPluginVersion\022<.google.cloud.network" + + "services.v1.GetWasmPluginVersionRequest\032" + + "2.google.cloud.networkservices.v1.WasmPl" + + "uginVersion\"I\332A\004name\202\323\344\223\002<\022:/v1/{name=pr" + + "ojects/*/locations/*/wasmPlugins/*/versi" + + "ons/*}\022\320\002\n\027CreateWasmPluginVersion\022?.goo" + + "gle.cloud.networkservices.v1.CreateWasmP" + + "luginVersionRequest\032\035.google.longrunning" + + ".Operation\"\324\001\312AF\n\021WasmPluginVersion\0221goo" + + "gle.cloud.networkservices.v1.OperationMe" + + "tadata\332A1parent,wasm_plugin_version,wasm" + + "_plugin_version_id\202\323\344\223\002Q\":/v1/{parent=pr" + + "ojects/*/locations/*/wasmPlugins/*}/vers" + + "ions:\023wasm_plugin_version\022\222\002\n\027DeleteWasm" + + "PluginVersion\022?.google.cloud.networkserv" + + "ices.v1.DeleteWasmPluginVersionRequest\032\035" + + ".google.longrunning.Operation\"\226\001\312AJ\n\025goo" + "gle.protobuf.Empty\0221google.cloud.network" + "services.v1.OperationMetadata\332A\004name\202\323\344\223" - + "\0020*./v1/{name=projects/*/locations/*/htt" - + "pRoutes/*}\022\276\001\n\rListTcpRoutes\0225.google.cl" - + "oud.networkservices.v1.ListTcpRoutesRequ" - + "est\0326.google.cloud.networkservices.v1.Li" - + "stTcpRoutesResponse\">\332A\006parent\202\323\344\223\002/\022-/v" - + "1/{parent=projects/*/locations/*}/tcpRou" - + "tes\022\253\001\n\013GetTcpRoute\0223.google.cloud.netwo" - + "rkservices.v1.GetTcpRouteRequest\032).googl" - + "e.cloud.networkservices.v1.TcpRoute\"<\332A\004" - + "name\202\323\344\223\002/\022-/v1/{name=projects/*/locatio" - + "ns/*/tcpRoutes/*}\022\212\002\n\016CreateTcpRoute\0226.g" - + "oogle.cloud.networkservices.v1.CreateTcp" - + "RouteRequest\032\035.google.longrunning.Operat" - + "ion\"\240\001\312A=\n\010TcpRoute\0221google.cloud.networ" - + "kservices.v1.OperationMetadata\332A\035parent," - + "tcp_route,tcp_route_id\202\323\344\223\002:\"-/v1/{paren" - + "t=projects/*/locations/*}/tcpRoutes:\ttcp" - + "_route\022\214\002\n\016UpdateTcpRoute\0226.google.cloud" - + ".networkservices.v1.UpdateTcpRouteReques" - + "t\032\035.google.longrunning.Operation\"\242\001\312A=\n\010" - + "TcpRoute\0221google.cloud.networkservices.v" - + "1.OperationMetadata\332A\025tcp_route,update_m" - + "ask\202\323\344\223\002D27/v1/{tcp_route.name=projects/" - + "*/locations/*/tcpRoutes/*}:\ttcp_route\022\363\001" - + "\n\016DeleteTcpRoute\0226.google.cloud.networks" - + "ervices.v1.DeleteTcpRouteRequest\032\035.googl" - + "e.longrunning.Operation\"\211\001\312AJ\n\025google.pr" - + "otobuf.Empty\0221google.cloud.networkservic" - + "es.v1.OperationMetadata\332A\004name\202\323\344\223\002/*-/v" - + "1/{name=projects/*/locations/*/tcpRoutes" - + "/*}\022\276\001\n\rListTlsRoutes\0225.google.cloud.net" - + "workservices.v1.ListTlsRoutesRequest\0326.g" - + "oogle.cloud.networkservices.v1.ListTlsRo" - + "utesResponse\">\332A\006parent\202\323\344\223\002/\022-/v1/{pare" - + "nt=projects/*/locations/*}/tlsRoutes\022\253\001\n" - + "\013GetTlsRoute\0223.google.cloud.networkservi" - + "ces.v1.GetTlsRouteRequest\032).google.cloud" - + ".networkservices.v1.TlsRoute\"<\332A\004name\202\323\344" - + "\223\002/\022-/v1/{name=projects/*/locations/*/tl" - + "sRoutes/*}\022\212\002\n\016CreateTlsRoute\0226.google.c" - + "loud.networkservices.v1.CreateTlsRouteRe" - + "quest\032\035.google.longrunning.Operation\"\240\001\312" - + "A=\n\010TlsRoute\0221google.cloud.networkservic" - + "es.v1.OperationMetadata\332A\035parent,tls_rou" - + "te,tls_route_id\202\323\344\223\002:\"-/v1/{parent=proje" - + "cts/*/locations/*}/tlsRoutes:\ttls_route\022" - + "\214\002\n\016UpdateTlsRoute\0226.google.cloud.networ" - + "kservices.v1.UpdateTlsRouteRequest\032\035.goo" - + "gle.longrunning.Operation\"\242\001\312A=\n\010TlsRout" - + "e\0221google.cloud.networkservices.v1.Opera" - + "tionMetadata\332A\025tls_route,update_mask\202\323\344\223" - + "\002D27/v1/{tls_route.name=projects/*/locat" - + "ions/*/tlsRoutes/*}:\ttls_route\022\363\001\n\016Delet" - + "eTlsRoute\0226.google.cloud.networkservices" - + ".v1.DeleteTlsRouteRequest\032\035.google.longr" - + "unning.Operation\"\211\001\312AJ\n\025google.protobuf." - + "Empty\0221google.cloud.networkservices.v1.O" - + "perationMetadata\332A\004name\202\323\344\223\002/*-/v1/{name" - + "=projects/*/locations/*/tlsRoutes/*}\022\326\001\n" - + "\023ListServiceBindings\022;.google.cloud.netw" - + "orkservices.v1.ListServiceBindingsReques" - + "t\032<.google.cloud.networkservices.v1.List" - + "ServiceBindingsResponse\"D\332A\006parent\202\323\344\223\0025" - + "\0223/v1/{parent=projects/*/locations/*}/se" - + "rviceBindings\022\303\001\n\021GetServiceBinding\0229.go" - + "ogle.cloud.networkservices.v1.GetService" - + "BindingRequest\032/.google.cloud.networkser" - + "vices.v1.ServiceBinding\"B\332A\004name\202\323\344\223\0025\0223" - + "/v1/{name=projects/*/locations/*/service" - + "Bindings/*}\022\264\002\n\024CreateServiceBinding\022<.g" - + "oogle.cloud.networkservices.v1.CreateSer" - + "viceBindingRequest\032\035.google.longrunning." - + "Operation\"\276\001\312AC\n\016ServiceBinding\0221google." + + "\002<*:/v1/{name=projects/*/locations/*/was" + + "mPlugins/*/versions/*}\022\306\001\n\017ListWasmPlugi" + + "ns\0227.google.cloud.networkservices.v1.Lis" + + "tWasmPluginsRequest\0328.google.cloud.netwo" + + "rkservices.v1.ListWasmPluginsResponse\"@\332" + + "A\006parent\202\323\344\223\0021\022//v1/{parent=projects/*/l" + + "ocations/*}/wasmPlugins\022\263\001\n\rGetWasmPlugi" + + "n\0225.google.cloud.networkservices.v1.GetW" + + "asmPluginRequest\032+.google.cloud.networks" + + "ervices.v1.WasmPlugin\">\332A\004name\202\323\344\223\0021\022//v" + + "1/{name=projects/*/locations/*/wasmPlugi" + + "ns/*}\022\230\002\n\020CreateWasmPlugin\0228.google.clou" + + "d.networkservices.v1.CreateWasmPluginReq" + + "uest\032\035.google.longrunning.Operation\"\252\001\312A" + + "?\n\nWasmPlugin\0221google.cloud.networkservi" + + "ces.v1.OperationMetadata\332A!parent,wasm_p" + + "lugin,wasm_plugin_id\202\323\344\223\002>\"//v1/{parent=" + + "projects/*/locations/*}/wasmPlugins:\013was" + + "m_plugin\022\232\002\n\020UpdateWasmPlugin\0228.google.c" + + "loud.networkservices.v1.UpdateWasmPlugin" + + "Request\032\035.google.longrunning.Operation\"\254" + + "\001\312A?\n\nWasmPlugin\0221google.cloud.networkse" + + "rvices.v1.OperationMetadata\332A\027wasm_plugi" + + "n,update_mask\202\323\344\223\002J2;/v1/{wasm_plugin.na" + + "me=projects/*/locations/*/wasmPlugins/*}" + + ":\013wasm_plugin\022\371\001\n\020DeleteWasmPlugin\0228.goo" + + "gle.cloud.networkservices.v1.DeleteWasmP" + + "luginRequest\032\035.google.longrunning.Operat" + + "ion\"\213\001\312AJ\n\025google.protobuf.Empty\0221google" + + ".cloud.networkservices.v1.OperationMetad" + + "ata\332A\004name\202\323\344\223\0021*//v1/{name=projects/*/l" + + "ocations/*/wasmPlugins/*}\022\272\001\n\014ListGatewa" + + "ys\0224.google.cloud.networkservices.v1.Lis" + + "tGatewaysRequest\0325.google.cloud.networks" + + "ervices.v1.ListGatewaysResponse\"=\332A\006pare" + + "nt\202\323\344\223\002.\022,/v1/{parent=projects/*/locatio" + + "ns/*}/gateways\022\247\001\n\nGetGateway\0222.google.c" + + "loud.networkservices.v1.GetGatewayReques" + + "t\032(.google.cloud.networkservices.v1.Gate" + + "way\";\332A\004name\202\323\344\223\002.\022,/v1/{name=projects/*" + + "/locations/*/gateways/*}\022\200\002\n\rCreateGatew" + + "ay\0225.google.cloud.networkservices.v1.Cre" + + "ateGatewayRequest\032\035.google.longrunning.O" + + "peration\"\230\001\312A<\n\007Gateway\0221google.cloud.ne" + + "tworkservices.v1.OperationMetadata\332A\031par" + + "ent,gateway,gateway_id\202\323\344\223\0027\",/v1/{paren" + + "t=projects/*/locations/*}/gateways:\007gate" + + "way\022\202\002\n\rUpdateGateway\0225.google.cloud.net" + + "workservices.v1.UpdateGatewayRequest\032\035.g" + + "oogle.longrunning.Operation\"\232\001\312A<\n\007Gatew" + + "ay\0221google.cloud.networkservices.v1.Oper" + + "ationMetadata\332A\023gateway,update_mask\202\323\344\223\002" + + "?24/v1/{gateway.name=projects/*/location" + + "s/*/gateways/*}:\007gateway\022\360\001\n\rDeleteGatew" + + "ay\0225.google.cloud.networkservices.v1.Del" + + "eteGatewayRequest\032\035.google.longrunning.O" + + "peration\"\210\001\312AJ\n\025google.protobuf.Empty\0221g" + + "oogle.cloud.networkservices.v1.Operation" + + "Metadata\332A\004name\202\323\344\223\002.*,/v1/{name=project" + + "s/*/locations/*/gateways/*}\022\302\001\n\016ListGrpc" + + "Routes\0226.google.cloud.networkservices.v1" + + ".ListGrpcRoutesRequest\0327.google.cloud.ne" + + "tworkservices.v1.ListGrpcRoutesResponse\"" + + "?\332A\006parent\202\323\344\223\0020\022./v1/{parent=projects/*" + + "/locations/*}/grpcRoutes\022\257\001\n\014GetGrpcRout" + + "e\0224.google.cloud.networkservices.v1.GetG" + + "rpcRouteRequest\032*.google.cloud.networkse" + + "rvices.v1.GrpcRoute\"=\332A\004name\202\323\344\223\0020\022./v1/" + + "{name=projects/*/locations/*/grpcRoutes/" + + "*}\022\221\002\n\017CreateGrpcRoute\0227.google.cloud.ne" + + "tworkservices.v1.CreateGrpcRouteRequest\032" + + "\035.google.longrunning.Operation\"\245\001\312A>\n\tGr" + + "pcRoute\0221google.cloud.networkservices.v1" + + ".OperationMetadata\332A\037parent,grpc_route,g" + + "rpc_route_id\202\323\344\223\002<\"./v1/{parent=projects" + + "/*/locations/*}/grpcRoutes:\ngrpc_route\022\223" + + "\002\n\017UpdateGrpcRoute\0227.google.cloud.networ" + + "kservices.v1.UpdateGrpcRouteRequest\032\035.go" + + "ogle.longrunning.Operation\"\247\001\312A>\n\tGrpcRo" + + "ute\0221google.cloud.networkservices.v1.Ope" + + "rationMetadata\332A\026grpc_route,update_mask\202" + + "\323\344\223\002G29/v1/{grpc_route.name=projects/*/l" + + "ocations/*/grpcRoutes/*}:\ngrpc_route\022\366\001\n" + + "\017DeleteGrpcRoute\0227.google.cloud.networks" + + "ervices.v1.DeleteGrpcRouteRequest\032\035.goog" + + "le.longrunning.Operation\"\212\001\312AJ\n\025google.p" + + "rotobuf.Empty\0221google.cloud.networkservi" + + "ces.v1.OperationMetadata\332A\004name\202\323\344\223\0020*./" + + "v1/{name=projects/*/locations/*/grpcRout" + + "es/*}\022\302\001\n\016ListHttpRoutes\0226.google.cloud." + + "networkservices.v1.ListHttpRoutesRequest" + + "\0327.google.cloud.networkservices.v1.ListH" + + "ttpRoutesResponse\"?\332A\006parent\202\323\344\223\0020\022./v1/" + + "{parent=projects/*/locations/*}/httpRout" + + "es\022\257\001\n\014GetHttpRoute\0224.google.cloud.netwo" + + "rkservices.v1.GetHttpRouteRequest\032*.goog" + + "le.cloud.networkservices.v1.HttpRoute\"=\332" + + "A\004name\202\323\344\223\0020\022./v1/{name=projects/*/locat" + + "ions/*/httpRoutes/*}\022\221\002\n\017CreateHttpRoute" + + "\0227.google.cloud.networkservices.v1.Creat" + + "eHttpRouteRequest\032\035.google.longrunning.O" + + "peration\"\245\001\312A>\n\tHttpRoute\0221google.cloud." + + "networkservices.v1.OperationMetadata\332A\037p" + + "arent,http_route,http_route_id\202\323\344\223\002<\"./v" + + "1/{parent=projects/*/locations/*}/httpRo" + + "utes:\nhttp_route\022\223\002\n\017UpdateHttpRoute\0227.g" + + "oogle.cloud.networkservices.v1.UpdateHtt" + + "pRouteRequest\032\035.google.longrunning.Opera" + + "tion\"\247\001\312A>\n\tHttpRoute\0221google.cloud.netw" + + "orkservices.v1.OperationMetadata\332A\026http_" + + "route,update_mask\202\323\344\223\002G29/v1/{http_route" + + ".name=projects/*/locations/*/httpRoutes/" + + "*}:\nhttp_route\022\366\001\n\017DeleteHttpRoute\0227.goo" + + "gle.cloud.networkservices.v1.DeleteHttpR" + + "outeRequest\032\035.google.longrunning.Operati" + + "on\"\212\001\312AJ\n\025google.protobuf.Empty\0221google." + "cloud.networkservices.v1.OperationMetada" - + "ta\332A)parent,service_binding,service_bind" - + "ing_id\202\323\344\223\002F\"3/v1/{parent=projects/*/loc" - + "ations/*}/serviceBindings:\017service_bindi" - + "ng\022\266\002\n\024UpdateServiceBinding\022<.google.clo" - + "ud.networkservices.v1.UpdateServiceBindi" - + "ngRequest\032\035.google.longrunning.Operation" - + "\"\300\001\312AC\n\016ServiceBinding\0221google.cloud.net" - + "workservices.v1.OperationMetadata\332A\033serv" - + "ice_binding,update_mask\202\323\344\223\002V2C/v1/{serv" - + "ice_binding.name=projects/*/locations/*/" - + "serviceBindings/*}:\017service_binding\022\205\002\n\024" - + "DeleteServiceBinding\022<.google.cloud.netw" - + "orkservices.v1.DeleteServiceBindingReque" - + "st\032\035.google.longrunning.Operation\"\217\001\312AJ\n" - + "\025google.protobuf.Empty\0221google.cloud.net" - + "workservices.v1.OperationMetadata\332A\004name" - + "\202\323\344\223\0025*3/v1/{name=projects/*/locations/*" - + "/serviceBindings/*}\022\262\001\n\nListMeshes\0222.goo" - + "gle.cloud.networkservices.v1.ListMeshesR" - + "equest\0323.google.cloud.networkservices.v1" - + ".ListMeshesResponse\";\332A\006parent\202\323\344\223\002,\022*/v" - + "1/{parent=projects/*/locations/*}/meshes" - + "\022\234\001\n\007GetMesh\022/.google.cloud.networkservi" - + "ces.v1.GetMeshRequest\032%.google.cloud.net" - + "workservices.v1.Mesh\"9\332A\004name\202\323\344\223\002,\022*/v1" - + "/{name=projects/*/locations/*/meshes/*}\022" - + "\354\001\n\nCreateMesh\0222.google.cloud.networkser" - + "vices.v1.CreateMeshRequest\032\035.google.long" - + "running.Operation\"\212\001\312A9\n\004Mesh\0221google.cl" - + "oud.networkservices.v1.OperationMetadata" - + "\332A\023parent,mesh,mesh_id\202\323\344\223\0022\"*/v1/{paren" - + "t=projects/*/locations/*}/meshes:\004mesh\022\356" - + "\001\n\nUpdateMesh\0222.google.cloud.networkserv" - + "ices.v1.UpdateMeshRequest\032\035.google.longr" - + "unning.Operation\"\214\001\312A9\n\004Mesh\0221google.clo" - + "ud.networkservices.v1.OperationMetadata\332" - + "A\020mesh,update_mask\202\323\344\223\00272//v1/{mesh.name" - + "=projects/*/locations/*/meshes/*}:\004mesh\022" - + "\350\001\n\nDeleteMesh\0222.google.cloud.networkser" - + "vices.v1.DeleteMeshRequest\032\035.google.long" - + "running.Operation\"\206\001\312AJ\n\025google.protobuf" - + ".Empty\0221google.cloud.networkservices.v1." - + "OperationMetadata\332A\004name\202\323\344\223\002,**/v1/{nam" - + "e=projects/*/locations/*/meshes/*}\022\336\001\n\025L" - + "istServiceLbPolicies\022=.google.cloud.netw" - + "orkservices.v1.ListServiceLbPoliciesRequ" - + "est\032>.google.cloud.networkservices.v1.Li" - + "stServiceLbPoliciesResponse\"F\332A\006parent\202\323" - + "\344\223\0027\0225/v1/{parent=projects/*/locations/*" - + "}/serviceLbPolicies\022\310\001\n\022GetServiceLbPoli" - + "cy\022:.google.cloud.networkservices.v1.Get" - + "ServiceLbPolicyRequest\0320.google.cloud.ne" - + "tworkservices.v1.ServiceLbPolicy\"D\332A\004nam" - + "e\202\323\344\223\0027\0225/v1/{name=projects/*/locations/" - + "*/serviceLbPolicies/*}\022\277\002\n\025CreateService" - + "LbPolicy\022=.google.cloud.networkservices." - + "v1.CreateServiceLbPolicyRequest\032\035.google" - + ".longrunning.Operation\"\307\001\312AD\n\017ServiceLbP" - + "olicy\0221google.cloud.networkservices.v1.O" - + "perationMetadata\332A-parent,service_lb_pol" - + "icy,service_lb_policy_id\202\323\344\223\002J\"5/v1/{par" - + "ent=projects/*/locations/*}/serviceLbPol" - + "icies:\021service_lb_policy\022\301\002\n\025UpdateServi" - + "ceLbPolicy\022=.google.cloud.networkservice" - + "s.v1.UpdateServiceLbPolicyRequest\032\035.goog" - + "le.longrunning.Operation\"\311\001\312AD\n\017ServiceL" - + "bPolicy\0221google.cloud.networkservices.v1" - + ".OperationMetadata\332A\035service_lb_policy,u" - + "pdate_mask\202\323\344\223\002\\2G/v1/{service_lb_policy" - + ".name=projects/*/locations/*/serviceLbPo" - + "licies/*}:\021service_lb_policy\022\211\002\n\025DeleteS" - + "erviceLbPolicy\022=.google.cloud.networkser" - + "vices.v1.DeleteServiceLbPolicyRequest\032\035." - + "google.longrunning.Operation\"\221\001\312AJ\n\025goog" - + "le.protobuf.Empty\0221google.cloud.networks" - + "ervices.v1.OperationMetadata\332A\004name\202\323\344\223\002" - + "7*5/v1/{name=projects/*/locations/*/serv" - + "iceLbPolicies/*}\022\317\001\n\023GetGatewayRouteView" - + "\022;.google.cloud.networkservices.v1.GetGa" - + "tewayRouteViewRequest\0321.google.cloud.net" - + "workservices.v1.GatewayRouteView\"H\332A\004nam" - + "e\202\323\344\223\002;\0229/v1/{name=projects/*/locations/" - + "*/gateways/*/routeViews/*}\022\304\001\n\020GetMeshRo" - + "uteView\0228.google.cloud.networkservices.v" - + "1.GetMeshRouteViewRequest\032..google.cloud" - + ".networkservices.v1.MeshRouteView\"F\332A\004na" - + "me\202\323\344\223\0029\0227/v1/{name=projects/*/locations" - + "/*/meshes/*/routeViews/*}\022\342\001\n\025ListGatewa" - + "yRouteViews\022=.google.cloud.networkservic" - + "es.v1.ListGatewayRouteViewsRequest\032>.goo" - + "gle.cloud.networkservices.v1.ListGateway" - + "RouteViewsResponse\"J\332A\006parent\202\323\344\223\002;\0229/v1" - + "/{parent=projects/*/locations/*/gateways" - + "/*}/routeViews\022\327\001\n\022ListMeshRouteViews\022:." - + "google.cloud.networkservices.v1.ListMesh" - + "RouteViewsRequest\032;.google.cloud.network" - + "services.v1.ListMeshRouteViewsResponse\"H" - + "\332A\006parent\202\323\344\223\0029\0227/v1/{parent=projects/*/" - + "locations/*/meshes/*}/routeViews\032R\312A\036net" - + "workservices.googleapis.com\322A.https://ww" - + "w.googleapis.com/auth/cloud-platformB\337\001\n" - + "#com.google.cloud.networkservices.v1P\001ZM" - + "cloud.google.com/go/networkservices/apiv" - + "1/networkservicespb;networkservicespb\252\002\037" - + "Google.Cloud.NetworkServices.V1\312\002\037Google" - + "\\Cloud\\NetworkServices\\V1\352\002\"Google::Clou" - + "d::NetworkServices::V1b\006proto3" + + "ta\332A\004name\202\323\344\223\0020*./v1/{name=projects/*/lo" + + "cations/*/httpRoutes/*}\022\276\001\n\rListTcpRoute" + + "s\0225.google.cloud.networkservices.v1.List" + + "TcpRoutesRequest\0326.google.cloud.networks" + + "ervices.v1.ListTcpRoutesResponse\">\332A\006par" + + "ent\202\323\344\223\002/\022-/v1/{parent=projects/*/locati" + + "ons/*}/tcpRoutes\022\253\001\n\013GetTcpRoute\0223.googl" + + "e.cloud.networkservices.v1.GetTcpRouteRe" + + "quest\032).google.cloud.networkservices.v1." + + "TcpRoute\"<\332A\004name\202\323\344\223\002/\022-/v1/{name=proje" + + "cts/*/locations/*/tcpRoutes/*}\022\212\002\n\016Creat" + + "eTcpRoute\0226.google.cloud.networkservices" + + ".v1.CreateTcpRouteRequest\032\035.google.longr" + + "unning.Operation\"\240\001\312A=\n\010TcpRoute\0221google" + + ".cloud.networkservices.v1.OperationMetad" + + "ata\332A\035parent,tcp_route,tcp_route_id\202\323\344\223\002" + + ":\"-/v1/{parent=projects/*/locations/*}/t" + + "cpRoutes:\ttcp_route\022\214\002\n\016UpdateTcpRoute\0226" + + ".google.cloud.networkservices.v1.UpdateT" + + "cpRouteRequest\032\035.google.longrunning.Oper" + + "ation\"\242\001\312A=\n\010TcpRoute\0221google.cloud.netw" + + "orkservices.v1.OperationMetadata\332A\025tcp_r" + + "oute,update_mask\202\323\344\223\002D27/v1/{tcp_route.n" + + "ame=projects/*/locations/*/tcpRoutes/*}:" + + "\ttcp_route\022\363\001\n\016DeleteTcpRoute\0226.google.c" + + "loud.networkservices.v1.DeleteTcpRouteRe" + + "quest\032\035.google.longrunning.Operation\"\211\001\312" + + "AJ\n\025google.protobuf.Empty\0221google.cloud." + + "networkservices.v1.OperationMetadata\332A\004n" + + "ame\202\323\344\223\002/*-/v1/{name=projects/*/location" + + "s/*/tcpRoutes/*}\022\276\001\n\rListTlsRoutes\0225.goo" + + "gle.cloud.networkservices.v1.ListTlsRout" + + "esRequest\0326.google.cloud.networkservices" + + ".v1.ListTlsRoutesResponse\">\332A\006parent\202\323\344\223" + + "\002/\022-/v1/{parent=projects/*/locations/*}/" + + "tlsRoutes\022\253\001\n\013GetTlsRoute\0223.google.cloud" + + ".networkservices.v1.GetTlsRouteRequest\032)" + + ".google.cloud.networkservices.v1.TlsRout" + + "e\"<\332A\004name\202\323\344\223\002/\022-/v1/{name=projects/*/l" + + "ocations/*/tlsRoutes/*}\022\212\002\n\016CreateTlsRou" + + "te\0226.google.cloud.networkservices.v1.Cre" + + "ateTlsRouteRequest\032\035.google.longrunning." + + "Operation\"\240\001\312A=\n\010TlsRoute\0221google.cloud." + + "networkservices.v1.OperationMetadata\332A\035p" + + "arent,tls_route,tls_route_id\202\323\344\223\002:\"-/v1/" + + "{parent=projects/*/locations/*}/tlsRoute" + + "s:\ttls_route\022\214\002\n\016UpdateTlsRoute\0226.google" + + ".cloud.networkservices.v1.UpdateTlsRoute" + + "Request\032\035.google.longrunning.Operation\"\242" + + "\001\312A=\n\010TlsRoute\0221google.cloud.networkserv" + + "ices.v1.OperationMetadata\332A\025tls_route,up" + + "date_mask\202\323\344\223\002D27/v1/{tls_route.name=pro" + + "jects/*/locations/*/tlsRoutes/*}:\ttls_ro" + + "ute\022\363\001\n\016DeleteTlsRoute\0226.google.cloud.ne" + + "tworkservices.v1.DeleteTlsRouteRequest\032\035" + + ".google.longrunning.Operation\"\211\001\312AJ\n\025goo" + + "gle.protobuf.Empty\0221google.cloud.network" + + "services.v1.OperationMetadata\332A\004name\202\323\344\223" + + "\002/*-/v1/{name=projects/*/locations/*/tls" + + "Routes/*}\022\326\001\n\023ListServiceBindings\022;.goog" + + "le.cloud.networkservices.v1.ListServiceB" + + "indingsRequest\032<.google.cloud.networkser" + + "vices.v1.ListServiceBindingsResponse\"D\332A" + + "\006parent\202\323\344\223\0025\0223/v1/{parent=projects/*/lo" + + "cations/*}/serviceBindings\022\303\001\n\021GetServic" + + "eBinding\0229.google.cloud.networkservices." + + "v1.GetServiceBindingRequest\032/.google.clo" + + "ud.networkservices.v1.ServiceBinding\"B\332A" + + "\004name\202\323\344\223\0025\0223/v1/{name=projects/*/locati" + + "ons/*/serviceBindings/*}\022\264\002\n\024CreateServi" + + "ceBinding\022<.google.cloud.networkservices" + + ".v1.CreateServiceBindingRequest\032\035.google" + + ".longrunning.Operation\"\276\001\312AC\n\016ServiceBin" + + "ding\0221google.cloud.networkservices.v1.Op" + + "erationMetadata\332A)parent,service_binding" + + ",service_binding_id\202\323\344\223\002F\"3/v1/{parent=p" + + "rojects/*/locations/*}/serviceBindings:\017" + + "service_binding\022\266\002\n\024UpdateServiceBinding" + + "\022<.google.cloud.networkservices.v1.Updat" + + "eServiceBindingRequest\032\035.google.longrunn" + + "ing.Operation\"\300\001\312AC\n\016ServiceBinding\0221goo" + + "gle.cloud.networkservices.v1.OperationMe" + + "tadata\332A\033service_binding,update_mask\202\323\344\223" + + "\002V2C/v1/{service_binding.name=projects/*" + + "/locations/*/serviceBindings/*}:\017service" + + "_binding\022\205\002\n\024DeleteServiceBinding\022<.goog" + + "le.cloud.networkservices.v1.DeleteServic" + + "eBindingRequest\032\035.google.longrunning.Ope" + + "ration\"\217\001\312AJ\n\025google.protobuf.Empty\0221goo" + + "gle.cloud.networkservices.v1.OperationMe" + + "tadata\332A\004name\202\323\344\223\0025*3/v1/{name=projects/" + + "*/locations/*/serviceBindings/*}\022\262\001\n\nLis" + + "tMeshes\0222.google.cloud.networkservices.v" + + "1.ListMeshesRequest\0323.google.cloud.netwo" + + "rkservices.v1.ListMeshesResponse\";\332A\006par" + + "ent\202\323\344\223\002,\022*/v1/{parent=projects/*/locati" + + "ons/*}/meshes\022\234\001\n\007GetMesh\022/.google.cloud" + + ".networkservices.v1.GetMeshRequest\032%.goo" + + "gle.cloud.networkservices.v1.Mesh\"9\332A\004na" + + "me\202\323\344\223\002,\022*/v1/{name=projects/*/locations" + + "/*/meshes/*}\022\354\001\n\nCreateMesh\0222.google.clo" + + "ud.networkservices.v1.CreateMeshRequest\032" + + "\035.google.longrunning.Operation\"\212\001\312A9\n\004Me" + + "sh\0221google.cloud.networkservices.v1.Oper" + + "ationMetadata\332A\023parent,mesh,mesh_id\202\323\344\223\002" + + "2\"*/v1/{parent=projects/*/locations/*}/m" + + "eshes:\004mesh\022\356\001\n\nUpdateMesh\0222.google.clou" + + "d.networkservices.v1.UpdateMeshRequest\032\035" + + ".google.longrunning.Operation\"\214\001\312A9\n\004Mes" + + "h\0221google.cloud.networkservices.v1.Opera" + + "tionMetadata\332A\020mesh,update_mask\202\323\344\223\00272//" + + "v1/{mesh.name=projects/*/locations/*/mes" + + "hes/*}:\004mesh\022\350\001\n\nDeleteMesh\0222.google.clo" + + "ud.networkservices.v1.DeleteMeshRequest\032" + + "\035.google.longrunning.Operation\"\206\001\312AJ\n\025go" + + "ogle.protobuf.Empty\0221google.cloud.networ" + + "kservices.v1.OperationMetadata\332A\004name\202\323\344" + + "\223\002,**/v1/{name=projects/*/locations/*/me" + + "shes/*}\022\336\001\n\025ListServiceLbPolicies\022=.goog" + + "le.cloud.networkservices.v1.ListServiceL" + + "bPoliciesRequest\032>.google.cloud.networks" + + "ervices.v1.ListServiceLbPoliciesResponse" + + "\"F\332A\006parent\202\323\344\223\0027\0225/v1/{parent=projects/" + + "*/locations/*}/serviceLbPolicies\022\310\001\n\022Get" + + "ServiceLbPolicy\022:.google.cloud.networkse" + + "rvices.v1.GetServiceLbPolicyRequest\0320.go" + + "ogle.cloud.networkservices.v1.ServiceLbP" + + "olicy\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=projects" + + "/*/locations/*/serviceLbPolicies/*}\022\277\002\n\025" + + "CreateServiceLbPolicy\022=.google.cloud.net" + + "workservices.v1.CreateServiceLbPolicyReq" + + "uest\032\035.google.longrunning.Operation\"\307\001\312A" + + "D\n\017ServiceLbPolicy\0221google.cloud.network" + + "services.v1.OperationMetadata\332A-parent,s" + + "ervice_lb_policy,service_lb_policy_id\202\323\344" + + "\223\002J\"5/v1/{parent=projects/*/locations/*}" + + "/serviceLbPolicies:\021service_lb_policy\022\301\002" + + "\n\025UpdateServiceLbPolicy\022=.google.cloud.n" + + "etworkservices.v1.UpdateServiceLbPolicyR" + + "equest\032\035.google.longrunning.Operation\"\311\001" + + "\312AD\n\017ServiceLbPolicy\0221google.cloud.netwo" + + "rkservices.v1.OperationMetadata\332A\035servic" + + "e_lb_policy,update_mask\202\323\344\223\002\\2G/v1/{serv" + + "ice_lb_policy.name=projects/*/locations/" + + "*/serviceLbPolicies/*}:\021service_lb_polic" + + "y\022\211\002\n\025DeleteServiceLbPolicy\022=.google.clo" + + "ud.networkservices.v1.DeleteServiceLbPol" + + "icyRequest\032\035.google.longrunning.Operatio" + + "n\"\221\001\312AJ\n\025google.protobuf.Empty\0221google.c" + + "loud.networkservices.v1.OperationMetadat" + + "a\332A\004name\202\323\344\223\0027*5/v1/{name=projects/*/loc" + + "ations/*/serviceLbPolicies/*}\022\317\001\n\023GetGat" + + "ewayRouteView\022;.google.cloud.networkserv" + + "ices.v1.GetGatewayRouteViewRequest\0321.goo" + + "gle.cloud.networkservices.v1.GatewayRout" + + "eView\"H\332A\004name\202\323\344\223\002;\0229/v1/{name=projects" + + "/*/locations/*/gateways/*/routeViews/*}\022" + + "\304\001\n\020GetMeshRouteView\0228.google.cloud.netw" + + "orkservices.v1.GetMeshRouteViewRequest\032." + + ".google.cloud.networkservices.v1.MeshRou" + + "teView\"F\332A\004name\202\323\344\223\0029\0227/v1/{name=project" + + "s/*/locations/*/meshes/*/routeViews/*}\022\342" + + "\001\n\025ListGatewayRouteViews\022=.google.cloud." + + "networkservices.v1.ListGatewayRouteViews" + + "Request\032>.google.cloud.networkservices.v" + + "1.ListGatewayRouteViewsResponse\"J\332A\006pare" + + "nt\202\323\344\223\002;\0229/v1/{parent=projects/*/locatio" + + "ns/*/gateways/*}/routeViews\022\327\001\n\022ListMesh" + + "RouteViews\022:.google.cloud.networkservice" + + "s.v1.ListMeshRouteViewsRequest\032;.google." + + "cloud.networkservices.v1.ListMeshRouteVi" + + "ewsResponse\"H\332A\006parent\202\323\344\223\0029\0227/v1/{paren" + + "t=projects/*/locations/*/meshes/*}/route" + + "Views\022\316\001\n\021ListAgentGateways\0229.google.clo" + + "ud.networkservices.v1.ListAgentGatewaysR" + + "equest\032:.google.cloud.networkservices.v1" + + ".ListAgentGatewaysResponse\"B\332A\006parent\202\323\344" + + "\223\0023\0221/v1/{parent=projects/*/locations/*}" + + "/agentGateways\022\273\001\n\017GetAgentGateway\0227.goo" + + "gle.cloud.networkservices.v1.GetAgentGat" + + "ewayRequest\032-.google.cloud.networkservic" + + "es.v1.AgentGateway\"@\332A\004name\202\323\344\223\0023\0221/v1/{" + + "name=projects/*/locations/*/agentGateway" + + "s/*}\022\246\002\n\022CreateAgentGateway\022:.google.clo" + + "ud.networkservices.v1.CreateAgentGateway" + + "Request\032\035.google.longrunning.Operation\"\264" + + "\001\312AA\n\014AgentGateway\0221google.cloud.network" + + "services.v1.OperationMetadata\332A%parent,a" + + "gent_gateway,agent_gateway_id\202\323\344\223\002B\"1/v1" + + "/{parent=projects/*/locations/*}/agentGa" + + "teways:\ragent_gateway\022\250\002\n\022UpdateAgentGat" + + "eway\022:.google.cloud.networkservices.v1.U" + + "pdateAgentGatewayRequest\032\035.google.longru" + + "nning.Operation\"\266\001\312AA\n\014AgentGateway\0221goo" + + "gle.cloud.networkservices.v1.OperationMe" + + "tadata\332A\031agent_gateway,update_mask\202\323\344\223\002P" + + "2?/v1/{agent_gateway.name=projects/*/loc" + + "ations/*/agentGateways/*}:\ragent_gateway" + + "\022\377\001\n\022DeleteAgentGateway\022:.google.cloud.n" + + "etworkservices.v1.DeleteAgentGatewayRequ" + + "est\032\035.google.longrunning.Operation\"\215\001\312AJ" + + "\n\025google.protobuf.Empty\0221google.cloud.ne" + + "tworkservices.v1.OperationMetadata\332A\004nam", + "e\202\323\344\223\0023*1/v1/{name=projects/*/locations/" + + "*/agentGateways/*}\032R\312A\036networkservices.g" + + "oogleapis.com\322A.https://www.googleapis.c" + + "om/auth/cloud-platformB\337\001\n#com.google.cl" + + "oud.networkservices.v1P\001ZMcloud.google.c" + + "om/go/networkservices/apiv1/networkservi" + + "cespb;networkservicespb\252\002\037Google.Cloud.N" + + "etworkServices.V1\312\002\037Google\\Cloud\\Network" + + "Services\\V1\352\002\"Google::Cloud::NetworkServ" + + "ices::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -432,6 +465,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), + com.google.cloud.networkservices.v1.AgentGatewayProto.getDescriptor(), com.google.cloud.networkservices.v1.CommonProto.getDescriptor(), com.google.cloud.networkservices.v1.EndpointPolicyProto.getDescriptor(), com.google.cloud.networkservices.v1.ExtensibilityProto.getDescriptor(), @@ -450,6 +484,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); + com.google.cloud.networkservices.v1.AgentGatewayProto.getDescriptor(); com.google.cloud.networkservices.v1.CommonProto.getDescriptor(); com.google.cloud.networkservices.v1.EndpointPolicyProto.getDescriptor(); com.google.cloud.networkservices.v1.ExtensibilityProto.getDescriptor(); diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceBindingProto.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceBindingProto.java index cec38bf9a499..3a9d7ea332d9 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceBindingProto.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceBindingProto.java @@ -81,64 +81,64 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + "5google/cloud/networkservices/v1/service_binding.proto\022\037google.cloud.networkser" - + "vices.v1\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\210\004\n" - + "\016ServiceBinding\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\022\030\n" - + "\013description\030\002 \001(\tB\003\340A\001\0224\n" - + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013update_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022B\n" - + "\007service\030\005 \001(\tB1\030\001\340A\001\372A)\n" - + "\'servicedirectory.googleapis.com/Service\022\031\n\n" - + "service_id\030\010 \001(\tB\005\030\001\340A\003\022P\n" - + "\006labels\030\007 \003(\0132;.google.cloud.networ" - + "kservices.v1.ServiceBinding.LabelsEntryB\003\340A\001\032-\n" - + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001:}\352Az\n" - + "-networkservices.googleapis.com/ServiceBinding\022Iprojects/{proje" - + "ct}/locations/{location}/serviceBindings/{service_binding}\"\212\001\n" - + "\032ListServiceBindingsRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-netwo" - + "rkservices.googleapis.com/ServiceBinding\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\226\001\n" - + "\033ListServiceBindingsResponse\022I\n" - + "\020service_bindings\030\001" - + " \003(\0132/.google.cloud.networkservices.v1.ServiceBinding\022\027\n" - + "\017next_page_token\030\002 \001(\t\022\023\n" - + "\013unreachable\030\003 \003(\t\"_\n" - + "\030GetServiceBindingRequest\022C\n" - + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-networkservices.googleapis.com/ServiceBinding\"\324\001\n" - + "\033CreateServiceBindingRequest\022E\n" - + "\006parent\030\001 \001(" - + "\tB5\340A\002\372A/\022-networkservices.googleapis.com/ServiceBinding\022\037\n" - + "\022service_binding_id\030\002 \001(\tB\003\340A\002\022M\n" - + "\017service_binding\030\003" - + " \001(\0132/.google.cloud.networkservices.v1.ServiceBindingB\003\340A\002\"\242\001\n" - + "\033UpdateServiceBindingRequest\0224\n" - + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022M\n" - + "\017service_binding\030\002" - + " \001(\0132/.google.cloud.networkservices.v1.ServiceBindingB\003\340A\002\"b\n" - + "\033DeleteServiceBindingRequest\022C\n" - + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-networkservices.googleapis.com/ServiceBindingB\363\002\n" - + "#com.google.cloud.networkservices.v1B\023ServiceBindingProtoP\001ZMcloud." - + "google.com/go/networkservices/apiv1/netw" - + "orkservicespb;networkservicespb\252\002\037Google" - + ".Cloud.NetworkServices.V1\312\002\037Google\\Cloud" - + "\\NetworkServices\\V1\352\002\"Google::Cloud::NetworkServices::V1\352A|\n" - + "\'servicedirectory.googleapis.com/Service\022Qprojects/{project}" - + "/locations/{location}/namespaces/{namespace}/services/{service}b\006proto3" + "\n5google/cloud/networkservices/v1/servic" + + "e_binding.proto\022\037google.cloud.networkser" + + "vices.v1\032\037google/api/field_behavior.prot" + + "o\032\033google/api/field_info.proto\032\031google/a" + + "pi/resource.proto\032 google/protobuf/field" + + "_mask.proto\032\037google/protobuf/timestamp.p" + + "roto\"\210\004\n\016ServiceBinding\022\021\n\004name\030\001 \001(\tB\003\340" + + "A\010\022\030\n\013description\030\002 \001(\tB\003\340A\001\0224\n\013create_t" + + "ime\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\0224\n\013update_time\030\004 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\022B\n\007service\030\005 \001(\tB1\030\001\340A\001" + + "\372A)\n\'servicedirectory.googleapis.com/Ser" + + "vice\022\031\n\nservice_id\030\010 \001(\tB\005\030\001\340A\003\022P\n\006label" + + "s\030\007 \003(\0132;.google.cloud.networkservices.v" + + "1.ServiceBinding.LabelsEntryB\003\340A\001\032-\n\013Lab" + + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + ":}\352Az\n-networkservices.googleapis.com/Se" + + "rviceBinding\022Iprojects/{project}/locatio" + + "ns/{location}/serviceBindings/{service_b" + + "inding}\"\212\001\n\032ListServiceBindingsRequest\022E" + + "\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-networkservices." + + "googleapis.com/ServiceBinding\022\021\n\tpage_si" + + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\226\001\n\033ListSer" + + "viceBindingsResponse\022I\n\020service_bindings" + + "\030\001 \003(\0132/.google.cloud.networkservices.v1" + + ".ServiceBinding\022\027\n\017next_page_token\030\002 \001(\t" + + "\022\023\n\013unreachable\030\003 \003(\t\"_\n\030GetServiceBindi" + + "ngRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-network" + + "services.googleapis.com/ServiceBinding\"\324" + + "\001\n\033CreateServiceBindingRequest\022E\n\006parent" + + "\030\001 \001(\tB5\340A\002\372A/\022-networkservices.googleap" + + "is.com/ServiceBinding\022\037\n\022service_binding" + + "_id\030\002 \001(\tB\003\340A\002\022M\n\017service_binding\030\003 \001(\0132" + + "/.google.cloud.networkservices.v1.Servic" + + "eBindingB\003\340A\002\"\242\001\n\033UpdateServiceBindingRe" + + "quest\0224\n\013update_mask\030\001 \001(\0132\032.google.prot" + + "obuf.FieldMaskB\003\340A\001\022M\n\017service_binding\030\002" + + " \001(\0132/.google.cloud.networkservices.v1.S" + + "erviceBindingB\003\340A\002\"b\n\033DeleteServiceBindi" + + "ngRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-network" + + "services.googleapis.com/ServiceBindingB\363" + + "\002\n#com.google.cloud.networkservices.v1B\023" + + "ServiceBindingProtoP\001ZMcloud.google.com/" + + "go/networkservices/apiv1/networkservices" + + "pb;networkservicespb\252\002\037Google.Cloud.Netw" + + "orkServices.V1\312\002\037Google\\Cloud\\NetworkSer" + + "vices\\V1\352\002\"Google::Cloud::NetworkService" + + "s::V1\352A|\n\'servicedirectory.googleapis.co" + + "m/Service\022Qprojects/{project}/locations/" + + "{location}/namespaces/{namespace}/servic" + + "es/{service}b\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(), com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -209,6 +209,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TcpRoute.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TcpRoute.java index 1c706c812a52..b4cdfd359f50 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TcpRoute.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TcpRoute.java @@ -4913,7 +4913,7 @@ public com.google.protobuf.Parser getParserForType() { * *
    * Identifier. Name of the TcpRoute resource. It matches pattern
-   * `projects/*/locations/global/tcpRoutes/tcp_route_name>`.
+   * `projects/*/locations/*/tcpRoutes/tcp_route_name>`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -4938,7 +4938,7 @@ public java.lang.String getName() { * *
    * Identifier. Name of the TcpRoute resource. It matches pattern
-   * `projects/*/locations/global/tcpRoutes/tcp_route_name>`.
+   * `projects/*/locations/*/tcpRoutes/tcp_route_name>`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -5281,7 +5281,7 @@ public com.google.cloud.networkservices.v1.TcpRoute.RouteRuleOrBuilder getRulesO * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -5304,7 +5304,7 @@ public com.google.protobuf.ProtocolStringList getMeshesList() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -5327,7 +5327,7 @@ public int getMeshesCount() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -5351,7 +5351,7 @@ public java.lang.String getMeshes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -5381,7 +5381,7 @@ public com.google.protobuf.ByteString getMeshesBytes(int index) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -5402,7 +5402,7 @@ public com.google.protobuf.ProtocolStringList getGatewaysList() { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -5423,7 +5423,7 @@ public int getGatewaysCount() { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -5445,7 +5445,7 @@ public java.lang.String getGateways(int index) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -6216,7 +6216,7 @@ public Builder mergeFrom( * *
      * Identifier. Name of the TcpRoute resource. It matches pattern
-     * `projects/*/locations/global/tcpRoutes/tcp_route_name>`.
+     * `projects/*/locations/*/tcpRoutes/tcp_route_name>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -6240,7 +6240,7 @@ public java.lang.String getName() { * *
      * Identifier. Name of the TcpRoute resource. It matches pattern
-     * `projects/*/locations/global/tcpRoutes/tcp_route_name>`.
+     * `projects/*/locations/*/tcpRoutes/tcp_route_name>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -6264,7 +6264,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Identifier. Name of the TcpRoute resource. It matches pattern
-     * `projects/*/locations/global/tcpRoutes/tcp_route_name>`.
+     * `projects/*/locations/*/tcpRoutes/tcp_route_name>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -6287,7 +6287,7 @@ public Builder setName(java.lang.String value) { * *
      * Identifier. Name of the TcpRoute resource. It matches pattern
-     * `projects/*/locations/global/tcpRoutes/tcp_route_name>`.
+     * `projects/*/locations/*/tcpRoutes/tcp_route_name>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -6306,7 +6306,7 @@ public Builder clearName() { * *
      * Identifier. Name of the TcpRoute resource. It matches pattern
-     * `projects/*/locations/global/tcpRoutes/tcp_route_name>`.
+     * `projects/*/locations/*/tcpRoutes/tcp_route_name>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -7441,7 +7441,7 @@ private void ensureMeshesIsMutable() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7465,7 +7465,7 @@ public com.google.protobuf.ProtocolStringList getMeshesList() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7488,7 +7488,7 @@ public int getMeshesCount() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7512,7 +7512,7 @@ public java.lang.String getMeshes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7536,7 +7536,7 @@ public com.google.protobuf.ByteString getMeshesBytes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7568,7 +7568,7 @@ public Builder setMeshes(int index, java.lang.String value) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7599,7 +7599,7 @@ public Builder addMeshes(java.lang.String value) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7627,7 +7627,7 @@ public Builder addAllMeshes(java.lang.Iterable values) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7654,7 +7654,7 @@ public Builder clearMeshes() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7696,7 +7696,7 @@ private void ensureGatewaysIsMutable() { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7718,7 +7718,7 @@ public com.google.protobuf.ProtocolStringList getGatewaysList() { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7739,7 +7739,7 @@ public int getGatewaysCount() { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7761,7 +7761,7 @@ public java.lang.String getGateways(int index) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7783,7 +7783,7 @@ public com.google.protobuf.ByteString getGatewaysBytes(int index) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7813,7 +7813,7 @@ public Builder setGateways(int index, java.lang.String value) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7842,7 +7842,7 @@ public Builder addGateways(java.lang.String value) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7868,7 +7868,7 @@ public Builder addAllGateways(java.lang.Iterable values) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7893,7 +7893,7 @@ public Builder clearGateways() { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TcpRouteOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TcpRouteOrBuilder.java index 1f055fe7c403..cf011f99bdde 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TcpRouteOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TcpRouteOrBuilder.java @@ -31,7 +31,7 @@ public interface TcpRouteOrBuilder * *
    * Identifier. Name of the TcpRoute resource. It matches pattern
-   * `projects/*/locations/global/tcpRoutes/tcp_route_name>`.
+   * `projects/*/locations/*/tcpRoutes/tcp_route_name>`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -45,7 +45,7 @@ public interface TcpRouteOrBuilder * *
    * Identifier. Name of the TcpRoute resource. It matches pattern
-   * `projects/*/locations/global/tcpRoutes/tcp_route_name>`.
+   * `projects/*/locations/*/tcpRoutes/tcp_route_name>`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -272,7 +272,7 @@ public interface TcpRouteOrBuilder * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -293,7 +293,7 @@ public interface TcpRouteOrBuilder * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -314,7 +314,7 @@ public interface TcpRouteOrBuilder * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -336,7 +336,7 @@ public interface TcpRouteOrBuilder * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -358,7 +358,7 @@ public interface TcpRouteOrBuilder * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -377,7 +377,7 @@ public interface TcpRouteOrBuilder * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -396,7 +396,7 @@ public interface TcpRouteOrBuilder * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -416,7 +416,7 @@ public interface TcpRouteOrBuilder * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRoute.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRoute.java index 9b15665ac8ba..f0e55c059764 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRoute.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRoute.java @@ -59,6 +59,7 @@ private TlsRoute() { rules_ = java.util.Collections.emptyList(); meshes_ = com.google.protobuf.LazyStringArrayList.emptyList(); gateways_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetProxies_ = com.google.protobuf.LazyStringArrayList.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -5057,7 +5058,7 @@ public com.google.protobuf.Parser getParserForType() { * *
    * Identifier. Name of the TlsRoute resource. It matches pattern
-   * `projects/*/locations/global/tlsRoutes/tls_route_name>`.
+   * `projects/*/locations/*/tlsRoutes/tls_route_name>`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -5082,7 +5083,7 @@ public java.lang.String getName() { * *
    * Identifier. Name of the TlsRoute resource. It matches pattern
-   * `projects/*/locations/global/tlsRoutes/tls_route_name>`.
+   * `projects/*/locations/*/tlsRoutes/tls_route_name>`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -5425,7 +5426,7 @@ public com.google.cloud.networkservices.v1.TlsRoute.RouteRuleOrBuilder getRulesO * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -5448,7 +5449,7 @@ public com.google.protobuf.ProtocolStringList getMeshesList() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -5471,7 +5472,7 @@ public int getMeshesCount() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -5495,7 +5496,7 @@ public java.lang.String getMeshes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -5525,7 +5526,7 @@ public com.google.protobuf.ByteString getMeshesBytes(int index) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -5546,7 +5547,7 @@ public com.google.protobuf.ProtocolStringList getGatewaysList() { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -5567,7 +5568,7 @@ public int getGatewaysCount() { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -5589,7 +5590,7 @@ public java.lang.String getGateways(int index) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -5603,6 +5604,102 @@ public com.google.protobuf.ByteString getGatewaysBytes(int index) { return gateways_.getByteString(index); } + public static final int TARGET_PROXIES_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList targetProxies_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
+   * attached to, as one of the routing rules to route the requests served by
+   * the TargetTcpProxy.
+   *
+   * Each TargetTcpProxy reference should match the pattern:
+   * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
+   * 
+ * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetProxies. + */ + public com.google.protobuf.ProtocolStringList getTargetProxiesList() { + return targetProxies_; + } + + /** + * + * + *
+   * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
+   * attached to, as one of the routing rules to route the requests served by
+   * the TargetTcpProxy.
+   *
+   * Each TargetTcpProxy reference should match the pattern:
+   * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
+   * 
+ * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetProxies. + */ + public int getTargetProxiesCount() { + return targetProxies_.size(); + } + + /** + * + * + *
+   * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
+   * attached to, as one of the routing rules to route the requests served by
+   * the TargetTcpProxy.
+   *
+   * Each TargetTcpProxy reference should match the pattern:
+   * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
+   * 
+ * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetProxies at the given index. + */ + public java.lang.String getTargetProxies(int index) { + return targetProxies_.get(index); + } + + /** + * + * + *
+   * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
+   * attached to, as one of the routing rules to route the requests served by
+   * the TargetTcpProxy.
+   *
+   * Each TargetTcpProxy reference should match the pattern:
+   * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
+   * 
+ * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetProxies at the given index. + */ + public com.google.protobuf.ByteString getTargetProxiesBytes(int index) { + return targetProxies_.getByteString(index); + } + public static final int LABELS_FIELD_NUMBER = 11; private static final class LabelsDefaultEntryHolder { @@ -5750,6 +5847,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 11); + for (int i = 0; i < targetProxies_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, targetProxies_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -5803,6 +5903,14 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, labels__); } + { + int dataSize = 0; + for (int i = 0; i < targetProxies_.size(); i++) { + dataSize += computeStringSizeNoTag(targetProxies_.getRaw(i)); + } + size += dataSize; + size += 1 * getTargetProxiesList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -5833,6 +5941,7 @@ public boolean equals(final java.lang.Object obj) { if (!getRulesList().equals(other.getRulesList())) return false; if (!getMeshesList().equals(other.getMeshesList())) return false; if (!getGatewaysList().equals(other.getGatewaysList())) return false; + if (!getTargetProxiesList().equals(other.getTargetProxiesList())) return false; if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -5871,6 +5980,10 @@ public int hashCode() { hash = (37 * hash) + GATEWAYS_FIELD_NUMBER; hash = (53 * hash) + getGatewaysList().hashCode(); } + if (getTargetProxiesCount() > 0) { + hash = (37 * hash) + TARGET_PROXIES_FIELD_NUMBER; + hash = (53 * hash) + getTargetProxiesList().hashCode(); + } if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); @@ -6071,6 +6184,7 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000020); meshes_ = com.google.protobuf.LazyStringArrayList.emptyList(); gateways_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetProxies_ = com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableLabels().clear(); return this; } @@ -6148,6 +6262,10 @@ private void buildPartial0(com.google.cloud.networkservices.v1.TlsRoute result) result.gateways_ = gateways_; } if (((from_bitField0_ & 0x00000100) != 0)) { + targetProxies_.makeImmutable(); + result.targetProxies_ = targetProxies_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } @@ -6234,8 +6352,18 @@ public Builder mergeFrom(com.google.cloud.networkservices.v1.TlsRoute other) { } onChanged(); } + if (!other.targetProxies_.isEmpty()) { + if (targetProxies_.isEmpty()) { + targetProxies_ = other.targetProxies_; + bitField0_ |= 0x00000100; + } else { + ensureTargetProxiesIsMutable(); + targetProxies_.addAll(other.targetProxies_); + } + onChanged(); + } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -6331,9 +6459,16 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 90 + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetProxiesIsMutable(); + targetProxies_.add(s); + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6360,7 +6495,7 @@ public Builder mergeFrom( * *
      * Identifier. Name of the TlsRoute resource. It matches pattern
-     * `projects/*/locations/global/tlsRoutes/tls_route_name>`.
+     * `projects/*/locations/*/tlsRoutes/tls_route_name>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -6384,7 +6519,7 @@ public java.lang.String getName() { * *
      * Identifier. Name of the TlsRoute resource. It matches pattern
-     * `projects/*/locations/global/tlsRoutes/tls_route_name>`.
+     * `projects/*/locations/*/tlsRoutes/tls_route_name>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -6408,7 +6543,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Identifier. Name of the TlsRoute resource. It matches pattern
-     * `projects/*/locations/global/tlsRoutes/tls_route_name>`.
+     * `projects/*/locations/*/tlsRoutes/tls_route_name>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -6431,7 +6566,7 @@ public Builder setName(java.lang.String value) { * *
      * Identifier. Name of the TlsRoute resource. It matches pattern
-     * `projects/*/locations/global/tlsRoutes/tls_route_name>`.
+     * `projects/*/locations/*/tlsRoutes/tls_route_name>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -6450,7 +6585,7 @@ public Builder clearName() { * *
      * Identifier. Name of the TlsRoute resource. It matches pattern
-     * `projects/*/locations/global/tlsRoutes/tls_route_name>`.
+     * `projects/*/locations/*/tlsRoutes/tls_route_name>`.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -7585,7 +7720,7 @@ private void ensureMeshesIsMutable() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7609,7 +7744,7 @@ public com.google.protobuf.ProtocolStringList getMeshesList() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7632,7 +7767,7 @@ public int getMeshesCount() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7656,7 +7791,7 @@ public java.lang.String getMeshes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7680,7 +7815,7 @@ public com.google.protobuf.ByteString getMeshesBytes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7712,7 +7847,7 @@ public Builder setMeshes(int index, java.lang.String value) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7743,7 +7878,7 @@ public Builder addMeshes(java.lang.String value) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7771,7 +7906,7 @@ public Builder addAllMeshes(java.lang.Iterable values) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7798,7 +7933,7 @@ public Builder clearMeshes() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7840,7 +7975,7 @@ private void ensureGatewaysIsMutable() { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7862,7 +7997,7 @@ public com.google.protobuf.ProtocolStringList getGatewaysList() { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7883,7 +8018,7 @@ public int getGatewaysCount() { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7905,7 +8040,7 @@ public java.lang.String getGateways(int index) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7927,7 +8062,7 @@ public com.google.protobuf.ByteString getGatewaysBytes(int index) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7957,7 +8092,7 @@ public Builder setGateways(int index, java.lang.String value) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7986,7 +8121,7 @@ public Builder addGateways(java.lang.String value) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -8012,7 +8147,7 @@ public Builder addAllGateways(java.lang.Iterable values) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -8037,7 +8172,7 @@ public Builder clearGateways() { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -8059,6 +8194,252 @@ public Builder addGatewaysBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringArrayList targetProxies_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTargetProxiesIsMutable() { + if (!targetProxies_.isModifiable()) { + targetProxies_ = new com.google.protobuf.LazyStringArrayList(targetProxies_); + } + bitField0_ |= 0x00000100; + } + + /** + * + * + *
+     * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
+     * attached to, as one of the routing rules to route the requests served by
+     * the TargetTcpProxy.
+     *
+     * Each TargetTcpProxy reference should match the pattern:
+     * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
+     * 
+ * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetProxies. + */ + public com.google.protobuf.ProtocolStringList getTargetProxiesList() { + targetProxies_.makeImmutable(); + return targetProxies_; + } + + /** + * + * + *
+     * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
+     * attached to, as one of the routing rules to route the requests served by
+     * the TargetTcpProxy.
+     *
+     * Each TargetTcpProxy reference should match the pattern:
+     * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
+     * 
+ * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetProxies. + */ + public int getTargetProxiesCount() { + return targetProxies_.size(); + } + + /** + * + * + *
+     * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
+     * attached to, as one of the routing rules to route the requests served by
+     * the TargetTcpProxy.
+     *
+     * Each TargetTcpProxy reference should match the pattern:
+     * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
+     * 
+ * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetProxies at the given index. + */ + public java.lang.String getTargetProxies(int index) { + return targetProxies_.get(index); + } + + /** + * + * + *
+     * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
+     * attached to, as one of the routing rules to route the requests served by
+     * the TargetTcpProxy.
+     *
+     * Each TargetTcpProxy reference should match the pattern:
+     * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
+     * 
+ * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetProxies at the given index. + */ + public com.google.protobuf.ByteString getTargetProxiesBytes(int index) { + return targetProxies_.getByteString(index); + } + + /** + * + * + *
+     * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
+     * attached to, as one of the routing rules to route the requests served by
+     * the TargetTcpProxy.
+     *
+     * Each TargetTcpProxy reference should match the pattern:
+     * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
+     * 
+ * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The targetProxies to set. + * @return This builder for chaining. + */ + public Builder setTargetProxies(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetProxiesIsMutable(); + targetProxies_.set(index, value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
+     * attached to, as one of the routing rules to route the requests served by
+     * the TargetTcpProxy.
+     *
+     * Each TargetTcpProxy reference should match the pattern:
+     * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
+     * 
+ * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The targetProxies to add. + * @return This builder for chaining. + */ + public Builder addTargetProxies(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetProxiesIsMutable(); + targetProxies_.add(value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
+     * attached to, as one of the routing rules to route the requests served by
+     * the TargetTcpProxy.
+     *
+     * Each TargetTcpProxy reference should match the pattern:
+     * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
+     * 
+ * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The targetProxies to add. + * @return This builder for chaining. + */ + public Builder addAllTargetProxies(java.lang.Iterable values) { + ensureTargetProxiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetProxies_); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
+     * attached to, as one of the routing rules to route the requests served by
+     * the TargetTcpProxy.
+     *
+     * Each TargetTcpProxy reference should match the pattern:
+     * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
+     * 
+ * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTargetProxies() { + targetProxies_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
+     * attached to, as one of the routing rules to route the requests served by
+     * the TargetTcpProxy.
+     *
+     * Each TargetTcpProxy reference should match the pattern:
+     * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
+     * 
+ * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the targetProxies to add. + * @return This builder for chaining. + */ + public Builder addTargetProxiesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTargetProxiesIsMutable(); + targetProxies_.add(value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -8076,7 +8457,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return labels_; } @@ -8166,7 +8547,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -8191,7 +8572,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return internalGetMutableLabels().getMutableMap(); } @@ -8212,7 +8593,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return this; } @@ -8227,7 +8608,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return this; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRouteOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRouteOrBuilder.java index e6e017e778e4..15d96782b1b7 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRouteOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRouteOrBuilder.java @@ -31,7 +31,7 @@ public interface TlsRouteOrBuilder * *
    * Identifier. Name of the TlsRoute resource. It matches pattern
-   * `projects/*/locations/global/tlsRoutes/tls_route_name>`.
+   * `projects/*/locations/*/tlsRoutes/tls_route_name>`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -45,7 +45,7 @@ public interface TlsRouteOrBuilder * *
    * Identifier. Name of the TlsRoute resource. It matches pattern
-   * `projects/*/locations/global/tlsRoutes/tls_route_name>`.
+   * `projects/*/locations/*/tlsRoutes/tls_route_name>`.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -272,7 +272,7 @@ public interface TlsRouteOrBuilder * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -293,7 +293,7 @@ public interface TlsRouteOrBuilder * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -314,7 +314,7 @@ public interface TlsRouteOrBuilder * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -336,7 +336,7 @@ public interface TlsRouteOrBuilder * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -358,7 +358,7 @@ public interface TlsRouteOrBuilder * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -377,7 +377,7 @@ public interface TlsRouteOrBuilder * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -396,7 +396,7 @@ public interface TlsRouteOrBuilder * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -416,7 +416,7 @@ public interface TlsRouteOrBuilder * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -428,6 +428,88 @@ public interface TlsRouteOrBuilder */ com.google.protobuf.ByteString getGatewaysBytes(int index); + /** + * + * + *
+   * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
+   * attached to, as one of the routing rules to route the requests served by
+   * the TargetTcpProxy.
+   *
+   * Each TargetTcpProxy reference should match the pattern:
+   * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
+   * 
+ * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetProxies. + */ + java.util.List getTargetProxiesList(); + + /** + * + * + *
+   * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
+   * attached to, as one of the routing rules to route the requests served by
+   * the TargetTcpProxy.
+   *
+   * Each TargetTcpProxy reference should match the pattern:
+   * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
+   * 
+ * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetProxies. + */ + int getTargetProxiesCount(); + + /** + * + * + *
+   * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
+   * attached to, as one of the routing rules to route the requests served by
+   * the TargetTcpProxy.
+   *
+   * Each TargetTcpProxy reference should match the pattern:
+   * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
+   * 
+ * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetProxies at the given index. + */ + java.lang.String getTargetProxies(int index); + + /** + * + * + *
+   * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
+   * attached to, as one of the routing rules to route the requests served by
+   * the TargetTcpProxy.
+   *
+   * Each TargetTcpProxy reference should match the pattern:
+   * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
+   * 
+ * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetProxies at the given index. + */ + com.google.protobuf.ByteString getTargetProxiesBytes(int index); + /** * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRouteProto.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRouteProto.java index beb1e0557acb..3b84dafb0b54 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRouteProto.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRouteProto.java @@ -101,7 +101,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/google/cloud/networkservices/v1/tls_route.proto\022\037google.cloud.networkservices." + "v1\032\037google/api/field_behavior.proto\032\031goo" + "gle/api/resource.proto\032\036google/protobuf/duration.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\324\010\n" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\233\t\n" + "\010TlsRoute\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\026\n" + "\tself_link\030\010 \001(\tB\003\340A\003\0224\n" @@ -114,9 +114,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006meshes\030\006 \003(\tB+\340A\001\372A%\n" + "#networkservices.googleapis.com/Mesh\022@\n" + "\010gateways\030\007 \003(\tB.\340A\001\372A(\n" - + "&networkservices.googleapis.com/Gateway\022J\n" - + "\006labels\030\013" - + " \003(\01325.google.cloud.networkservices.v1.TlsRoute.LabelsEntryB\003\340A\001\032\243\001\n" + + "&networkservices.googleapis.com/Gateway\022E\n" + + "\016target_proxies\030\r" + + " \003(\tB-\340A\001\372A\'\n" + + "%compute.googleapis.com/TargetTcpProxy\022J\n" + + "\006labels\030\013 \003(\01325" + + ".google.cloud.networkservices.v1.TlsRoute.LabelsEntryB\003\340A\001\032\243\001\n" + "\tRouteRule\022J\n" + "\007matches\030\001" + " \003(\01324.google.cloud.networkservices.v1.TlsRoute.RouteMatchB\003\340A\002\022J\n" @@ -126,8 +129,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010sni_host\030\001 \003(\tB\003\340A\001\022\021\n" + "\004alpn\030\002 \003(\tB\003\340A\001\032\232\001\n" + "\013RouteAction\022U\n" - + "\014destinations\030\001" - + " \003(\0132:.google.cloud.networkservices.v1.TlsRoute.RouteDestinationB\003\340A\002\0224\n" + + "\014destinations\030\001 \003(\0132:" + + ".google.cloud.networkservices.v1.TlsRoute.RouteDestinationB\003\340A\002\0224\n" + "\014idle_timeout\030\004 \001(\0132\031.google.protobuf.DurationB\003\340A\001\032l\n" + "\020RouteDestination\022C\n" + "\014service_name\030\001 \001(\tB-\340A\002\372A\'\n" @@ -136,11 +139,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:k\352Ah\n" - + "\'networkservices.googleapis.com" - + "/TlsRoute\022=projects/{project}/locations/{location}/tlsRoutes/{tls_route}\"\243\001\n" + + "\'networkservices.googleapis.com/TlsRoute" + + "\022=projects/{project}/locations/{location}/tlsRoutes/{tls_route}\"\243\001\n" + "\024ListTlsRoutesRequest\022?\n" - + "\006parent\030\001 \001(\tB/\340A\002\372A" - + ")\022\'networkservices.googleapis.com/TlsRoute\022\021\n" + + "\006parent\030\001 \001(" + + "\tB/\340A\002\372A)\022\'networkservices.googleapis.com/TlsRoute\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\022#\n" + "\026return_partial_success\030\004 \001(\010B\003\340A\001\"\204\001\n" @@ -155,20 +158,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB/\340A\002\372A)\022\'networkservices.googleapis.com/TlsRoute\022\031\n" + "\014tls_route_id\030\002 \001(\tB\003\340A\002\022A\n" - + "\ttls_route\030\003 \001(\0132).go" - + "ogle.cloud.networkservices.v1.TlsRouteB\003\340A\002\"\220\001\n" + + "\ttls_route\030\003" + + " \001(\0132).google.cloud.networkservices.v1.TlsRouteB\003\340A\002\"\220\001\n" + "\025UpdateTlsRouteRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022A\n" + "\ttls_route\030\002" + " \001(\0132).google.cloud.networkservices.v1.TlsRouteB\003\340A\002\"V\n" + "\025DeleteTlsRouteRequest\022=\n" + "\004name\030\001 \001(\tB/\340A\002\372A)\n" - + "\'networkservices.googleapis.com/TlsRouteB\356\001\n" + + "\'networkservices.googleapis.com/TlsRouteB\345\002\n" + "#com.google.cloud.networkservices.v1B\r" - + "TlsRouteProtoP\001ZMcloud.google.com/go/networkservices/apiv1/networkservicespb;net" - + "workservicespb\252\002\037Google.Cloud.NetworkSer" - + "vices.V1\312\002\037Google\\Cloud\\NetworkServices\\" - + "V1\352\002\"Google::Cloud::NetworkServices::V1b\006proto3" + + "TlsRouteProtoP\001ZMcloud.google.com/go/networkservi" + + "ces/apiv1/networkservicespb;networkservi" + + "cespb\252\002\037Google.Cloud.NetworkServices.V1\312" + + "\002\037Google\\Cloud\\NetworkServices\\V1\352\002\"Google::Cloud::NetworkServices::V1\352At\n" + + "%compute.googleapis.com/TargetTcpProxy\022Kprojec" + + "ts/{project}/locations/{location}/targetTcpProxies/{target_tcp_proxy}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -194,6 +199,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Rules", "Meshes", "Gateways", + "TargetProxies", "Labels", }); internal_static_google_cloud_networkservices_v1_TlsRoute_RouteRule_descriptor = @@ -294,6 +300,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/UpdateAgentGatewayRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/UpdateAgentGatewayRequest.java new file mode 100644 index 000000000000..d3d2a485d325 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/UpdateAgentGatewayRequest.java @@ -0,0 +1,1067 @@ +/* + * 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/cloud/networkservices/v1/agent_gateway.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +/** + * + * + *
+ * Request used by the UpdateAgentGateway method.
+ * 
+ * + * Protobuf type {@code google.cloud.networkservices.v1.UpdateAgentGatewayRequest} + */ +@com.google.protobuf.Generated +public final class UpdateAgentGatewayRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.UpdateAgentGatewayRequest) + UpdateAgentGatewayRequestOrBuilder { + 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= */ "", + "UpdateAgentGatewayRequest"); + } + + // Use UpdateAgentGatewayRequest.newBuilder() to construct. + private UpdateAgentGatewayRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateAgentGatewayRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_UpdateAgentGatewayRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_UpdateAgentGatewayRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest.class, + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * AgentGateway resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * AgentGateway resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * AgentGateway resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int AGENT_GATEWAY_FIELD_NUMBER = 2; + private com.google.cloud.networkservices.v1.AgentGateway agentGateway_; + + /** + * + * + *
+   * Required. Updated AgentGateway resource.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the agentGateway field is set. + */ + @java.lang.Override + public boolean hasAgentGateway() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. Updated AgentGateway resource.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The agentGateway. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway getAgentGateway() { + return agentGateway_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance() + : agentGateway_; + } + + /** + * + * + *
+   * Required. Updated AgentGateway resource.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGatewayOrBuilder getAgentGatewayOrBuilder() { + return agentGateway_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance() + : agentGateway_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getAgentGateway()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAgentGateway()); + } + 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.cloud.networkservices.v1.UpdateAgentGatewayRequest)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest other = + (com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasAgentGateway() != other.hasAgentGateway()) return false; + if (hasAgentGateway()) { + if (!getAgentGateway().equals(other.getAgentGateway())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasAgentGateway()) { + hash = (37 * hash) + AGENT_GATEWAY_FIELD_NUMBER; + hash = (53 * hash) + getAgentGateway().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest 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.cloud.networkservices.v1.UpdateAgentGatewayRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest 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.cloud.networkservices.v1.UpdateAgentGatewayRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest 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.cloud.networkservices.v1.UpdateAgentGatewayRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest 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.cloud.networkservices.v1.UpdateAgentGatewayRequest 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 used by the UpdateAgentGateway method.
+   * 
+ * + * Protobuf type {@code google.cloud.networkservices.v1.UpdateAgentGatewayRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.UpdateAgentGatewayRequest) + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_UpdateAgentGatewayRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_UpdateAgentGatewayRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest.class, + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest.Builder.class); + } + + // Construct using com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetAgentGatewayFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + agentGateway_ = null; + if (agentGatewayBuilder_ != null) { + agentGatewayBuilder_.dispose(); + agentGatewayBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_UpdateAgentGatewayRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest build() { + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest buildPartial() { + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest result = + new com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.agentGateway_ = + agentGatewayBuilder_ == null ? agentGateway_ : agentGatewayBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest) { + return mergeFrom((com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest other) { + if (other + == com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasAgentGateway()) { + mergeAgentGateway(other.getAgentGateway()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetAgentGatewayFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AgentGateway resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AgentGateway resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AgentGateway resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AgentGateway resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AgentGateway resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AgentGateway resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AgentGateway resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AgentGateway resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AgentGateway resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.networkservices.v1.AgentGateway agentGateway_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway, + com.google.cloud.networkservices.v1.AgentGateway.Builder, + com.google.cloud.networkservices.v1.AgentGatewayOrBuilder> + agentGatewayBuilder_; + + /** + * + * + *
+     * Required. Updated AgentGateway resource.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the agentGateway field is set. + */ + public boolean hasAgentGateway() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. Updated AgentGateway resource.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The agentGateway. + */ + public com.google.cloud.networkservices.v1.AgentGateway getAgentGateway() { + if (agentGatewayBuilder_ == null) { + return agentGateway_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance() + : agentGateway_; + } else { + return agentGatewayBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. Updated AgentGateway resource.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAgentGateway(com.google.cloud.networkservices.v1.AgentGateway value) { + if (agentGatewayBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentGateway_ = value; + } else { + agentGatewayBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Updated AgentGateway resource.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAgentGateway( + com.google.cloud.networkservices.v1.AgentGateway.Builder builderForValue) { + if (agentGatewayBuilder_ == null) { + agentGateway_ = builderForValue.build(); + } else { + agentGatewayBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Updated AgentGateway resource.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAgentGateway(com.google.cloud.networkservices.v1.AgentGateway value) { + if (agentGatewayBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && agentGateway_ != null + && agentGateway_ + != com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance()) { + getAgentGatewayBuilder().mergeFrom(value); + } else { + agentGateway_ = value; + } + } else { + agentGatewayBuilder_.mergeFrom(value); + } + if (agentGateway_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Updated AgentGateway resource.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAgentGateway() { + bitField0_ = (bitField0_ & ~0x00000002); + agentGateway_ = null; + if (agentGatewayBuilder_ != null) { + agentGatewayBuilder_.dispose(); + agentGatewayBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Updated AgentGateway resource.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.Builder getAgentGatewayBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetAgentGatewayFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Updated AgentGateway resource.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkservices.v1.AgentGatewayOrBuilder getAgentGatewayOrBuilder() { + if (agentGatewayBuilder_ != null) { + return agentGatewayBuilder_.getMessageOrBuilder(); + } else { + return agentGateway_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance() + : agentGateway_; + } + } + + /** + * + * + *
+     * Required. Updated AgentGateway resource.
+     * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway, + com.google.cloud.networkservices.v1.AgentGateway.Builder, + com.google.cloud.networkservices.v1.AgentGatewayOrBuilder> + internalGetAgentGatewayFieldBuilder() { + if (agentGatewayBuilder_ == null) { + agentGatewayBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway, + com.google.cloud.networkservices.v1.AgentGateway.Builder, + com.google.cloud.networkservices.v1.AgentGatewayOrBuilder>( + getAgentGateway(), getParentForChildren(), isClean()); + agentGateway_ = null; + } + return agentGatewayBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.UpdateAgentGatewayRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.UpdateAgentGatewayRequest) + private static final com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest(); + } + + public static com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAgentGatewayRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/UpdateAgentGatewayRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/UpdateAgentGatewayRequestOrBuilder.java new file mode 100644 index 000000000000..66efffa06353 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/UpdateAgentGatewayRequestOrBuilder.java @@ -0,0 +1,123 @@ +/* + * 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/cloud/networkservices/v1/agent_gateway.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +@com.google.protobuf.Generated +public interface UpdateAgentGatewayRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.UpdateAgentGatewayRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * AgentGateway resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * AgentGateway resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * AgentGateway resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. Updated AgentGateway resource.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the agentGateway field is set. + */ + boolean hasAgentGateway(); + + /** + * + * + *
+   * Required. Updated AgentGateway resource.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The agentGateway. + */ + com.google.cloud.networkservices.v1.AgentGateway getAgentGateway(); + + /** + * + * + *
+   * Required. Updated AgentGateway resource.
+   * 
+ * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networkservices.v1.AgentGatewayOrBuilder getAgentGatewayOrBuilder(); +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPlugin.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPlugin.java index 41cf43151333..9860c0ac8e02 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPlugin.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPlugin.java @@ -133,10 +133,23 @@ public interface VersionDetailsOrBuilder *
      * URI of the plugin configuration stored in the Artifact Registry.
      * The configuration is provided to the plugin at runtime through
-     * the `ON_CONFIGURE` callback. The container image must
-     * contain only a single file with the name
-     * `plugin.config`. When a new `WasmPluginVersion`
-     * resource is created, the digest of the container image is saved in the
+     * the `ON_CONFIGURE` callback.
+     *
+     * The URI can refer to one of the following repository formats:
+     *
+     * * Container images: the `plugin_config_uri` must point to a container
+     * that contains a single file with the name `plugin.config`.
+     * When a new `WasmPluginVersion` resource is created, the digest of the
+     * image is saved in the `plugin_config_digest` field.
+     * When pulling a container image from Artifact Registry, the digest
+     * value is used instead of an image tag.
+     *
+     * * Generic artifacts: the `plugin_config_uri` must be in this format:
+     * `projects/{project}/locations/{location}/repositories/{repository}/
+     * genericArtifacts/{package}:{version}`.
+     * The specified package and version must contain a file with the name
+     * `plugin.config`. When a new `WasmPluginVersion` resource is
+     * created, the checksum of the contents of the file is saved in the
      * `plugin_config_digest` field.
      * 
* @@ -152,10 +165,23 @@ public interface VersionDetailsOrBuilder *
      * URI of the plugin configuration stored in the Artifact Registry.
      * The configuration is provided to the plugin at runtime through
-     * the `ON_CONFIGURE` callback. The container image must
-     * contain only a single file with the name
-     * `plugin.config`. When a new `WasmPluginVersion`
-     * resource is created, the digest of the container image is saved in the
+     * the `ON_CONFIGURE` callback.
+     *
+     * The URI can refer to one of the following repository formats:
+     *
+     * * Container images: the `plugin_config_uri` must point to a container
+     * that contains a single file with the name `plugin.config`.
+     * When a new `WasmPluginVersion` resource is created, the digest of the
+     * image is saved in the `plugin_config_digest` field.
+     * When pulling a container image from Artifact Registry, the digest
+     * value is used instead of an image tag.
+     *
+     * * Generic artifacts: the `plugin_config_uri` must be in this format:
+     * `projects/{project}/locations/{location}/repositories/{repository}/
+     * genericArtifacts/{package}:{version}`.
+     * The specified package and version must contain a file with the name
+     * `plugin.config`. When a new `WasmPluginVersion` resource is
+     * created, the checksum of the contents of the file is saved in the
      * `plugin_config_digest` field.
      * 
* @@ -171,10 +197,23 @@ public interface VersionDetailsOrBuilder *
      * URI of the plugin configuration stored in the Artifact Registry.
      * The configuration is provided to the plugin at runtime through
-     * the `ON_CONFIGURE` callback. The container image must
-     * contain only a single file with the name
-     * `plugin.config`. When a new `WasmPluginVersion`
-     * resource is created, the digest of the container image is saved in the
+     * the `ON_CONFIGURE` callback.
+     *
+     * The URI can refer to one of the following repository formats:
+     *
+     * * Container images: the `plugin_config_uri` must point to a container
+     * that contains a single file with the name `plugin.config`.
+     * When a new `WasmPluginVersion` resource is created, the digest of the
+     * image is saved in the `plugin_config_digest` field.
+     * When pulling a container image from Artifact Registry, the digest
+     * value is used instead of an image tag.
+     *
+     * * Generic artifacts: the `plugin_config_uri` must be in this format:
+     * `projects/{project}/locations/{location}/repositories/{repository}/
+     * genericArtifacts/{package}:{version}`.
+     * The specified package and version must contain a file with the name
+     * `plugin.config`. When a new `WasmPluginVersion` resource is
+     * created, the checksum of the contents of the file is saved in the
      * `plugin_config_digest` field.
      * 
* @@ -368,11 +407,25 @@ java.lang.String getLabelsOrDefault( * * *
-     * Optional. URI of the container image containing the Wasm module, stored
-     * in the Artifact Registry. The container image must contain only a single
-     * file with the name `plugin.wasm`. When a new `WasmPluginVersion` resource
-     * is created, the URI gets resolved to an image digest and saved in the
-     * `image_digest` field.
+     * Optional. URI of the image containing the Wasm module, stored in
+     * Artifact Registry.
+     *
+     * The URI can refer to one of the following repository formats:
+     *
+     * * Container images: the `image_uri` must point to a container that
+     * contains a single file with the name `plugin.wasm`.
+     * When a new `WasmPluginVersion` resource is created, the digest of the
+     * image is saved in the `image_digest` field.
+     * When pulling a container image from Artifact Registry, the digest value
+     * is used instead of an image tag.
+     *
+     * * Generic artifacts: the `image_uri` must be in this format:
+     * `projects/{project}/locations/{location}/repositories/{repository}/
+     * genericArtifacts/{package}:{version}`.
+     * The specified package and version must contain a file with the name
+     * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
+     * checksum of the contents of the file is saved in the `image_digest`
+     * field.
      * 
* * string image_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -385,11 +438,25 @@ java.lang.String getLabelsOrDefault( * * *
-     * Optional. URI of the container image containing the Wasm module, stored
-     * in the Artifact Registry. The container image must contain only a single
-     * file with the name `plugin.wasm`. When a new `WasmPluginVersion` resource
-     * is created, the URI gets resolved to an image digest and saved in the
-     * `image_digest` field.
+     * Optional. URI of the image containing the Wasm module, stored in
+     * Artifact Registry.
+     *
+     * The URI can refer to one of the following repository formats:
+     *
+     * * Container images: the `image_uri` must point to a container that
+     * contains a single file with the name `plugin.wasm`.
+     * When a new `WasmPluginVersion` resource is created, the digest of the
+     * image is saved in the `image_digest` field.
+     * When pulling a container image from Artifact Registry, the digest value
+     * is used instead of an image tag.
+     *
+     * * Generic artifacts: the `image_uri` must be in this format:
+     * `projects/{project}/locations/{location}/repositories/{repository}/
+     * genericArtifacts/{package}:{version}`.
+     * The specified package and version must contain a file with the name
+     * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
+     * checksum of the contents of the file is saved in the `image_digest`
+     * field.
      * 
* * string image_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -402,11 +469,12 @@ java.lang.String getLabelsOrDefault( * * *
-     * Output only. The resolved digest for the image specified in `image`.
-     * The digest is resolved during the creation of a
-     * `WasmPluginVersion` resource.
-     * This field holds the digest value regardless of whether a tag or
-     * digest was originally specified in the `image` field.
+     * Output only. This field holds the digest (usually checksum) value for the
+     * plugin image. The value is calculated based on the `image_uri` field. If
+     * the `image_uri` field refers to a container image, the digest value is
+     * obtained from the container image. If the `image_uri` field refers to
+     * a generic artifact, the digest value is calculated based on the
+     * contents of the file.
      * 
* * string image_digest = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -419,11 +487,12 @@ java.lang.String getLabelsOrDefault( * * *
-     * Output only. The resolved digest for the image specified in `image`.
-     * The digest is resolved during the creation of a
-     * `WasmPluginVersion` resource.
-     * This field holds the digest value regardless of whether a tag or
-     * digest was originally specified in the `image` field.
+     * Output only. This field holds the digest (usually checksum) value for the
+     * plugin image. The value is calculated based on the `image_uri` field. If
+     * the `image_uri` field refers to a container image, the digest value is
+     * obtained from the container image. If the `image_uri` field refers to
+     * a generic artifact, the digest value is calculated based on the
+     * contents of the file.
      * 
* * string image_digest = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -438,7 +507,7 @@ java.lang.String getLabelsOrDefault( *
      * Output only. This field holds the digest (usually checksum) value for the
      * plugin configuration. The value is calculated based on the contents of
-     * the `plugin_config_data` field or the container image defined by the
+     * `plugin_config_data` field or the image defined by the
      * `plugin_config_uri` field.
      * 
* @@ -454,7 +523,7 @@ java.lang.String getLabelsOrDefault( *
      * Output only. This field holds the digest (usually checksum) value for the
      * plugin configuration. The value is calculated based on the contents of
-     * the `plugin_config_data` field or the container image defined by the
+     * `plugin_config_data` field or the image defined by the
      * `plugin_config_uri` field.
      * 
* @@ -637,10 +706,23 @@ public com.google.protobuf.ByteString getPluginConfigData() { *
      * URI of the plugin configuration stored in the Artifact Registry.
      * The configuration is provided to the plugin at runtime through
-     * the `ON_CONFIGURE` callback. The container image must
-     * contain only a single file with the name
-     * `plugin.config`. When a new `WasmPluginVersion`
-     * resource is created, the digest of the container image is saved in the
+     * the `ON_CONFIGURE` callback.
+     *
+     * The URI can refer to one of the following repository formats:
+     *
+     * * Container images: the `plugin_config_uri` must point to a container
+     * that contains a single file with the name `plugin.config`.
+     * When a new `WasmPluginVersion` resource is created, the digest of the
+     * image is saved in the `plugin_config_digest` field.
+     * When pulling a container image from Artifact Registry, the digest
+     * value is used instead of an image tag.
+     *
+     * * Generic artifacts: the `plugin_config_uri` must be in this format:
+     * `projects/{project}/locations/{location}/repositories/{repository}/
+     * genericArtifacts/{package}:{version}`.
+     * The specified package and version must contain a file with the name
+     * `plugin.config`. When a new `WasmPluginVersion` resource is
+     * created, the checksum of the contents of the file is saved in the
      * `plugin_config_digest` field.
      * 
* @@ -658,10 +740,23 @@ public boolean hasPluginConfigUri() { *
      * URI of the plugin configuration stored in the Artifact Registry.
      * The configuration is provided to the plugin at runtime through
-     * the `ON_CONFIGURE` callback. The container image must
-     * contain only a single file with the name
-     * `plugin.config`. When a new `WasmPluginVersion`
-     * resource is created, the digest of the container image is saved in the
+     * the `ON_CONFIGURE` callback.
+     *
+     * The URI can refer to one of the following repository formats:
+     *
+     * * Container images: the `plugin_config_uri` must point to a container
+     * that contains a single file with the name `plugin.config`.
+     * When a new `WasmPluginVersion` resource is created, the digest of the
+     * image is saved in the `plugin_config_digest` field.
+     * When pulling a container image from Artifact Registry, the digest
+     * value is used instead of an image tag.
+     *
+     * * Generic artifacts: the `plugin_config_uri` must be in this format:
+     * `projects/{project}/locations/{location}/repositories/{repository}/
+     * genericArtifacts/{package}:{version}`.
+     * The specified package and version must contain a file with the name
+     * `plugin.config`. When a new `WasmPluginVersion` resource is
+     * created, the checksum of the contents of the file is saved in the
      * `plugin_config_digest` field.
      * 
* @@ -692,10 +787,23 @@ public java.lang.String getPluginConfigUri() { *
      * URI of the plugin configuration stored in the Artifact Registry.
      * The configuration is provided to the plugin at runtime through
-     * the `ON_CONFIGURE` callback. The container image must
-     * contain only a single file with the name
-     * `plugin.config`. When a new `WasmPluginVersion`
-     * resource is created, the digest of the container image is saved in the
+     * the `ON_CONFIGURE` callback.
+     *
+     * The URI can refer to one of the following repository formats:
+     *
+     * * Container images: the `plugin_config_uri` must point to a container
+     * that contains a single file with the name `plugin.config`.
+     * When a new `WasmPluginVersion` resource is created, the digest of the
+     * image is saved in the `plugin_config_digest` field.
+     * When pulling a container image from Artifact Registry, the digest
+     * value is used instead of an image tag.
+     *
+     * * Generic artifacts: the `plugin_config_uri` must be in this format:
+     * `projects/{project}/locations/{location}/repositories/{repository}/
+     * genericArtifacts/{package}:{version}`.
+     * The specified package and version must contain a file with the name
+     * `plugin.config`. When a new `WasmPluginVersion` resource is
+     * created, the checksum of the contents of the file is saved in the
      * `plugin_config_digest` field.
      * 
* @@ -1003,11 +1111,25 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * * *
-     * Optional. URI of the container image containing the Wasm module, stored
-     * in the Artifact Registry. The container image must contain only a single
-     * file with the name `plugin.wasm`. When a new `WasmPluginVersion` resource
-     * is created, the URI gets resolved to an image digest and saved in the
-     * `image_digest` field.
+     * Optional. URI of the image containing the Wasm module, stored in
+     * Artifact Registry.
+     *
+     * The URI can refer to one of the following repository formats:
+     *
+     * * Container images: the `image_uri` must point to a container that
+     * contains a single file with the name `plugin.wasm`.
+     * When a new `WasmPluginVersion` resource is created, the digest of the
+     * image is saved in the `image_digest` field.
+     * When pulling a container image from Artifact Registry, the digest value
+     * is used instead of an image tag.
+     *
+     * * Generic artifacts: the `image_uri` must be in this format:
+     * `projects/{project}/locations/{location}/repositories/{repository}/
+     * genericArtifacts/{package}:{version}`.
+     * The specified package and version must contain a file with the name
+     * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
+     * checksum of the contents of the file is saved in the `image_digest`
+     * field.
      * 
* * string image_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1031,11 +1153,25 @@ public java.lang.String getImageUri() { * * *
-     * Optional. URI of the container image containing the Wasm module, stored
-     * in the Artifact Registry. The container image must contain only a single
-     * file with the name `plugin.wasm`. When a new `WasmPluginVersion` resource
-     * is created, the URI gets resolved to an image digest and saved in the
-     * `image_digest` field.
+     * Optional. URI of the image containing the Wasm module, stored in
+     * Artifact Registry.
+     *
+     * The URI can refer to one of the following repository formats:
+     *
+     * * Container images: the `image_uri` must point to a container that
+     * contains a single file with the name `plugin.wasm`.
+     * When a new `WasmPluginVersion` resource is created, the digest of the
+     * image is saved in the `image_digest` field.
+     * When pulling a container image from Artifact Registry, the digest value
+     * is used instead of an image tag.
+     *
+     * * Generic artifacts: the `image_uri` must be in this format:
+     * `projects/{project}/locations/{location}/repositories/{repository}/
+     * genericArtifacts/{package}:{version}`.
+     * The specified package and version must contain a file with the name
+     * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
+     * checksum of the contents of the file is saved in the `image_digest`
+     * field.
      * 
* * string image_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1064,11 +1200,12 @@ public com.google.protobuf.ByteString getImageUriBytes() { * * *
-     * Output only. The resolved digest for the image specified in `image`.
-     * The digest is resolved during the creation of a
-     * `WasmPluginVersion` resource.
-     * This field holds the digest value regardless of whether a tag or
-     * digest was originally specified in the `image` field.
+     * Output only. This field holds the digest (usually checksum) value for the
+     * plugin image. The value is calculated based on the `image_uri` field. If
+     * the `image_uri` field refers to a container image, the digest value is
+     * obtained from the container image. If the `image_uri` field refers to
+     * a generic artifact, the digest value is calculated based on the
+     * contents of the file.
      * 
* * string image_digest = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1092,11 +1229,12 @@ public java.lang.String getImageDigest() { * * *
-     * Output only. The resolved digest for the image specified in `image`.
-     * The digest is resolved during the creation of a
-     * `WasmPluginVersion` resource.
-     * This field holds the digest value regardless of whether a tag or
-     * digest was originally specified in the `image` field.
+     * Output only. This field holds the digest (usually checksum) value for the
+     * plugin image. The value is calculated based on the `image_uri` field. If
+     * the `image_uri` field refers to a container image, the digest value is
+     * obtained from the container image. If the `image_uri` field refers to
+     * a generic artifact, the digest value is calculated based on the
+     * contents of the file.
      * 
* * string image_digest = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1127,7 +1265,7 @@ public com.google.protobuf.ByteString getImageDigestBytes() { *
      * Output only. This field holds the digest (usually checksum) value for the
      * plugin configuration. The value is calculated based on the contents of
-     * the `plugin_config_data` field or the container image defined by the
+     * `plugin_config_data` field or the image defined by the
      * `plugin_config_uri` field.
      * 
* @@ -1154,7 +1292,7 @@ public java.lang.String getPluginConfigDigest() { *
      * Output only. This field holds the digest (usually checksum) value for the
      * plugin configuration. The value is calculated based on the contents of
-     * the `plugin_config_data` field or the container image defined by the
+     * `plugin_config_data` field or the image defined by the
      * `plugin_config_uri` field.
      * 
* @@ -1889,10 +2027,23 @@ public Builder clearPluginConfigData() { *
        * URI of the plugin configuration stored in the Artifact Registry.
        * The configuration is provided to the plugin at runtime through
-       * the `ON_CONFIGURE` callback. The container image must
-       * contain only a single file with the name
-       * `plugin.config`. When a new `WasmPluginVersion`
-       * resource is created, the digest of the container image is saved in the
+       * the `ON_CONFIGURE` callback.
+       *
+       * The URI can refer to one of the following repository formats:
+       *
+       * * Container images: the `plugin_config_uri` must point to a container
+       * that contains a single file with the name `plugin.config`.
+       * When a new `WasmPluginVersion` resource is created, the digest of the
+       * image is saved in the `plugin_config_digest` field.
+       * When pulling a container image from Artifact Registry, the digest
+       * value is used instead of an image tag.
+       *
+       * * Generic artifacts: the `plugin_config_uri` must be in this format:
+       * `projects/{project}/locations/{location}/repositories/{repository}/
+       * genericArtifacts/{package}:{version}`.
+       * The specified package and version must contain a file with the name
+       * `plugin.config`. When a new `WasmPluginVersion` resource is
+       * created, the checksum of the contents of the file is saved in the
        * `plugin_config_digest` field.
        * 
* @@ -1911,10 +2062,23 @@ public boolean hasPluginConfigUri() { *
        * URI of the plugin configuration stored in the Artifact Registry.
        * The configuration is provided to the plugin at runtime through
-       * the `ON_CONFIGURE` callback. The container image must
-       * contain only a single file with the name
-       * `plugin.config`. When a new `WasmPluginVersion`
-       * resource is created, the digest of the container image is saved in the
+       * the `ON_CONFIGURE` callback.
+       *
+       * The URI can refer to one of the following repository formats:
+       *
+       * * Container images: the `plugin_config_uri` must point to a container
+       * that contains a single file with the name `plugin.config`.
+       * When a new `WasmPluginVersion` resource is created, the digest of the
+       * image is saved in the `plugin_config_digest` field.
+       * When pulling a container image from Artifact Registry, the digest
+       * value is used instead of an image tag.
+       *
+       * * Generic artifacts: the `plugin_config_uri` must be in this format:
+       * `projects/{project}/locations/{location}/repositories/{repository}/
+       * genericArtifacts/{package}:{version}`.
+       * The specified package and version must contain a file with the name
+       * `plugin.config`. When a new `WasmPluginVersion` resource is
+       * created, the checksum of the contents of the file is saved in the
        * `plugin_config_digest` field.
        * 
* @@ -1946,10 +2110,23 @@ public java.lang.String getPluginConfigUri() { *
        * URI of the plugin configuration stored in the Artifact Registry.
        * The configuration is provided to the plugin at runtime through
-       * the `ON_CONFIGURE` callback. The container image must
-       * contain only a single file with the name
-       * `plugin.config`. When a new `WasmPluginVersion`
-       * resource is created, the digest of the container image is saved in the
+       * the `ON_CONFIGURE` callback.
+       *
+       * The URI can refer to one of the following repository formats:
+       *
+       * * Container images: the `plugin_config_uri` must point to a container
+       * that contains a single file with the name `plugin.config`.
+       * When a new `WasmPluginVersion` resource is created, the digest of the
+       * image is saved in the `plugin_config_digest` field.
+       * When pulling a container image from Artifact Registry, the digest
+       * value is used instead of an image tag.
+       *
+       * * Generic artifacts: the `plugin_config_uri` must be in this format:
+       * `projects/{project}/locations/{location}/repositories/{repository}/
+       * genericArtifacts/{package}:{version}`.
+       * The specified package and version must contain a file with the name
+       * `plugin.config`. When a new `WasmPluginVersion` resource is
+       * created, the checksum of the contents of the file is saved in the
        * `plugin_config_digest` field.
        * 
* @@ -1981,10 +2158,23 @@ public com.google.protobuf.ByteString getPluginConfigUriBytes() { *
        * URI of the plugin configuration stored in the Artifact Registry.
        * The configuration is provided to the plugin at runtime through
-       * the `ON_CONFIGURE` callback. The container image must
-       * contain only a single file with the name
-       * `plugin.config`. When a new `WasmPluginVersion`
-       * resource is created, the digest of the container image is saved in the
+       * the `ON_CONFIGURE` callback.
+       *
+       * The URI can refer to one of the following repository formats:
+       *
+       * * Container images: the `plugin_config_uri` must point to a container
+       * that contains a single file with the name `plugin.config`.
+       * When a new `WasmPluginVersion` resource is created, the digest of the
+       * image is saved in the `plugin_config_digest` field.
+       * When pulling a container image from Artifact Registry, the digest
+       * value is used instead of an image tag.
+       *
+       * * Generic artifacts: the `plugin_config_uri` must be in this format:
+       * `projects/{project}/locations/{location}/repositories/{repository}/
+       * genericArtifacts/{package}:{version}`.
+       * The specified package and version must contain a file with the name
+       * `plugin.config`. When a new `WasmPluginVersion` resource is
+       * created, the checksum of the contents of the file is saved in the
        * `plugin_config_digest` field.
        * 
* @@ -2009,10 +2199,23 @@ public Builder setPluginConfigUri(java.lang.String value) { *
        * URI of the plugin configuration stored in the Artifact Registry.
        * The configuration is provided to the plugin at runtime through
-       * the `ON_CONFIGURE` callback. The container image must
-       * contain only a single file with the name
-       * `plugin.config`. When a new `WasmPluginVersion`
-       * resource is created, the digest of the container image is saved in the
+       * the `ON_CONFIGURE` callback.
+       *
+       * The URI can refer to one of the following repository formats:
+       *
+       * * Container images: the `plugin_config_uri` must point to a container
+       * that contains a single file with the name `plugin.config`.
+       * When a new `WasmPluginVersion` resource is created, the digest of the
+       * image is saved in the `plugin_config_digest` field.
+       * When pulling a container image from Artifact Registry, the digest
+       * value is used instead of an image tag.
+       *
+       * * Generic artifacts: the `plugin_config_uri` must be in this format:
+       * `projects/{project}/locations/{location}/repositories/{repository}/
+       * genericArtifacts/{package}:{version}`.
+       * The specified package and version must contain a file with the name
+       * `plugin.config`. When a new `WasmPluginVersion` resource is
+       * created, the checksum of the contents of the file is saved in the
        * `plugin_config_digest` field.
        * 
* @@ -2035,10 +2238,23 @@ public Builder clearPluginConfigUri() { *
        * URI of the plugin configuration stored in the Artifact Registry.
        * The configuration is provided to the plugin at runtime through
-       * the `ON_CONFIGURE` callback. The container image must
-       * contain only a single file with the name
-       * `plugin.config`. When a new `WasmPluginVersion`
-       * resource is created, the digest of the container image is saved in the
+       * the `ON_CONFIGURE` callback.
+       *
+       * The URI can refer to one of the following repository formats:
+       *
+       * * Container images: the `plugin_config_uri` must point to a container
+       * that contains a single file with the name `plugin.config`.
+       * When a new `WasmPluginVersion` resource is created, the digest of the
+       * image is saved in the `plugin_config_digest` field.
+       * When pulling a container image from Artifact Registry, the digest
+       * value is used instead of an image tag.
+       *
+       * * Generic artifacts: the `plugin_config_uri` must be in this format:
+       * `projects/{project}/locations/{location}/repositories/{repository}/
+       * genericArtifacts/{package}:{version}`.
+       * The specified package and version must contain a file with the name
+       * `plugin.config`. When a new `WasmPluginVersion` resource is
+       * created, the checksum of the contents of the file is saved in the
        * `plugin_config_digest` field.
        * 
* @@ -2785,11 +3001,25 @@ public Builder putAllLabels(java.util.Map va * * *
-       * Optional. URI of the container image containing the Wasm module, stored
-       * in the Artifact Registry. The container image must contain only a single
-       * file with the name `plugin.wasm`. When a new `WasmPluginVersion` resource
-       * is created, the URI gets resolved to an image digest and saved in the
-       * `image_digest` field.
+       * Optional. URI of the image containing the Wasm module, stored in
+       * Artifact Registry.
+       *
+       * The URI can refer to one of the following repository formats:
+       *
+       * * Container images: the `image_uri` must point to a container that
+       * contains a single file with the name `plugin.wasm`.
+       * When a new `WasmPluginVersion` resource is created, the digest of the
+       * image is saved in the `image_digest` field.
+       * When pulling a container image from Artifact Registry, the digest value
+       * is used instead of an image tag.
+       *
+       * * Generic artifacts: the `image_uri` must be in this format:
+       * `projects/{project}/locations/{location}/repositories/{repository}/
+       * genericArtifacts/{package}:{version}`.
+       * The specified package and version must contain a file with the name
+       * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
+       * checksum of the contents of the file is saved in the `image_digest`
+       * field.
        * 
* * string image_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2812,11 +3042,25 @@ public java.lang.String getImageUri() { * * *
-       * Optional. URI of the container image containing the Wasm module, stored
-       * in the Artifact Registry. The container image must contain only a single
-       * file with the name `plugin.wasm`. When a new `WasmPluginVersion` resource
-       * is created, the URI gets resolved to an image digest and saved in the
-       * `image_digest` field.
+       * Optional. URI of the image containing the Wasm module, stored in
+       * Artifact Registry.
+       *
+       * The URI can refer to one of the following repository formats:
+       *
+       * * Container images: the `image_uri` must point to a container that
+       * contains a single file with the name `plugin.wasm`.
+       * When a new `WasmPluginVersion` resource is created, the digest of the
+       * image is saved in the `image_digest` field.
+       * When pulling a container image from Artifact Registry, the digest value
+       * is used instead of an image tag.
+       *
+       * * Generic artifacts: the `image_uri` must be in this format:
+       * `projects/{project}/locations/{location}/repositories/{repository}/
+       * genericArtifacts/{package}:{version}`.
+       * The specified package and version must contain a file with the name
+       * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
+       * checksum of the contents of the file is saved in the `image_digest`
+       * field.
        * 
* * string image_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2839,11 +3083,25 @@ public com.google.protobuf.ByteString getImageUriBytes() { * * *
-       * Optional. URI of the container image containing the Wasm module, stored
-       * in the Artifact Registry. The container image must contain only a single
-       * file with the name `plugin.wasm`. When a new `WasmPluginVersion` resource
-       * is created, the URI gets resolved to an image digest and saved in the
-       * `image_digest` field.
+       * Optional. URI of the image containing the Wasm module, stored in
+       * Artifact Registry.
+       *
+       * The URI can refer to one of the following repository formats:
+       *
+       * * Container images: the `image_uri` must point to a container that
+       * contains a single file with the name `plugin.wasm`.
+       * When a new `WasmPluginVersion` resource is created, the digest of the
+       * image is saved in the `image_digest` field.
+       * When pulling a container image from Artifact Registry, the digest value
+       * is used instead of an image tag.
+       *
+       * * Generic artifacts: the `image_uri` must be in this format:
+       * `projects/{project}/locations/{location}/repositories/{repository}/
+       * genericArtifacts/{package}:{version}`.
+       * The specified package and version must contain a file with the name
+       * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
+       * checksum of the contents of the file is saved in the `image_digest`
+       * field.
        * 
* * string image_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2865,11 +3123,25 @@ public Builder setImageUri(java.lang.String value) { * * *
-       * Optional. URI of the container image containing the Wasm module, stored
-       * in the Artifact Registry. The container image must contain only a single
-       * file with the name `plugin.wasm`. When a new `WasmPluginVersion` resource
-       * is created, the URI gets resolved to an image digest and saved in the
-       * `image_digest` field.
+       * Optional. URI of the image containing the Wasm module, stored in
+       * Artifact Registry.
+       *
+       * The URI can refer to one of the following repository formats:
+       *
+       * * Container images: the `image_uri` must point to a container that
+       * contains a single file with the name `plugin.wasm`.
+       * When a new `WasmPluginVersion` resource is created, the digest of the
+       * image is saved in the `image_digest` field.
+       * When pulling a container image from Artifact Registry, the digest value
+       * is used instead of an image tag.
+       *
+       * * Generic artifacts: the `image_uri` must be in this format:
+       * `projects/{project}/locations/{location}/repositories/{repository}/
+       * genericArtifacts/{package}:{version}`.
+       * The specified package and version must contain a file with the name
+       * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
+       * checksum of the contents of the file is saved in the `image_digest`
+       * field.
        * 
* * string image_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2887,11 +3159,25 @@ public Builder clearImageUri() { * * *
-       * Optional. URI of the container image containing the Wasm module, stored
-       * in the Artifact Registry. The container image must contain only a single
-       * file with the name `plugin.wasm`. When a new `WasmPluginVersion` resource
-       * is created, the URI gets resolved to an image digest and saved in the
-       * `image_digest` field.
+       * Optional. URI of the image containing the Wasm module, stored in
+       * Artifact Registry.
+       *
+       * The URI can refer to one of the following repository formats:
+       *
+       * * Container images: the `image_uri` must point to a container that
+       * contains a single file with the name `plugin.wasm`.
+       * When a new `WasmPluginVersion` resource is created, the digest of the
+       * image is saved in the `image_digest` field.
+       * When pulling a container image from Artifact Registry, the digest value
+       * is used instead of an image tag.
+       *
+       * * Generic artifacts: the `image_uri` must be in this format:
+       * `projects/{project}/locations/{location}/repositories/{repository}/
+       * genericArtifacts/{package}:{version}`.
+       * The specified package and version must contain a file with the name
+       * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
+       * checksum of the contents of the file is saved in the `image_digest`
+       * field.
        * 
* * string image_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2916,11 +3202,12 @@ public Builder setImageUriBytes(com.google.protobuf.ByteString value) { * * *
-       * Output only. The resolved digest for the image specified in `image`.
-       * The digest is resolved during the creation of a
-       * `WasmPluginVersion` resource.
-       * This field holds the digest value regardless of whether a tag or
-       * digest was originally specified in the `image` field.
+       * Output only. This field holds the digest (usually checksum) value for the
+       * plugin image. The value is calculated based on the `image_uri` field. If
+       * the `image_uri` field refers to a container image, the digest value is
+       * obtained from the container image. If the `image_uri` field refers to
+       * a generic artifact, the digest value is calculated based on the
+       * contents of the file.
        * 
* * string image_digest = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2943,11 +3230,12 @@ public java.lang.String getImageDigest() { * * *
-       * Output only. The resolved digest for the image specified in `image`.
-       * The digest is resolved during the creation of a
-       * `WasmPluginVersion` resource.
-       * This field holds the digest value regardless of whether a tag or
-       * digest was originally specified in the `image` field.
+       * Output only. This field holds the digest (usually checksum) value for the
+       * plugin image. The value is calculated based on the `image_uri` field. If
+       * the `image_uri` field refers to a container image, the digest value is
+       * obtained from the container image. If the `image_uri` field refers to
+       * a generic artifact, the digest value is calculated based on the
+       * contents of the file.
        * 
* * string image_digest = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2970,11 +3258,12 @@ public com.google.protobuf.ByteString getImageDigestBytes() { * * *
-       * Output only. The resolved digest for the image specified in `image`.
-       * The digest is resolved during the creation of a
-       * `WasmPluginVersion` resource.
-       * This field holds the digest value regardless of whether a tag or
-       * digest was originally specified in the `image` field.
+       * Output only. This field holds the digest (usually checksum) value for the
+       * plugin image. The value is calculated based on the `image_uri` field. If
+       * the `image_uri` field refers to a container image, the digest value is
+       * obtained from the container image. If the `image_uri` field refers to
+       * a generic artifact, the digest value is calculated based on the
+       * contents of the file.
        * 
* * string image_digest = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2996,11 +3285,12 @@ public Builder setImageDigest(java.lang.String value) { * * *
-       * Output only. The resolved digest for the image specified in `image`.
-       * The digest is resolved during the creation of a
-       * `WasmPluginVersion` resource.
-       * This field holds the digest value regardless of whether a tag or
-       * digest was originally specified in the `image` field.
+       * Output only. This field holds the digest (usually checksum) value for the
+       * plugin image. The value is calculated based on the `image_uri` field. If
+       * the `image_uri` field refers to a container image, the digest value is
+       * obtained from the container image. If the `image_uri` field refers to
+       * a generic artifact, the digest value is calculated based on the
+       * contents of the file.
        * 
* * string image_digest = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3018,11 +3308,12 @@ public Builder clearImageDigest() { * * *
-       * Output only. The resolved digest for the image specified in `image`.
-       * The digest is resolved during the creation of a
-       * `WasmPluginVersion` resource.
-       * This field holds the digest value regardless of whether a tag or
-       * digest was originally specified in the `image` field.
+       * Output only. This field holds the digest (usually checksum) value for the
+       * plugin image. The value is calculated based on the `image_uri` field. If
+       * the `image_uri` field refers to a container image, the digest value is
+       * obtained from the container image. If the `image_uri` field refers to
+       * a generic artifact, the digest value is calculated based on the
+       * contents of the file.
        * 
* * string image_digest = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3049,7 +3340,7 @@ public Builder setImageDigestBytes(com.google.protobuf.ByteString value) { *
        * Output only. This field holds the digest (usually checksum) value for the
        * plugin configuration. The value is calculated based on the contents of
-       * the `plugin_config_data` field or the container image defined by the
+       * `plugin_config_data` field or the image defined by the
        * `plugin_config_uri` field.
        * 
* @@ -3075,7 +3366,7 @@ public java.lang.String getPluginConfigDigest() { *
        * Output only. This field holds the digest (usually checksum) value for the
        * plugin configuration. The value is calculated based on the contents of
-       * the `plugin_config_data` field or the container image defined by the
+       * `plugin_config_data` field or the image defined by the
        * `plugin_config_uri` field.
        * 
* @@ -3101,7 +3392,7 @@ public com.google.protobuf.ByteString getPluginConfigDigestBytes() { *
        * Output only. This field holds the digest (usually checksum) value for the
        * plugin configuration. The value is calculated based on the contents of
-       * the `plugin_config_data` field or the container image defined by the
+       * `plugin_config_data` field or the image defined by the
        * `plugin_config_uri` field.
        * 
* @@ -3126,7 +3417,7 @@ public Builder setPluginConfigDigest(java.lang.String value) { *
        * Output only. This field holds the digest (usually checksum) value for the
        * plugin configuration. The value is calculated based on the contents of
-       * the `plugin_config_data` field or the container image defined by the
+       * `plugin_config_data` field or the image defined by the
        * `plugin_config_uri` field.
        * 
* @@ -3147,7 +3438,7 @@ public Builder clearPluginConfigDigest() { *
        * Output only. This field holds the digest (usually checksum) value for the
        * plugin configuration. The value is calculated based on the contents of
-       * the `plugin_config_data` field or the container image defined by the
+       * `plugin_config_data` field or the image defined by the
        * `plugin_config_uri` field.
        * 
* @@ -3268,9 +3559,9 @@ public interface LogConfigOrBuilder * * *
-     * Non-empty default. Specificies the lowest level of the plugin logs that
-     * are exported to Cloud Logging. This setting relates to the logs generated
-     * by using logging statements in your Wasm code.
+     * Non-empty default. Specifies the lowest level of the plugin logs that are
+     * exported to Cloud Logging. This setting relates to the logs generated by
+     * using logging statements in your Wasm code.
      *
      * This field is can be set only if logging is enabled for the plugin.
      *
@@ -3290,9 +3581,9 @@ public interface LogConfigOrBuilder
      *
      *
      * 
-     * Non-empty default. Specificies the lowest level of the plugin logs that
-     * are exported to Cloud Logging. This setting relates to the logs generated
-     * by using logging statements in your Wasm code.
+     * Non-empty default. Specifies the lowest level of the plugin logs that are
+     * exported to Cloud Logging. This setting relates to the logs generated by
+     * using logging statements in your Wasm code.
      *
      * This field is can be set only if logging is enabled for the plugin.
      *
@@ -3680,9 +3971,9 @@ public float getSampleRate() {
      *
      *
      * 
-     * Non-empty default. Specificies the lowest level of the plugin logs that
-     * are exported to Cloud Logging. This setting relates to the logs generated
-     * by using logging statements in your Wasm code.
+     * Non-empty default. Specifies the lowest level of the plugin logs that are
+     * exported to Cloud Logging. This setting relates to the logs generated by
+     * using logging statements in your Wasm code.
      *
      * This field is can be set only if logging is enabled for the plugin.
      *
@@ -3705,9 +3996,9 @@ public int getMinLogLevelValue() {
      *
      *
      * 
-     * Non-empty default. Specificies the lowest level of the plugin logs that
-     * are exported to Cloud Logging. This setting relates to the logs generated
-     * by using logging statements in your Wasm code.
+     * Non-empty default. Specifies the lowest level of the plugin logs that are
+     * exported to Cloud Logging. This setting relates to the logs generated by
+     * using logging statements in your Wasm code.
      *
      * This field is can be set only if logging is enabled for the plugin.
      *
@@ -4241,9 +4532,9 @@ public Builder clearSampleRate() {
        *
        *
        * 
-       * Non-empty default. Specificies the lowest level of the plugin logs that
-       * are exported to Cloud Logging. This setting relates to the logs generated
-       * by using logging statements in your Wasm code.
+       * Non-empty default. Specifies the lowest level of the plugin logs that are
+       * exported to Cloud Logging. This setting relates to the logs generated by
+       * using logging statements in your Wasm code.
        *
        * This field is can be set only if logging is enabled for the plugin.
        *
@@ -4266,9 +4557,9 @@ public int getMinLogLevelValue() {
        *
        *
        * 
-       * Non-empty default. Specificies the lowest level of the plugin logs that
-       * are exported to Cloud Logging. This setting relates to the logs generated
-       * by using logging statements in your Wasm code.
+       * Non-empty default. Specifies the lowest level of the plugin logs that are
+       * exported to Cloud Logging. This setting relates to the logs generated by
+       * using logging statements in your Wasm code.
        *
        * This field is can be set only if logging is enabled for the plugin.
        *
@@ -4294,9 +4585,9 @@ public Builder setMinLogLevelValue(int value) {
        *
        *
        * 
-       * Non-empty default. Specificies the lowest level of the plugin logs that
-       * are exported to Cloud Logging. This setting relates to the logs generated
-       * by using logging statements in your Wasm code.
+       * Non-empty default. Specifies the lowest level of the plugin logs that are
+       * exported to Cloud Logging. This setting relates to the logs generated by
+       * using logging statements in your Wasm code.
        *
        * This field is can be set only if logging is enabled for the plugin.
        *
@@ -4324,9 +4615,9 @@ public com.google.cloud.networkservices.v1.WasmPlugin.LogConfig.LogLevel getMinL
        *
        *
        * 
-       * Non-empty default. Specificies the lowest level of the plugin logs that
-       * are exported to Cloud Logging. This setting relates to the logs generated
-       * by using logging statements in your Wasm code.
+       * Non-empty default. Specifies the lowest level of the plugin logs that are
+       * exported to Cloud Logging. This setting relates to the logs generated by
+       * using logging statements in your Wasm code.
        *
        * This field is can be set only if logging is enabled for the plugin.
        *
@@ -4356,9 +4647,9 @@ public Builder setMinLogLevel(
        *
        *
        * 
-       * Non-empty default. Specificies the lowest level of the plugin logs that
-       * are exported to Cloud Logging. This setting relates to the logs generated
-       * by using logging statements in your Wasm code.
+       * Non-empty default. Specifies the lowest level of the plugin logs that are
+       * exported to Cloud Logging. This setting relates to the logs generated by
+       * using logging statements in your Wasm code.
        *
        * This field is can be set only if logging is enabled for the plugin.
        *
diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPluginVersion.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPluginVersion.java
index d80fc9148d2a..303899749fd9 100644
--- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPluginVersion.java
+++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPluginVersion.java
@@ -191,10 +191,24 @@ public com.google.protobuf.ByteString getPluginConfigData() {
    * 
    * URI of the plugin configuration stored in the Artifact Registry.
    * The configuration is provided to the plugin at runtime through
-   * the `ON_CONFIGURE` callback. The container image must contain
-   * only a single file with the name `plugin.config`. When a
-   * new `WasmPluginVersion` resource is created, the digest of the
-   * container image is saved in the `plugin_config_digest` field.
+   * the `ON_CONFIGURE` callback.
+   *
+   * The URI can refer to one of the following repository formats:
+   *
+   * * Container images: the `plugin_config_uri` must point to a container
+   * that contains a single file with the name `plugin.config`.
+   * When a new `WasmPluginVersion` resource is created, the digest of the
+   * image is saved in the `plugin_config_digest` field.
+   * When pulling a container image from Artifact Registry, the digest
+   * value is used instead of an image tag.
+   *
+   * * Generic artifacts: the `plugin_config_uri` must be in this format:
+   * `projects/{project}/locations/{location}/repositories/{repository}/
+   * genericArtifacts/{package}:{version}`.
+   * The specified package and version must contain a file with the name
+   * `plugin.config`. When a new `WasmPluginVersion` resource is
+   * created, the checksum of the contents of the file is saved in the
+   * `plugin_config_digest` field.
    * 
* * string plugin_config_uri = 13; @@ -211,10 +225,24 @@ public boolean hasPluginConfigUri() { *
    * URI of the plugin configuration stored in the Artifact Registry.
    * The configuration is provided to the plugin at runtime through
-   * the `ON_CONFIGURE` callback. The container image must contain
-   * only a single file with the name `plugin.config`. When a
-   * new `WasmPluginVersion` resource is created, the digest of the
-   * container image is saved in the `plugin_config_digest` field.
+   * the `ON_CONFIGURE` callback.
+   *
+   * The URI can refer to one of the following repository formats:
+   *
+   * * Container images: the `plugin_config_uri` must point to a container
+   * that contains a single file with the name `plugin.config`.
+   * When a new `WasmPluginVersion` resource is created, the digest of the
+   * image is saved in the `plugin_config_digest` field.
+   * When pulling a container image from Artifact Registry, the digest
+   * value is used instead of an image tag.
+   *
+   * * Generic artifacts: the `plugin_config_uri` must be in this format:
+   * `projects/{project}/locations/{location}/repositories/{repository}/
+   * genericArtifacts/{package}:{version}`.
+   * The specified package and version must contain a file with the name
+   * `plugin.config`. When a new `WasmPluginVersion` resource is
+   * created, the checksum of the contents of the file is saved in the
+   * `plugin_config_digest` field.
    * 
* * string plugin_config_uri = 13; @@ -244,10 +272,24 @@ public java.lang.String getPluginConfigUri() { *
    * URI of the plugin configuration stored in the Artifact Registry.
    * The configuration is provided to the plugin at runtime through
-   * the `ON_CONFIGURE` callback. The container image must contain
-   * only a single file with the name `plugin.config`. When a
-   * new `WasmPluginVersion` resource is created, the digest of the
-   * container image is saved in the `plugin_config_digest` field.
+   * the `ON_CONFIGURE` callback.
+   *
+   * The URI can refer to one of the following repository formats:
+   *
+   * * Container images: the `plugin_config_uri` must point to a container
+   * that contains a single file with the name `plugin.config`.
+   * When a new `WasmPluginVersion` resource is created, the digest of the
+   * image is saved in the `plugin_config_digest` field.
+   * When pulling a container image from Artifact Registry, the digest
+   * value is used instead of an image tag.
+   *
+   * * Generic artifacts: the `plugin_config_uri` must be in this format:
+   * `projects/{project}/locations/{location}/repositories/{repository}/
+   * genericArtifacts/{package}:{version}`.
+   * The specified package and version must contain a file with the name
+   * `plugin.config`. When a new `WasmPluginVersion` resource is
+   * created, the checksum of the contents of the file is saved in the
+   * `plugin_config_digest` field.
    * 
* * string plugin_config_uri = 13; @@ -605,12 +647,25 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * * *
-   * Optional. URI of the container image containing the plugin, stored in the
+   * Optional. URI of the image containing the Wasm module, stored in
    * Artifact Registry.
-   * When a new `WasmPluginVersion` resource is created, the digest
-   * of the container image is saved in the `image_digest` field.
-   * When downloading an image, the digest value is used instead of an
-   * image tag.
+   *
+   * The URI can refer to one of the following repository formats:
+   *
+   * * Container images: the `image_uri` must point to a container that
+   * contains a single file with the name `plugin.wasm`.
+   * When a new `WasmPluginVersion` resource is created, the digest of the
+   * image is saved in the `image_digest` field.
+   * When pulling a container image from Artifact Registry, the digest value
+   * is used instead of an image tag.
+   *
+   * * Generic artifacts: the `image_uri` must be in this format:
+   * `projects/{project}/locations/{location}/repositories/{repository}/
+   * genericArtifacts/{package}:{version}`.
+   * The specified package and version must contain a file with the name
+   * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
+   * checksum of the contents of the file is saved in the `image_digest`
+   * field.
    * 
* * string image_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -634,12 +689,25 @@ public java.lang.String getImageUri() { * * *
-   * Optional. URI of the container image containing the plugin, stored in the
+   * Optional. URI of the image containing the Wasm module, stored in
    * Artifact Registry.
-   * When a new `WasmPluginVersion` resource is created, the digest
-   * of the container image is saved in the `image_digest` field.
-   * When downloading an image, the digest value is used instead of an
-   * image tag.
+   *
+   * The URI can refer to one of the following repository formats:
+   *
+   * * Container images: the `image_uri` must point to a container that
+   * contains a single file with the name `plugin.wasm`.
+   * When a new `WasmPluginVersion` resource is created, the digest of the
+   * image is saved in the `image_digest` field.
+   * When pulling a container image from Artifact Registry, the digest value
+   * is used instead of an image tag.
+   *
+   * * Generic artifacts: the `image_uri` must be in this format:
+   * `projects/{project}/locations/{location}/repositories/{repository}/
+   * genericArtifacts/{package}:{version}`.
+   * The specified package and version must contain a file with the name
+   * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
+   * checksum of the contents of the file is saved in the `image_digest`
+   * field.
    * 
* * string image_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -668,10 +736,12 @@ public com.google.protobuf.ByteString getImageUriBytes() { * * *
-   * Output only. The resolved digest for the image specified in the `image`
-   * field. The digest is resolved during the creation of `WasmPluginVersion`
-   * resource. This field holds the digest value, regardless of whether a tag or
-   * digest was originally specified in the `image` field.
+   * Output only. This field holds the digest (usually checksum) value for the
+   * plugin image. The value is calculated based on the `image_uri` field. If
+   * the `image_uri` field refers to a container image, the digest value is
+   * obtained from the container image. If the `image_uri` field refers to
+   * a generic artifact, the digest value is calculated based on the
+   * contents of the file.
    * 
* * string image_digest = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -695,10 +765,12 @@ public java.lang.String getImageDigest() { * * *
-   * Output only. The resolved digest for the image specified in the `image`
-   * field. The digest is resolved during the creation of `WasmPluginVersion`
-   * resource. This field holds the digest value, regardless of whether a tag or
-   * digest was originally specified in the `image` field.
+   * Output only. This field holds the digest (usually checksum) value for the
+   * plugin image. The value is calculated based on the `image_uri` field. If
+   * the `image_uri` field refers to a container image, the digest value is
+   * obtained from the container image. If the `image_uri` field refers to
+   * a generic artifact, the digest value is calculated based on the
+   * contents of the file.
    * 
* * string image_digest = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -729,8 +801,8 @@ public com.google.protobuf.ByteString getImageDigestBytes() { *
    * Output only. This field holds the digest (usually checksum) value for the
    * plugin configuration. The value is calculated based on the contents of
-   * `plugin_config_data` or the container image defined by
-   * the `plugin_config_uri` field.
+   * `plugin_config_data` field or the image defined by the
+   * `plugin_config_uri` field.
    * 
* * string plugin_config_digest = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -756,8 +828,8 @@ public java.lang.String getPluginConfigDigest() { *
    * Output only. This field holds the digest (usually checksum) value for the
    * plugin configuration. The value is calculated based on the contents of
-   * `plugin_config_data` or the container image defined by
-   * the `plugin_config_uri` field.
+   * `plugin_config_data` field or the image defined by the
+   * `plugin_config_uri` field.
    * 
* * string plugin_config_digest = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1508,10 +1580,24 @@ public Builder clearPluginConfigData() { *
      * URI of the plugin configuration stored in the Artifact Registry.
      * The configuration is provided to the plugin at runtime through
-     * the `ON_CONFIGURE` callback. The container image must contain
-     * only a single file with the name `plugin.config`. When a
-     * new `WasmPluginVersion` resource is created, the digest of the
-     * container image is saved in the `plugin_config_digest` field.
+     * the `ON_CONFIGURE` callback.
+     *
+     * The URI can refer to one of the following repository formats:
+     *
+     * * Container images: the `plugin_config_uri` must point to a container
+     * that contains a single file with the name `plugin.config`.
+     * When a new `WasmPluginVersion` resource is created, the digest of the
+     * image is saved in the `plugin_config_digest` field.
+     * When pulling a container image from Artifact Registry, the digest
+     * value is used instead of an image tag.
+     *
+     * * Generic artifacts: the `plugin_config_uri` must be in this format:
+     * `projects/{project}/locations/{location}/repositories/{repository}/
+     * genericArtifacts/{package}:{version}`.
+     * The specified package and version must contain a file with the name
+     * `plugin.config`. When a new `WasmPluginVersion` resource is
+     * created, the checksum of the contents of the file is saved in the
+     * `plugin_config_digest` field.
      * 
* * string plugin_config_uri = 13; @@ -1529,10 +1615,24 @@ public boolean hasPluginConfigUri() { *
      * URI of the plugin configuration stored in the Artifact Registry.
      * The configuration is provided to the plugin at runtime through
-     * the `ON_CONFIGURE` callback. The container image must contain
-     * only a single file with the name `plugin.config`. When a
-     * new `WasmPluginVersion` resource is created, the digest of the
-     * container image is saved in the `plugin_config_digest` field.
+     * the `ON_CONFIGURE` callback.
+     *
+     * The URI can refer to one of the following repository formats:
+     *
+     * * Container images: the `plugin_config_uri` must point to a container
+     * that contains a single file with the name `plugin.config`.
+     * When a new `WasmPluginVersion` resource is created, the digest of the
+     * image is saved in the `plugin_config_digest` field.
+     * When pulling a container image from Artifact Registry, the digest
+     * value is used instead of an image tag.
+     *
+     * * Generic artifacts: the `plugin_config_uri` must be in this format:
+     * `projects/{project}/locations/{location}/repositories/{repository}/
+     * genericArtifacts/{package}:{version}`.
+     * The specified package and version must contain a file with the name
+     * `plugin.config`. When a new `WasmPluginVersion` resource is
+     * created, the checksum of the contents of the file is saved in the
+     * `plugin_config_digest` field.
      * 
* * string plugin_config_uri = 13; @@ -1563,10 +1663,24 @@ public java.lang.String getPluginConfigUri() { *
      * URI of the plugin configuration stored in the Artifact Registry.
      * The configuration is provided to the plugin at runtime through
-     * the `ON_CONFIGURE` callback. The container image must contain
-     * only a single file with the name `plugin.config`. When a
-     * new `WasmPluginVersion` resource is created, the digest of the
-     * container image is saved in the `plugin_config_digest` field.
+     * the `ON_CONFIGURE` callback.
+     *
+     * The URI can refer to one of the following repository formats:
+     *
+     * * Container images: the `plugin_config_uri` must point to a container
+     * that contains a single file with the name `plugin.config`.
+     * When a new `WasmPluginVersion` resource is created, the digest of the
+     * image is saved in the `plugin_config_digest` field.
+     * When pulling a container image from Artifact Registry, the digest
+     * value is used instead of an image tag.
+     *
+     * * Generic artifacts: the `plugin_config_uri` must be in this format:
+     * `projects/{project}/locations/{location}/repositories/{repository}/
+     * genericArtifacts/{package}:{version}`.
+     * The specified package and version must contain a file with the name
+     * `plugin.config`. When a new `WasmPluginVersion` resource is
+     * created, the checksum of the contents of the file is saved in the
+     * `plugin_config_digest` field.
      * 
* * string plugin_config_uri = 13; @@ -1597,10 +1711,24 @@ public com.google.protobuf.ByteString getPluginConfigUriBytes() { *
      * URI of the plugin configuration stored in the Artifact Registry.
      * The configuration is provided to the plugin at runtime through
-     * the `ON_CONFIGURE` callback. The container image must contain
-     * only a single file with the name `plugin.config`. When a
-     * new `WasmPluginVersion` resource is created, the digest of the
-     * container image is saved in the `plugin_config_digest` field.
+     * the `ON_CONFIGURE` callback.
+     *
+     * The URI can refer to one of the following repository formats:
+     *
+     * * Container images: the `plugin_config_uri` must point to a container
+     * that contains a single file with the name `plugin.config`.
+     * When a new `WasmPluginVersion` resource is created, the digest of the
+     * image is saved in the `plugin_config_digest` field.
+     * When pulling a container image from Artifact Registry, the digest
+     * value is used instead of an image tag.
+     *
+     * * Generic artifacts: the `plugin_config_uri` must be in this format:
+     * `projects/{project}/locations/{location}/repositories/{repository}/
+     * genericArtifacts/{package}:{version}`.
+     * The specified package and version must contain a file with the name
+     * `plugin.config`. When a new `WasmPluginVersion` resource is
+     * created, the checksum of the contents of the file is saved in the
+     * `plugin_config_digest` field.
      * 
* * string plugin_config_uri = 13; @@ -1624,10 +1752,24 @@ public Builder setPluginConfigUri(java.lang.String value) { *
      * URI of the plugin configuration stored in the Artifact Registry.
      * The configuration is provided to the plugin at runtime through
-     * the `ON_CONFIGURE` callback. The container image must contain
-     * only a single file with the name `plugin.config`. When a
-     * new `WasmPluginVersion` resource is created, the digest of the
-     * container image is saved in the `plugin_config_digest` field.
+     * the `ON_CONFIGURE` callback.
+     *
+     * The URI can refer to one of the following repository formats:
+     *
+     * * Container images: the `plugin_config_uri` must point to a container
+     * that contains a single file with the name `plugin.config`.
+     * When a new `WasmPluginVersion` resource is created, the digest of the
+     * image is saved in the `plugin_config_digest` field.
+     * When pulling a container image from Artifact Registry, the digest
+     * value is used instead of an image tag.
+     *
+     * * Generic artifacts: the `plugin_config_uri` must be in this format:
+     * `projects/{project}/locations/{location}/repositories/{repository}/
+     * genericArtifacts/{package}:{version}`.
+     * The specified package and version must contain a file with the name
+     * `plugin.config`. When a new `WasmPluginVersion` resource is
+     * created, the checksum of the contents of the file is saved in the
+     * `plugin_config_digest` field.
      * 
* * string plugin_config_uri = 13; @@ -1649,10 +1791,24 @@ public Builder clearPluginConfigUri() { *
      * URI of the plugin configuration stored in the Artifact Registry.
      * The configuration is provided to the plugin at runtime through
-     * the `ON_CONFIGURE` callback. The container image must contain
-     * only a single file with the name `plugin.config`. When a
-     * new `WasmPluginVersion` resource is created, the digest of the
-     * container image is saved in the `plugin_config_digest` field.
+     * the `ON_CONFIGURE` callback.
+     *
+     * The URI can refer to one of the following repository formats:
+     *
+     * * Container images: the `plugin_config_uri` must point to a container
+     * that contains a single file with the name `plugin.config`.
+     * When a new `WasmPluginVersion` resource is created, the digest of the
+     * image is saved in the `plugin_config_digest` field.
+     * When pulling a container image from Artifact Registry, the digest
+     * value is used instead of an image tag.
+     *
+     * * Generic artifacts: the `plugin_config_uri` must be in this format:
+     * `projects/{project}/locations/{location}/repositories/{repository}/
+     * genericArtifacts/{package}:{version}`.
+     * The specified package and version must contain a file with the name
+     * `plugin.config`. When a new `WasmPluginVersion` resource is
+     * created, the checksum of the contents of the file is saved in the
+     * `plugin_config_digest` field.
      * 
* * string plugin_config_uri = 13; @@ -2512,12 +2668,25 @@ public Builder putAllLabels(java.util.Map va * * *
-     * Optional. URI of the container image containing the plugin, stored in the
+     * Optional. URI of the image containing the Wasm module, stored in
      * Artifact Registry.
-     * When a new `WasmPluginVersion` resource is created, the digest
-     * of the container image is saved in the `image_digest` field.
-     * When downloading an image, the digest value is used instead of an
-     * image tag.
+     *
+     * The URI can refer to one of the following repository formats:
+     *
+     * * Container images: the `image_uri` must point to a container that
+     * contains a single file with the name `plugin.wasm`.
+     * When a new `WasmPluginVersion` resource is created, the digest of the
+     * image is saved in the `image_digest` field.
+     * When pulling a container image from Artifact Registry, the digest value
+     * is used instead of an image tag.
+     *
+     * * Generic artifacts: the `image_uri` must be in this format:
+     * `projects/{project}/locations/{location}/repositories/{repository}/
+     * genericArtifacts/{package}:{version}`.
+     * The specified package and version must contain a file with the name
+     * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
+     * checksum of the contents of the file is saved in the `image_digest`
+     * field.
      * 
* * string image_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2540,12 +2709,25 @@ public java.lang.String getImageUri() { * * *
-     * Optional. URI of the container image containing the plugin, stored in the
+     * Optional. URI of the image containing the Wasm module, stored in
      * Artifact Registry.
-     * When a new `WasmPluginVersion` resource is created, the digest
-     * of the container image is saved in the `image_digest` field.
-     * When downloading an image, the digest value is used instead of an
-     * image tag.
+     *
+     * The URI can refer to one of the following repository formats:
+     *
+     * * Container images: the `image_uri` must point to a container that
+     * contains a single file with the name `plugin.wasm`.
+     * When a new `WasmPluginVersion` resource is created, the digest of the
+     * image is saved in the `image_digest` field.
+     * When pulling a container image from Artifact Registry, the digest value
+     * is used instead of an image tag.
+     *
+     * * Generic artifacts: the `image_uri` must be in this format:
+     * `projects/{project}/locations/{location}/repositories/{repository}/
+     * genericArtifacts/{package}:{version}`.
+     * The specified package and version must contain a file with the name
+     * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
+     * checksum of the contents of the file is saved in the `image_digest`
+     * field.
      * 
* * string image_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2568,12 +2750,25 @@ public com.google.protobuf.ByteString getImageUriBytes() { * * *
-     * Optional. URI of the container image containing the plugin, stored in the
+     * Optional. URI of the image containing the Wasm module, stored in
      * Artifact Registry.
-     * When a new `WasmPluginVersion` resource is created, the digest
-     * of the container image is saved in the `image_digest` field.
-     * When downloading an image, the digest value is used instead of an
-     * image tag.
+     *
+     * The URI can refer to one of the following repository formats:
+     *
+     * * Container images: the `image_uri` must point to a container that
+     * contains a single file with the name `plugin.wasm`.
+     * When a new `WasmPluginVersion` resource is created, the digest of the
+     * image is saved in the `image_digest` field.
+     * When pulling a container image from Artifact Registry, the digest value
+     * is used instead of an image tag.
+     *
+     * * Generic artifacts: the `image_uri` must be in this format:
+     * `projects/{project}/locations/{location}/repositories/{repository}/
+     * genericArtifacts/{package}:{version}`.
+     * The specified package and version must contain a file with the name
+     * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
+     * checksum of the contents of the file is saved in the `image_digest`
+     * field.
      * 
* * string image_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2595,12 +2790,25 @@ public Builder setImageUri(java.lang.String value) { * * *
-     * Optional. URI of the container image containing the plugin, stored in the
+     * Optional. URI of the image containing the Wasm module, stored in
      * Artifact Registry.
-     * When a new `WasmPluginVersion` resource is created, the digest
-     * of the container image is saved in the `image_digest` field.
-     * When downloading an image, the digest value is used instead of an
-     * image tag.
+     *
+     * The URI can refer to one of the following repository formats:
+     *
+     * * Container images: the `image_uri` must point to a container that
+     * contains a single file with the name `plugin.wasm`.
+     * When a new `WasmPluginVersion` resource is created, the digest of the
+     * image is saved in the `image_digest` field.
+     * When pulling a container image from Artifact Registry, the digest value
+     * is used instead of an image tag.
+     *
+     * * Generic artifacts: the `image_uri` must be in this format:
+     * `projects/{project}/locations/{location}/repositories/{repository}/
+     * genericArtifacts/{package}:{version}`.
+     * The specified package and version must contain a file with the name
+     * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
+     * checksum of the contents of the file is saved in the `image_digest`
+     * field.
      * 
* * string image_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2618,12 +2826,25 @@ public Builder clearImageUri() { * * *
-     * Optional. URI of the container image containing the plugin, stored in the
+     * Optional. URI of the image containing the Wasm module, stored in
      * Artifact Registry.
-     * When a new `WasmPluginVersion` resource is created, the digest
-     * of the container image is saved in the `image_digest` field.
-     * When downloading an image, the digest value is used instead of an
-     * image tag.
+     *
+     * The URI can refer to one of the following repository formats:
+     *
+     * * Container images: the `image_uri` must point to a container that
+     * contains a single file with the name `plugin.wasm`.
+     * When a new `WasmPluginVersion` resource is created, the digest of the
+     * image is saved in the `image_digest` field.
+     * When pulling a container image from Artifact Registry, the digest value
+     * is used instead of an image tag.
+     *
+     * * Generic artifacts: the `image_uri` must be in this format:
+     * `projects/{project}/locations/{location}/repositories/{repository}/
+     * genericArtifacts/{package}:{version}`.
+     * The specified package and version must contain a file with the name
+     * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
+     * checksum of the contents of the file is saved in the `image_digest`
+     * field.
      * 
* * string image_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2648,10 +2869,12 @@ public Builder setImageUriBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. The resolved digest for the image specified in the `image`
-     * field. The digest is resolved during the creation of `WasmPluginVersion`
-     * resource. This field holds the digest value, regardless of whether a tag or
-     * digest was originally specified in the `image` field.
+     * Output only. This field holds the digest (usually checksum) value for the
+     * plugin image. The value is calculated based on the `image_uri` field. If
+     * the `image_uri` field refers to a container image, the digest value is
+     * obtained from the container image. If the `image_uri` field refers to
+     * a generic artifact, the digest value is calculated based on the
+     * contents of the file.
      * 
* * string image_digest = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2674,10 +2897,12 @@ public java.lang.String getImageDigest() { * * *
-     * Output only. The resolved digest for the image specified in the `image`
-     * field. The digest is resolved during the creation of `WasmPluginVersion`
-     * resource. This field holds the digest value, regardless of whether a tag or
-     * digest was originally specified in the `image` field.
+     * Output only. This field holds the digest (usually checksum) value for the
+     * plugin image. The value is calculated based on the `image_uri` field. If
+     * the `image_uri` field refers to a container image, the digest value is
+     * obtained from the container image. If the `image_uri` field refers to
+     * a generic artifact, the digest value is calculated based on the
+     * contents of the file.
      * 
* * string image_digest = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2700,10 +2925,12 @@ public com.google.protobuf.ByteString getImageDigestBytes() { * * *
-     * Output only. The resolved digest for the image specified in the `image`
-     * field. The digest is resolved during the creation of `WasmPluginVersion`
-     * resource. This field holds the digest value, regardless of whether a tag or
-     * digest was originally specified in the `image` field.
+     * Output only. This field holds the digest (usually checksum) value for the
+     * plugin image. The value is calculated based on the `image_uri` field. If
+     * the `image_uri` field refers to a container image, the digest value is
+     * obtained from the container image. If the `image_uri` field refers to
+     * a generic artifact, the digest value is calculated based on the
+     * contents of the file.
      * 
* * string image_digest = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2725,10 +2952,12 @@ public Builder setImageDigest(java.lang.String value) { * * *
-     * Output only. The resolved digest for the image specified in the `image`
-     * field. The digest is resolved during the creation of `WasmPluginVersion`
-     * resource. This field holds the digest value, regardless of whether a tag or
-     * digest was originally specified in the `image` field.
+     * Output only. This field holds the digest (usually checksum) value for the
+     * plugin image. The value is calculated based on the `image_uri` field. If
+     * the `image_uri` field refers to a container image, the digest value is
+     * obtained from the container image. If the `image_uri` field refers to
+     * a generic artifact, the digest value is calculated based on the
+     * contents of the file.
      * 
* * string image_digest = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2746,10 +2975,12 @@ public Builder clearImageDigest() { * * *
-     * Output only. The resolved digest for the image specified in the `image`
-     * field. The digest is resolved during the creation of `WasmPluginVersion`
-     * resource. This field holds the digest value, regardless of whether a tag or
-     * digest was originally specified in the `image` field.
+     * Output only. This field holds the digest (usually checksum) value for the
+     * plugin image. The value is calculated based on the `image_uri` field. If
+     * the `image_uri` field refers to a container image, the digest value is
+     * obtained from the container image. If the `image_uri` field refers to
+     * a generic artifact, the digest value is calculated based on the
+     * contents of the file.
      * 
* * string image_digest = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2776,8 +3007,8 @@ public Builder setImageDigestBytes(com.google.protobuf.ByteString value) { *
      * Output only. This field holds the digest (usually checksum) value for the
      * plugin configuration. The value is calculated based on the contents of
-     * `plugin_config_data` or the container image defined by
-     * the `plugin_config_uri` field.
+     * `plugin_config_data` field or the image defined by the
+     * `plugin_config_uri` field.
      * 
* * string plugin_config_digest = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2802,8 +3033,8 @@ public java.lang.String getPluginConfigDigest() { *
      * Output only. This field holds the digest (usually checksum) value for the
      * plugin configuration. The value is calculated based on the contents of
-     * `plugin_config_data` or the container image defined by
-     * the `plugin_config_uri` field.
+     * `plugin_config_data` field or the image defined by the
+     * `plugin_config_uri` field.
      * 
* * string plugin_config_digest = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2828,8 +3059,8 @@ public com.google.protobuf.ByteString getPluginConfigDigestBytes() { *
      * Output only. This field holds the digest (usually checksum) value for the
      * plugin configuration. The value is calculated based on the contents of
-     * `plugin_config_data` or the container image defined by
-     * the `plugin_config_uri` field.
+     * `plugin_config_data` field or the image defined by the
+     * `plugin_config_uri` field.
      * 
* * string plugin_config_digest = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2853,8 +3084,8 @@ public Builder setPluginConfigDigest(java.lang.String value) { *
      * Output only. This field holds the digest (usually checksum) value for the
      * plugin configuration. The value is calculated based on the contents of
-     * `plugin_config_data` or the container image defined by
-     * the `plugin_config_uri` field.
+     * `plugin_config_data` field or the image defined by the
+     * `plugin_config_uri` field.
      * 
* * string plugin_config_digest = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2874,8 +3105,8 @@ public Builder clearPluginConfigDigest() { *
      * Output only. This field holds the digest (usually checksum) value for the
      * plugin configuration. The value is calculated based on the contents of
-     * `plugin_config_data` or the container image defined by
-     * the `plugin_config_uri` field.
+     * `plugin_config_data` field or the image defined by the
+     * `plugin_config_uri` field.
      * 
* * string plugin_config_digest = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPluginVersionOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPluginVersionOrBuilder.java index 431928fce2cf..53e036372d41 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPluginVersionOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPluginVersionOrBuilder.java @@ -66,10 +66,24 @@ public interface WasmPluginVersionOrBuilder *
    * URI of the plugin configuration stored in the Artifact Registry.
    * The configuration is provided to the plugin at runtime through
-   * the `ON_CONFIGURE` callback. The container image must contain
-   * only a single file with the name `plugin.config`. When a
-   * new `WasmPluginVersion` resource is created, the digest of the
-   * container image is saved in the `plugin_config_digest` field.
+   * the `ON_CONFIGURE` callback.
+   *
+   * The URI can refer to one of the following repository formats:
+   *
+   * * Container images: the `plugin_config_uri` must point to a container
+   * that contains a single file with the name `plugin.config`.
+   * When a new `WasmPluginVersion` resource is created, the digest of the
+   * image is saved in the `plugin_config_digest` field.
+   * When pulling a container image from Artifact Registry, the digest
+   * value is used instead of an image tag.
+   *
+   * * Generic artifacts: the `plugin_config_uri` must be in this format:
+   * `projects/{project}/locations/{location}/repositories/{repository}/
+   * genericArtifacts/{package}:{version}`.
+   * The specified package and version must contain a file with the name
+   * `plugin.config`. When a new `WasmPluginVersion` resource is
+   * created, the checksum of the contents of the file is saved in the
+   * `plugin_config_digest` field.
    * 
* * string plugin_config_uri = 13; @@ -84,10 +98,24 @@ public interface WasmPluginVersionOrBuilder *
    * URI of the plugin configuration stored in the Artifact Registry.
    * The configuration is provided to the plugin at runtime through
-   * the `ON_CONFIGURE` callback. The container image must contain
-   * only a single file with the name `plugin.config`. When a
-   * new `WasmPluginVersion` resource is created, the digest of the
-   * container image is saved in the `plugin_config_digest` field.
+   * the `ON_CONFIGURE` callback.
+   *
+   * The URI can refer to one of the following repository formats:
+   *
+   * * Container images: the `plugin_config_uri` must point to a container
+   * that contains a single file with the name `plugin.config`.
+   * When a new `WasmPluginVersion` resource is created, the digest of the
+   * image is saved in the `plugin_config_digest` field.
+   * When pulling a container image from Artifact Registry, the digest
+   * value is used instead of an image tag.
+   *
+   * * Generic artifacts: the `plugin_config_uri` must be in this format:
+   * `projects/{project}/locations/{location}/repositories/{repository}/
+   * genericArtifacts/{package}:{version}`.
+   * The specified package and version must contain a file with the name
+   * `plugin.config`. When a new `WasmPluginVersion` resource is
+   * created, the checksum of the contents of the file is saved in the
+   * `plugin_config_digest` field.
    * 
* * string plugin_config_uri = 13; @@ -102,10 +130,24 @@ public interface WasmPluginVersionOrBuilder *
    * URI of the plugin configuration stored in the Artifact Registry.
    * The configuration is provided to the plugin at runtime through
-   * the `ON_CONFIGURE` callback. The container image must contain
-   * only a single file with the name `plugin.config`. When a
-   * new `WasmPluginVersion` resource is created, the digest of the
-   * container image is saved in the `plugin_config_digest` field.
+   * the `ON_CONFIGURE` callback.
+   *
+   * The URI can refer to one of the following repository formats:
+   *
+   * * Container images: the `plugin_config_uri` must point to a container
+   * that contains a single file with the name `plugin.config`.
+   * When a new `WasmPluginVersion` resource is created, the digest of the
+   * image is saved in the `plugin_config_digest` field.
+   * When pulling a container image from Artifact Registry, the digest
+   * value is used instead of an image tag.
+   *
+   * * Generic artifacts: the `plugin_config_uri` must be in this format:
+   * `projects/{project}/locations/{location}/repositories/{repository}/
+   * genericArtifacts/{package}:{version}`.
+   * The specified package and version must contain a file with the name
+   * `plugin.config`. When a new `WasmPluginVersion` resource is
+   * created, the checksum of the contents of the file is saved in the
+   * `plugin_config_digest` field.
    * 
* * string plugin_config_uri = 13; @@ -322,12 +364,25 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. URI of the container image containing the plugin, stored in the
+   * Optional. URI of the image containing the Wasm module, stored in
    * Artifact Registry.
-   * When a new `WasmPluginVersion` resource is created, the digest
-   * of the container image is saved in the `image_digest` field.
-   * When downloading an image, the digest value is used instead of an
-   * image tag.
+   *
+   * The URI can refer to one of the following repository formats:
+   *
+   * * Container images: the `image_uri` must point to a container that
+   * contains a single file with the name `plugin.wasm`.
+   * When a new `WasmPluginVersion` resource is created, the digest of the
+   * image is saved in the `image_digest` field.
+   * When pulling a container image from Artifact Registry, the digest value
+   * is used instead of an image tag.
+   *
+   * * Generic artifacts: the `image_uri` must be in this format:
+   * `projects/{project}/locations/{location}/repositories/{repository}/
+   * genericArtifacts/{package}:{version}`.
+   * The specified package and version must contain a file with the name
+   * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
+   * checksum of the contents of the file is saved in the `image_digest`
+   * field.
    * 
* * string image_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -340,12 +395,25 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. URI of the container image containing the plugin, stored in the
+   * Optional. URI of the image containing the Wasm module, stored in
    * Artifact Registry.
-   * When a new `WasmPluginVersion` resource is created, the digest
-   * of the container image is saved in the `image_digest` field.
-   * When downloading an image, the digest value is used instead of an
-   * image tag.
+   *
+   * The URI can refer to one of the following repository formats:
+   *
+   * * Container images: the `image_uri` must point to a container that
+   * contains a single file with the name `plugin.wasm`.
+   * When a new `WasmPluginVersion` resource is created, the digest of the
+   * image is saved in the `image_digest` field.
+   * When pulling a container image from Artifact Registry, the digest value
+   * is used instead of an image tag.
+   *
+   * * Generic artifacts: the `image_uri` must be in this format:
+   * `projects/{project}/locations/{location}/repositories/{repository}/
+   * genericArtifacts/{package}:{version}`.
+   * The specified package and version must contain a file with the name
+   * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
+   * checksum of the contents of the file is saved in the `image_digest`
+   * field.
    * 
* * string image_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -358,10 +426,12 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. The resolved digest for the image specified in the `image`
-   * field. The digest is resolved during the creation of `WasmPluginVersion`
-   * resource. This field holds the digest value, regardless of whether a tag or
-   * digest was originally specified in the `image` field.
+   * Output only. This field holds the digest (usually checksum) value for the
+   * plugin image. The value is calculated based on the `image_uri` field. If
+   * the `image_uri` field refers to a container image, the digest value is
+   * obtained from the container image. If the `image_uri` field refers to
+   * a generic artifact, the digest value is calculated based on the
+   * contents of the file.
    * 
* * string image_digest = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -374,10 +444,12 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. The resolved digest for the image specified in the `image`
-   * field. The digest is resolved during the creation of `WasmPluginVersion`
-   * resource. This field holds the digest value, regardless of whether a tag or
-   * digest was originally specified in the `image` field.
+   * Output only. This field holds the digest (usually checksum) value for the
+   * plugin image. The value is calculated based on the `image_uri` field. If
+   * the `image_uri` field refers to a container image, the digest value is
+   * obtained from the container image. If the `image_uri` field refers to
+   * a generic artifact, the digest value is calculated based on the
+   * contents of the file.
    * 
* * string image_digest = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -392,8 +464,8 @@ java.lang.String getLabelsOrDefault( *
    * Output only. This field holds the digest (usually checksum) value for the
    * plugin configuration. The value is calculated based on the contents of
-   * `plugin_config_data` or the container image defined by
-   * the `plugin_config_uri` field.
+   * `plugin_config_data` field or the image defined by the
+   * `plugin_config_uri` field.
    * 
* * string plugin_config_digest = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -408,8 +480,8 @@ java.lang.String getLabelsOrDefault( *
    * Output only. This field holds the digest (usually checksum) value for the
    * plugin configuration. The value is calculated based on the contents of
-   * `plugin_config_data` or the container image defined by
-   * the `plugin_config_uri` field.
+   * `plugin_config_data` field or the image defined by the
+   * `plugin_config_uri` field.
    * 
* * string plugin_config_digest = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WireFormat.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WireFormat.java index 015050f188e2..fcf4c95b5f51 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WireFormat.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WireFormat.java @@ -55,6 +55,18 @@ public enum WireFormat implements com.google.protobuf.ProtocolMessageEnum { * EXT_PROC_GRPC = 1; */ EXT_PROC_GRPC(1), + /** + * + * + *
+   * The extension service uses Envoy's `ext_authz` gRPC API. The backend
+   * service for the extension must use HTTP2 or H2C as the protocol.
+   * `EXT_AUTHZ_GRPC` is only supported for regional `AuthzExtension` resources.
+   * 
+ * + * EXT_AUTHZ_GRPC = 3; + */ + EXT_AUTHZ_GRPC(3), UNRECOGNIZED(-1), ; @@ -94,6 +106,19 @@ public enum WireFormat implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EXT_PROC_GRPC_VALUE = 1; + /** + * + * + *
+   * The extension service uses Envoy's `ext_authz` gRPC API. The backend
+   * service for the extension must use HTTP2 or H2C as the protocol.
+   * `EXT_AUTHZ_GRPC` is only supported for regional `AuthzExtension` resources.
+   * 
+ * + * EXT_AUTHZ_GRPC = 3; + */ + public static final int EXT_AUTHZ_GRPC_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -122,6 +147,8 @@ public static WireFormat forNumber(int value) { return WIRE_FORMAT_UNSPECIFIED; case 1: return EXT_PROC_GRPC; + case 3: + return EXT_AUTHZ_GRPC; default: return null; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/agent_gateway.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/agent_gateway.proto new file mode 100644 index 000000000000..1ecb015e6553 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/agent_gateway.proto @@ -0,0 +1,299 @@ +// 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.cloud.networkservices.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.NetworkServices.V1"; +option go_package = "cloud.google.com/go/networkservices/apiv1/networkservicespb;networkservicespb"; +option java_multiple_files = true; +option java_outer_classname = "AgentGatewayProto"; +option java_package = "com.google.cloud.networkservices.v1"; +option php_namespace = "Google\\Cloud\\NetworkServices\\V1"; +option ruby_package = "Google::Cloud::NetworkServices::V1"; + +// AgentGateway represents the agent gateway resource. +message AgentGateway { + option (google.api.resource) = { + type: "networkservices.googleapis.com/AgentGateway" + pattern: "projects/{project}/locations/{location}/agentGateways/{agent_gateway}" + plural: "agentGateways" + singular: "agentGateway" + }; + + // Configuration for Google Managed deployment mode. + // Proxy is orchestrated and managed by GoogleCloud in a tenant project. + message GoogleManaged { + // GovernedAccessPath defines the type of access to protect. + enum GovernedAccessPath { + // Governed access path is not specified. + GOVERNED_ACCESS_PATH_UNSPECIFIED = 0; + + // Govern agent conections to destinations. + AGENT_TO_ANYWHERE = 1; + + // Protect connection to Agent or Tool. + CLIENT_TO_AGENT = 2; + } + + // Optional. Operating Mode of Agent Gateway. + GovernedAccessPath governed_access_path = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Configuration for Self Managed deployment mode. + // Attach to existing Application Load Balancers or Secure Web Proxies. + message SelfManaged { + // Optional. A supported Google Cloud networking proxy in the Project and + // Location + string resource_uri = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "*" } + ]; + } + + // NetworkConfig contains network configurations for the AgentGateway. + message NetworkConfig { + // Configuration for Egress + message Egress { + // TrustConfig defines the trust configuration for egress. + message TrustConfig { + // Required. PEM encoded root certificates used to validate the identity + // of the upstream servers/destinations during egress connections. + repeated string pem_certificates = 1 + [(google.api.field_behavior) = REQUIRED]; + } + + // Optional. The URI of the Network Attachment resource. + string network_attachment = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. TrustConfig defines the trust configuration for egress. + TrustConfig trust_config = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // DNS peering config for the user VPC network. + message DnsPeeringConfig { + // Required. Domain names for which DNS queries should be forwarded to the + // target network. + repeated string domains = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Target project ID to which DNS queries should be forwarded + // to. This can be the same project that contains the AgentGateway or a + // different project. + string target_project = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Target network in 'target project' to which DNS queries + // should be forwarded to. Must be in format of + // `projects/{project}/global/networks/{network}`. + string target_network = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "compute.googleapis.com/Network" + } + ]; + } + + // Optional. Optional PSC-Interface network attachment for connectivity to + // your private VPCs network. + Egress egress = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional DNS peering configuration for connectivity to your + // private VPC network. + DnsPeeringConfig dns_peering_config = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // AgentGatewayOutputCard contains informational output-only fields + message AgentGatewayOutputCard { + // Output only. mTLS Endpoint associated with this AgentGateway + string mtls_endpoint = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Root Certificates for Agents to validate this AgentGateway + repeated string root_certificates = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Service Account used by Service Extensions to operate. + string service_extensions_service_account = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Enums of all supported protocols + enum Protocol { + // Unspecified protocol. + PROTOCOL_UNSPECIFIED = 0; + + // Message Control Plane protocol. + MCP = 1; + } + + // Deployment mode of the network proxy. Exactly one of the fields in this + // `oneof` must be set. + oneof deployment_mode { + // Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant + // project. + GoogleManaged google_managed = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Attach to existing Application Load Balancers or Secure Web + // Proxies. + SelfManaged self_managed = 9 [(google.api.field_behavior) = OPTIONAL]; + } + + // Identifier. Name of the AgentGateway resource. It matches pattern + // `projects/*/locations/*/agentGateways/`. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The timestamp when the resource was created. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was updated. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Set of label tags associated with the AgentGateway resource. + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A free-text description of the resource. Max length 1024 + // characters. + string description = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Etag of the resource. + // If this is provided, it must match the server's etag. If the provided etag + // does not match the server's etag, the request will fail with a 409 ABORTED + // error. + string etag = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Deprecated. + repeated Protocol protocols = 12 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of Agent registries containing the agents, MCP servers and + // tools governed by the Agent Gateway. Note: Currently limited to + // project-scoped registries Must be of format + // `//agentregistry.googleapis.com/projects/{project}/locations/{location}/ + repeated string registries = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Network configuration for the AgentGateway. + NetworkConfig network_config = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Field for populated AgentGateway card. + AgentGatewayOutputCard agent_gateway_card = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request used with the ListAgentGateways method. +message ListAgentGatewaysRequest { + // Required. The project and location from which the AgentGateways should be + // listed, specified in the format `projects/*/locations/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networkservices.googleapis.com/AgentGateway" + } + ]; + + // Optional. Maximum number of AgentGateways to return per call. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The value returned by the last `ListAgentGatewaysResponse` + // Indicates that this is a continuation of a prior `ListAgentGateways` + // call, and that the system should return the next page of data. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, allow partial responses for multi-regional Aggregated + // List requests. Otherwise if one of the locations is down or unreachable, + // the Aggregated List request will fail. + bool return_partial_success = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response returned by the ListAgentGateways method. +message ListAgentGatewaysResponse { + // List of AgentGateway resources. + repeated AgentGateway agent_gateways = 1; + + // If there might be more results than those appearing in this response, then + // `next_page_token` is included. To get the next set of results, call this + // method again using the value of `next_page_token` as `page_token`. + string next_page_token = 2; + + // Unreachable resources. Populated when the request attempts to list all + // resources across all supported locations, while some locations are + // temporarily unavailable. + repeated string unreachable = 3; +} + +// Request used by the GetAgentGateway method. +message GetAgentGatewayRequest { + // Required. A name of the AgentGateway to get. Must be in the format + // `projects/*/locations/*/agentGateways/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkservices.googleapis.com/AgentGateway" + } + ]; +} + +// Request used by the CreateAgentGateway method. +message CreateAgentGatewayRequest { + // Required. The parent resource of the AgentGateway. Must be in the + // format `projects/*/locations/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networkservices.googleapis.com/AgentGateway" + } + ]; + + // Required. Short name of the AgentGateway resource to be created. + string agent_gateway_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. AgentGateway resource to be created. + AgentGateway agent_gateway = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request used by the UpdateAgentGateway method. +message UpdateAgentGatewayRequest { + // Optional. Field mask is used to specify the fields to be overwritten in the + // AgentGateway resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. Updated AgentGateway resource. + AgentGateway agent_gateway = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request used by the DeleteAgentGateway method. +message DeleteAgentGatewayRequest { + // Required. A name of the AgentGateway to delete. Must be in the format + // `projects/*/locations/*/agentGateways/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkservices.googleapis.com/AgentGateway" + } + ]; + + // Optional. The etag of the AgentGateway to delete. + string etag = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/common.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/common.proto index cbc5a9d41f8c..27df8fa32e4b 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/common.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/common.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// 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. @@ -36,10 +36,10 @@ enum EnvoyHeaders { NONE = 1; // Envoy will insert default internal debug headers into upstream requests: - // x-envoy-attempt-count - // x-envoy-is-timeout-retry - // x-envoy-expected-rq-timeout-ms - // x-envoy-original-path + // x-envoy-attempt-count, + // x-envoy-is-timeout-retry, + // x-envoy-expected-rq-timeout-ms, + // x-envoy-original-path, // x-envoy-upstream-stream-duration-ms DEBUG_HEADERS = 2; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/dep.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/dep.proto index 1ec1ee251c01..1f23c6f4521e 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/dep.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/dep.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// 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. @@ -342,6 +342,35 @@ enum WireFormat { // `supported_events` for a client request are sent as part of the same // gRPC stream. EXT_PROC_GRPC = 1; + + // The extension service uses Envoy's `ext_authz` gRPC API. The backend + // service for the extension must use HTTP2 or H2C as the protocol. + // `EXT_AUTHZ_GRPC` is only supported for regional `AuthzExtension` resources. + EXT_AUTHZ_GRPC = 3; +} + +// The send mode for body processing. +enum BodySendMode { + // Default value. Do not use. + BODY_SEND_MODE_UNSPECIFIED = 0; + + // Calls to the extension are executed in the streamed mode. Subsequent + // chunks will be sent only after the previous chunks have been processed. + // + // The content of the body chunks is sent one way to the extension. Extension + // may send modified chunks back. + // + // This is the default value if the processing mode is not specified. + BODY_SEND_MODE_STREAMED = 1; + + // Calls are executed in the full duplex mode. Subsequent chunks will be sent + // for processing without waiting for the response for the previous chunk or + // for the response for `REQUEST_HEADERS` event. + // + // Extension can freely modify or chunk the body contents. If the extension + // doesn't send the body contents back, the next extension in the chain or the + // upstream will receive an empty body. + BODY_SEND_MODE_FULL_DUPLEX_STREAMED = 2; } // A single extension chain wrapper that contains the match conditions and @@ -359,13 +388,15 @@ message ExtensionChain { // A single extension in the chain to execute for the matching request. message Extension { - // Required. The name for this extension. + // Optional. The name for this extension. // The name is logged as part of the HTTP request logs. // The name must conform with RFC-1034, is restricted to lower-cased // letters, numbers and hyphens, and can have a maximum length of 63 // characters. Additionally, the first character must be a letter and the // last a letter or a number. - string name = 1 [(google.api.field_behavior) = REQUIRED]; + // + // This field is required except for AuthzExtension. + string name = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. The `:authority` header in the gRPC request sent from Envoy // to the extension service. @@ -409,6 +440,10 @@ message ExtensionChain { // // For the `LbEdgeExtension` resource, this field is required and must only // contain `REQUEST_HEADERS` event. + // + // For the `AuthzExtension` resource, this field is optional. + // `REQUEST_HEADERS` is the only supported event. If unspecified, + // `REQUEST_HEADERS` event is assumed as supported. repeated EventType supported_events = 4 [(google.api.field_behavior) = OPTIONAL]; @@ -443,11 +478,26 @@ message ExtensionChain { repeated string forward_headers = 7 [(google.api.field_behavior) = OPTIONAL]; + // Optional. List of the Envoy attributes to forward to the extension + // server. The attributes provided here are included as part of the + // `ProcessingRequest.attributes` field (of type + // `map`), where the keys are the attribute + // names. Refer to the + // [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes) + // for the names of attributes that can be forwarded. If omitted, no + // attributes are sent. Each element is a string indicating the + // attribute name. + repeated string forward_attributes = 8 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. The metadata provided here is included as part of the // `metadata_context` (of type `google.protobuf.Struct`) in the // `ProcessingRequest` message sent to the extension server. // - // The metadata is available under the namespace + // For `AuthzExtension` resources, the metadata is available under the + // namespace `com.google.authz_extension.`. + // For other types of extensions, the metadata is available under the + // namespace // `com.google....`. // For example: // `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. @@ -473,6 +523,47 @@ message ExtensionChain { // * All values must be strings. google.protobuf.Struct metadata = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configures the send mode for request body processing. + // + // The field can only be set if `supported_events` includes `REQUEST_BODY`. + // If `supported_events` includes `REQUEST_BODY`, + // but `request_body_send_mode` is unset, the default value `STREAMED` is + // used. + // + // When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events` + // must include both `REQUEST_BODY` and `REQUEST_TRAILERS`. + // + // This field can be set only for `LbTrafficExtension` and + // `LbRouteExtension` resources, and only when the `service` field of the + // extension points to a `BackendService`. Only `FULL_DUPLEX_STREAMED` mode + // is supported for `LbRouteExtension` resources. + BodySendMode request_body_send_mode = 14 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configures the send mode for response processing. If + // unspecified, the default value `STREAMED` is used. + // + // The field can only be set if `supported_events` includes `RESPONSE_BODY`. + // If `supported_events` includes `RESPONSE_BODY`, but + // `response_body_send_mode` is unset, the default value `STREAMED` is used. + // + // When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events` + // must include both `RESPONSE_BODY` and `RESPONSE_TRAILERS`. + // + // This field can be set only for `LbTrafficExtension` resources, and only + // when the `service` field of the extension points to a `BackendService`. + BodySendMode response_body_send_mode = 15 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. When set to `true`, the calls to the extension backend are + // performed asynchronously, without pausing the processing of the ongoing + // request. In this mode, only `STREAMED` (default) body processing is + // supported. Responses, if any, are ignored. + // + // Supported by regional `LbTrafficExtension` and `LbRouteExtension` + // resources. + bool observability_mode = 16 [(google.api.field_behavior) = OPTIONAL]; } // Required. The name for this extension chain. @@ -1208,17 +1299,19 @@ message AuthzExtension { // resources. map labels = 5 [(google.api.field_behavior) = OPTIONAL]; - // Required. All backend services and forwarding rules referenced by this + // Optional. All backend services and forwarding rules referenced by this // extension must share the same load balancing scheme. Supported values: - // `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to + // `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. Can be omitted for AuthzExtensions + // that do not reference a backend service. For more information, refer to // [Backend services // overview](https://cloud.google.com/load-balancing/docs/backend-service). LoadBalancingScheme load_balancing_scheme = 6 - [(google.api.field_behavior) = REQUIRED]; + [(google.api.field_behavior) = OPTIONAL]; - // Required. The `:authority` header in the gRPC request sent from Envoy - // to the extension service. - string authority = 7 [(google.api.field_behavior) = REQUIRED]; + // Optional. The `:authority` header in the gRPC request sent from Envoy to + // the extension service. It is required when the `service` field points to a + // backend service or a wasm plugin. + string authority = 7 [(google.api.field_behavior) = OPTIONAL]; // Required. The reference to the service that runs the extension. // @@ -1268,8 +1361,22 @@ message AuthzExtension { // Each element is a string indicating the header name. repeated string forward_headers = 12 [(google.api.field_behavior) = OPTIONAL]; + // Optional. List of the Envoy attributes to forward to the extension server. + // The attributes provided here are included as part of the + // `ProcessingRequest.attributes` field (of type + // `map`), where the keys are the attribute + // names. Refer to the + // [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes) + // for the names of attributes that can be forwarded. If omitted, no + // attributes are sent. Each element is a string indicating the + // attribute name. + repeated string forward_attributes = 13 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. The format of communication supported by the callout extension. - // If not specified, the default value `EXT_PROC_GRPC` is used. + // This field is supported only for regional `AuthzExtension` resources. If + // not specified, the default value `EXT_PROC_GRPC` is used. Global + // `AuthzExtension` resources use the `EXT_PROC_GRPC` wire format. WireFormat wire_format = 14 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/endpoint_policy.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/endpoint_policy.proto index 411a4bc3cb63..7907b02f3381 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/endpoint_policy.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/endpoint_policy.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// 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. @@ -65,7 +65,7 @@ message EndpointPolicy { } // Identifier. Name of the EndpointPolicy resource. It matches pattern - // `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`. + // `projects/{project}/locations/*/endpointPolicies/{endpoint_policy}`. string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. The timestamp when the resource was created. @@ -138,7 +138,7 @@ message EndpointPolicy { // Request used with the ListEndpointPolicies method. message ListEndpointPoliciesRequest { // Required. The project and location from which the EndpointPolicies should - // be listed, specified in the format `projects/*/locations/global`. + // be listed, specified in the format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -181,7 +181,7 @@ message ListEndpointPoliciesResponse { // Request used with the GetEndpointPolicy method. message GetEndpointPolicyRequest { // Required. A name of the EndpointPolicy to get. Must be in the format - // `projects/*/locations/global/endpointPolicies/*`. + // `projects/*/locations/*/endpointPolicies/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -193,7 +193,7 @@ message GetEndpointPolicyRequest { // Request used with the CreateEndpointPolicy method. message CreateEndpointPolicyRequest { // Required. The parent resource of the EndpointPolicy. Must be in the - // format `projects/*/locations/global`. + // format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -226,7 +226,7 @@ message UpdateEndpointPolicyRequest { // Request used with the DeleteEndpointPolicy method. message DeleteEndpointPolicyRequest { // Required. A name of the EndpointPolicy to delete. Must be in the format - // `projects/*/locations/global/endpointPolicies/*`. + // `projects/*/locations/*/endpointPolicies/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/extensibility.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/extensibility.proto index 42fb82f24b53..e94cd57524e6 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/extensibility.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/extensibility.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// 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. @@ -64,10 +64,23 @@ message WasmPlugin { // URI of the plugin configuration stored in the Artifact Registry. // The configuration is provided to the plugin at runtime through - // the `ON_CONFIGURE` callback. The container image must - // contain only a single file with the name - // `plugin.config`. When a new `WasmPluginVersion` - // resource is created, the digest of the container image is saved in the + // the `ON_CONFIGURE` callback. + // + // The URI can refer to one of the following repository formats: + // + // * Container images: the `plugin_config_uri` must point to a container + // that contains a single file with the name `plugin.config`. + // When a new `WasmPluginVersion` resource is created, the digest of the + // image is saved in the `plugin_config_digest` field. + // When pulling a container image from Artifact Registry, the digest + // value is used instead of an image tag. + // + // * Generic artifacts: the `plugin_config_uri` must be in this format: + // `projects/{project}/locations/{location}/repositories/{repository}/ + // genericArtifacts/{package}:{version}`. + // The specified package and version must contain a file with the name + // `plugin.config`. When a new `WasmPluginVersion` resource is + // created, the checksum of the contents of the file is saved in the // `plugin_config_digest` field. string plugin_config_uri = 10; } @@ -87,23 +100,38 @@ message WasmPlugin { // resource. map labels = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. URI of the container image containing the Wasm module, stored - // in the Artifact Registry. The container image must contain only a single - // file with the name `plugin.wasm`. When a new `WasmPluginVersion` resource - // is created, the URI gets resolved to an image digest and saved in the - // `image_digest` field. + // Optional. URI of the image containing the Wasm module, stored in + // Artifact Registry. + // + // The URI can refer to one of the following repository formats: + // + // * Container images: the `image_uri` must point to a container that + // contains a single file with the name `plugin.wasm`. + // When a new `WasmPluginVersion` resource is created, the digest of the + // image is saved in the `image_digest` field. + // When pulling a container image from Artifact Registry, the digest value + // is used instead of an image tag. + // + // * Generic artifacts: the `image_uri` must be in this format: + // `projects/{project}/locations/{location}/repositories/{repository}/ + // genericArtifacts/{package}:{version}`. + // The specified package and version must contain a file with the name + // `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the + // checksum of the contents of the file is saved in the `image_digest` + // field. string image_uri = 5 [(google.api.field_behavior) = OPTIONAL]; - // Output only. The resolved digest for the image specified in `image`. - // The digest is resolved during the creation of a - // `WasmPluginVersion` resource. - // This field holds the digest value regardless of whether a tag or - // digest was originally specified in the `image` field. + // Output only. This field holds the digest (usually checksum) value for the + // plugin image. The value is calculated based on the `image_uri` field. If + // the `image_uri` field refers to a container image, the digest value is + // obtained from the container image. If the `image_uri` field refers to + // a generic artifact, the digest value is calculated based on the + // contents of the file. string image_digest = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. This field holds the digest (usually checksum) value for the // plugin configuration. The value is calculated based on the contents of - // the `plugin_config_data` field or the container image defined by the + // `plugin_config_data` field or the image defined by the // `plugin_config_uri` field. string plugin_config_digest = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -155,9 +183,9 @@ message WasmPlugin { // This field can be specified only if logging is enabled for this plugin. float sample_rate = 2 [(google.api.field_behavior) = NON_EMPTY_DEFAULT]; - // Non-empty default. Specificies the lowest level of the plugin logs that - // are exported to Cloud Logging. This setting relates to the logs generated - // by using logging statements in your Wasm code. + // Non-empty default. Specifies the lowest level of the plugin logs that are + // exported to Cloud Logging. This setting relates to the logs generated by + // using logging statements in your Wasm code. // // This field is can be set only if logging is enabled for the plugin. // @@ -251,10 +279,24 @@ message WasmPluginVersion { // URI of the plugin configuration stored in the Artifact Registry. // The configuration is provided to the plugin at runtime through - // the `ON_CONFIGURE` callback. The container image must contain - // only a single file with the name `plugin.config`. When a - // new `WasmPluginVersion` resource is created, the digest of the - // container image is saved in the `plugin_config_digest` field. + // the `ON_CONFIGURE` callback. + // + // The URI can refer to one of the following repository formats: + // + // * Container images: the `plugin_config_uri` must point to a container + // that contains a single file with the name `plugin.config`. + // When a new `WasmPluginVersion` resource is created, the digest of the + // image is saved in the `plugin_config_digest` field. + // When pulling a container image from Artifact Registry, the digest + // value is used instead of an image tag. + // + // * Generic artifacts: the `plugin_config_uri` must be in this format: + // `projects/{project}/locations/{location}/repositories/{repository}/ + // genericArtifacts/{package}:{version}`. + // The specified package and version must contain a file with the name + // `plugin.config`. When a new `WasmPluginVersion` resource is + // created, the checksum of the contents of the file is saved in the + // `plugin_config_digest` field. string plugin_config_uri = 13; } @@ -278,24 +320,39 @@ message WasmPluginVersion { // resource. map labels = 6 [(google.api.field_behavior) = OPTIONAL]; - // Optional. URI of the container image containing the plugin, stored in the + // Optional. URI of the image containing the Wasm module, stored in // Artifact Registry. - // When a new `WasmPluginVersion` resource is created, the digest - // of the container image is saved in the `image_digest` field. - // When downloading an image, the digest value is used instead of an - // image tag. + // + // The URI can refer to one of the following repository formats: + // + // * Container images: the `image_uri` must point to a container that + // contains a single file with the name `plugin.wasm`. + // When a new `WasmPluginVersion` resource is created, the digest of the + // image is saved in the `image_digest` field. + // When pulling a container image from Artifact Registry, the digest value + // is used instead of an image tag. + // + // * Generic artifacts: the `image_uri` must be in this format: + // `projects/{project}/locations/{location}/repositories/{repository}/ + // genericArtifacts/{package}:{version}`. + // The specified package and version must contain a file with the name + // `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the + // checksum of the contents of the file is saved in the `image_digest` + // field. string image_uri = 8 [(google.api.field_behavior) = OPTIONAL]; - // Output only. The resolved digest for the image specified in the `image` - // field. The digest is resolved during the creation of `WasmPluginVersion` - // resource. This field holds the digest value, regardless of whether a tag or - // digest was originally specified in the `image` field. + // Output only. This field holds the digest (usually checksum) value for the + // plugin image. The value is calculated based on the `image_uri` field. If + // the `image_uri` field refers to a container image, the digest value is + // obtained from the container image. If the `image_uri` field refers to + // a generic artifact, the digest value is calculated based on the + // contents of the file. string image_digest = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. This field holds the digest (usually checksum) value for the // plugin configuration. The value is calculated based on the contents of - // `plugin_config_data` or the container image defined by - // the `plugin_config_uri` field. + // `plugin_config_data` field or the image defined by the + // `plugin_config_uri` field. string plugin_config_digest = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/gateway.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/gateway.proto index b8be0b522112..a2a94615c9cc 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/gateway.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/gateway.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// 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. @@ -29,9 +29,6 @@ option java_outer_classname = "GatewayProto"; option java_package = "com.google.cloud.networkservices.v1"; option php_namespace = "Google\\Cloud\\NetworkServices\\V1"; option ruby_package = "Google::Cloud::NetworkServices::V1"; - -// Resource definitions uncouple the proto from the external API for client -// generation purposes. option (google.api.resource_definition) = { type: "networksecurity.googleapis.com/GatewaySecurityPolicy" pattern: "projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}" @@ -150,11 +147,16 @@ message Gateway { // Required. One or more port numbers (1-65535), on which the Gateway will // receive traffic. The proxy binds to the specified ports. - // Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port. + // Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports. // Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and // support multiple ports. repeated int32 ports = 11 [(google.api.field_behavior) = REQUIRED]; + // Optional. If true, the Gateway will listen on all ports. This is mutually + // exclusive with the `ports` field. This field only applies to gateways of + // type 'SECURE_WEB_GATEWAY'. + bool all_ports = 34 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Scope determines how configuration across multiple Gateway // instances are merged. The configuration for multiple Gateway instances with // the same scope will be merged as presented as a single configuration to the @@ -235,6 +237,11 @@ message Gateway { // This field is configurable only for gateways of type SECURE_WEB_GATEWAY. // This field is required for gateways of type SECURE_WEB_GATEWAY. RoutingMode routing_mode = 32 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, the gateway will allow traffic from clients outside of + // the region where the gateway is located. + // This field is configurable only for gateways of type SECURE_WEB_GATEWAY. + bool allow_global_access = 33 [(google.api.field_behavior) = OPTIONAL]; } // Request used with the ListGateways method. diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/grpc_route.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/grpc_route.proto index da02e3663627..f88909554206 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/grpc_route.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/grpc_route.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// 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. @@ -29,9 +29,6 @@ option java_outer_classname = "GrpcRouteProto"; option java_package = "com.google.cloud.networkservices.v1"; option php_namespace = "Google\\Cloud\\NetworkServices\\V1"; option ruby_package = "Google::Cloud::NetworkServices::V1"; - -// Resource definitions uncouple the proto from the external API for client -// generation purposes. option (google.api.resource_definition) = { type: "compute.googleapis.com/BackendService" pattern: "projects/{project}/locations/{location}/backendServices/{backend_service}" @@ -289,7 +286,7 @@ message GrpcRoute { } // Identifier. Name of the GrpcRoute resource. It matches pattern - // `projects/*/locations/global/grpcRoutes/` + // `projects/*/locations/*/grpcRoutes/` string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. Server-defined URL of this resource @@ -347,7 +344,7 @@ message GrpcRoute { // one of the routing rules to route the requests served by the mesh. // // Each mesh reference should match the pattern: - // `projects/*/locations/global/meshes/` + // `projects/*/locations/*/meshes/` repeated string meshes = 9 [ (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { @@ -360,7 +357,7 @@ message GrpcRoute { // gateway. // // Each gateway reference should match the pattern: - // `projects/*/locations/global/gateways/` + // `projects/*/locations/*/gateways/` repeated string gateways = 10 [ (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { @@ -379,7 +376,7 @@ message GrpcRoute { // Request used with the ListGrpcRoutes method. message ListGrpcRoutesRequest { // Required. The project and location from which the GrpcRoutes should be - // listed, specified in the format `projects/*/locations/global`. + // listed, specified in the format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -421,7 +418,7 @@ message ListGrpcRoutesResponse { // Request used by the GetGrpcRoute method. message GetGrpcRouteRequest { // Required. A name of the GrpcRoute to get. Must be in the format - // `projects/*/locations/global/grpcRoutes/*`. + // `projects/*/locations/*/grpcRoutes/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -433,7 +430,7 @@ message GetGrpcRouteRequest { // Request used by the CreateGrpcRoute method. message CreateGrpcRouteRequest { // Required. The parent resource of the GrpcRoute. Must be in the - // format `projects/*/locations/global`. + // format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -465,7 +462,7 @@ message UpdateGrpcRouteRequest { // Request used by the DeleteGrpcRoute method. message DeleteGrpcRouteRequest { // Required. A name of the GrpcRoute to delete. Must be in the format - // `projects/*/locations/global/grpcRoutes/*`. + // `projects/*/locations/*/grpcRoutes/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/http_route.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/http_route.proto index e2b71cb45b12..888fec4d200a 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/http_route.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/http_route.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// 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. @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.networkservices.v1; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/resource.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/field_mask.proto"; @@ -530,7 +531,7 @@ message HttpRoute { } // Identifier. Name of the HttpRoute resource. It matches pattern - // `projects/*/locations/global/httpRoutes/http_route_name>`. + // `projects/*/locations/*/httpRoutes/http_route_name>`. string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. Server-defined URL of this resource @@ -578,7 +579,7 @@ message HttpRoute { // one of the routing rules to route the requests served by the mesh. // // Each mesh reference should match the pattern: - // `projects/*/locations/global/meshes/` + // `projects/*/locations/*/meshes/` // // The attached Mesh should be of a type SIDECAR repeated string meshes = 8 [ @@ -593,7 +594,7 @@ message HttpRoute { // gateway. // // Each gateway reference should match the pattern: - // `projects/*/locations/global/gateways/` + // `projects/*/locations/*/gateways/` repeated string gateways = 9 [ (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { @@ -613,7 +614,7 @@ message HttpRoute { // Request used with the ListHttpRoutes method. message ListHttpRoutesRequest { // Required. The project and location from which the HttpRoutes should be - // listed, specified in the format `projects/*/locations/global`. + // listed, specified in the format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -633,6 +634,9 @@ message ListHttpRoutesRequest { // List requests. Otherwise if one of the locations is down or unreachable, // the Aggregated List request will fail. bool return_partial_success = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter expression to restrict the list. + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; } // Response returned by the ListHttpRoutes method. @@ -655,7 +659,7 @@ message ListHttpRoutesResponse { // Request used by the GetHttpRoute method. message GetHttpRouteRequest { // Required. A name of the HttpRoute to get. Must be in the format - // `projects/*/locations/global/httpRoutes/*`. + // `projects/*/locations/*/httpRoutes/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -667,7 +671,7 @@ message GetHttpRouteRequest { // Request used by the HttpRoute method. message CreateHttpRouteRequest { // Required. The parent resource of the HttpRoute. Must be in the - // format `projects/*/locations/global`. + // format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -680,6 +684,12 @@ message CreateHttpRouteRequest { // Required. HttpRoute resource to be created. HttpRoute http_route = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Idempotent request UUID. + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; } // Request used by the UpdateHttpRoute method. @@ -699,7 +709,7 @@ message UpdateHttpRouteRequest { // Request used by the DeleteHttpRoute method. message DeleteHttpRouteRequest { // Required. A name of the HttpRoute to delete. Must be in the format - // `projects/*/locations/global/httpRoutes/*`. + // `projects/*/locations/*/httpRoutes/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/mesh.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/mesh.proto index 421c49d7c826..b7df585568cc 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/mesh.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/mesh.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// 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. @@ -41,10 +41,12 @@ message Mesh { option (google.api.resource) = { type: "networkservices.googleapis.com/Mesh" pattern: "projects/{project}/locations/{location}/meshes/{mesh}" + plural: "meshes" + singular: "mesh" }; // Identifier. Name of the Mesh resource. It matches pattern - // `projects/*/locations/global/meshes/`. + // `projects/*/locations/*/meshes/`. string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. Server-defined URL of this resource @@ -83,7 +85,7 @@ message Mesh { // Request used with the ListMeshes method. message ListMeshesRequest { // Required. The project and location from which the Meshes should be - // listed, specified in the format `projects/*/locations/global`. + // listed, specified in the format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -124,7 +126,7 @@ message ListMeshesResponse { // Request used by the GetMesh method. message GetMeshRequest { // Required. A name of the Mesh to get. Must be in the format - // `projects/*/locations/global/meshes/*`. + // `projects/*/locations/*/meshes/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -136,7 +138,7 @@ message GetMeshRequest { // Request used by the CreateMesh method. message CreateMeshRequest { // Required. The parent resource of the Mesh. Must be in the - // format `projects/*/locations/global`. + // format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -168,7 +170,7 @@ message UpdateMeshRequest { // Request used by the DeleteMesh method. message DeleteMeshRequest { // Required. A name of the Mesh to delete. Must be in the format - // `projects/*/locations/global/meshes/*`. + // `projects/*/locations/*/meshes/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/network_services.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/network_services.proto index 16e08a4d2068..6aba43a35776 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/network_services.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/network_services.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// 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. @@ -18,6 +18,7 @@ package google.cloud.networkservices.v1; import "google/api/annotations.proto"; import "google/api/client.proto"; +import "google/cloud/networkservices/v1/agent_gateway.proto"; import "google/cloud/networkservices/v1/common.proto"; import "google/cloud/networkservices/v1/endpoint_policy.proto"; import "google/cloud/networkservices/v1/extensibility.proto"; @@ -704,4 +705,63 @@ service NetworkServices { }; option (google.api.method_signature) = "parent"; } + + // Lists AgentGateways in a given project and location. + rpc ListAgentGateways(ListAgentGatewaysRequest) + returns (ListAgentGatewaysResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/agentGateways" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single AgentGateway. + rpc GetAgentGateway(GetAgentGatewayRequest) returns (AgentGateway) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/agentGateways/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new AgentGateway in a given project and location. + rpc CreateAgentGateway(CreateAgentGatewayRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/agentGateways" + body: "agent_gateway" + }; + option (google.api.method_signature) = + "parent,agent_gateway,agent_gateway_id"; + option (google.longrunning.operation_info) = { + response_type: "AgentGateway" + metadata_type: "google.cloud.networkservices.v1.OperationMetadata" + }; + } + + // Updates the parameters of a single AgentGateway. + rpc UpdateAgentGateway(UpdateAgentGatewayRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{agent_gateway.name=projects/*/locations/*/agentGateways/*}" + body: "agent_gateway" + }; + option (google.api.method_signature) = "agent_gateway,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "AgentGateway" + metadata_type: "google.cloud.networkservices.v1.OperationMetadata" + }; + } + + // Deletes a single AgentGateway. + rpc DeleteAgentGateway(DeleteAgentGatewayRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/agentGateways/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.networkservices.v1.OperationMetadata" + }; + } } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/service_binding.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/service_binding.proto index 654e1227e280..0d80fd958c4e 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/service_binding.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/service_binding.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// 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. @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.networkservices.v1; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/resource.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -28,7 +29,6 @@ option java_outer_classname = "ServiceBindingProto"; option java_package = "com.google.cloud.networkservices.v1"; option php_namespace = "Google\\Cloud\\NetworkServices\\V1"; option ruby_package = "Google::Cloud::NetworkServices::V1"; - option (google.api.resource_definition) = { type: "servicedirectory.googleapis.com/Service" pattern: "projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}" diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/service_lb_policy.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/service_lb_policy.proto index 9dbfab5f1e14..2a064e13c5e9 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/service_lb_policy.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/service_lb_policy.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// 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. diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/tcp_route.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/tcp_route.proto index d18a91617dea..26db57ff4d35 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/tcp_route.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/tcp_route.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// 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. @@ -119,7 +119,7 @@ message TcpRoute { } // Identifier. Name of the TcpRoute resource. It matches pattern - // `projects/*/locations/global/tcpRoutes/tcp_route_name>`. + // `projects/*/locations/*/tcpRoutes/tcp_route_name>`. string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. Server-defined URL of this resource @@ -146,7 +146,7 @@ message TcpRoute { // one of the routing rules to route the requests served by the mesh. // // Each mesh reference should match the pattern: - // `projects/*/locations/global/meshes/` + // `projects/*/locations/*/meshes/` // // The attached Mesh should be of a type SIDECAR repeated string meshes = 8 [ @@ -160,7 +160,7 @@ message TcpRoute { // as one of the routing rules to route the requests served by the gateway. // // Each gateway reference should match the pattern: - // `projects/*/locations/global/gateways/` + // `projects/*/locations/*/gateways/` repeated string gateways = 9 [ (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { @@ -175,7 +175,7 @@ message TcpRoute { // Request used with the ListTcpRoutes method. message ListTcpRoutesRequest { // Required. The project and location from which the TcpRoutes should be - // listed, specified in the format `projects/*/locations/global`. + // listed, specified in the format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -217,7 +217,7 @@ message ListTcpRoutesResponse { // Request used by the GetTcpRoute method. message GetTcpRouteRequest { // Required. A name of the TcpRoute to get. Must be in the format - // `projects/*/locations/global/tcpRoutes/*`. + // `projects/*/locations/*/tcpRoutes/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -229,7 +229,7 @@ message GetTcpRouteRequest { // Request used by the TcpRoute method. message CreateTcpRouteRequest { // Required. The parent resource of the TcpRoute. Must be in the - // format `projects/*/locations/global`. + // format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -261,7 +261,7 @@ message UpdateTcpRouteRequest { // Request used by the DeleteTcpRoute method. message DeleteTcpRouteRequest { // Required. A name of the TcpRoute to delete. Must be in the format - // `projects/*/locations/global/tcpRoutes/*`. + // `projects/*/locations/*/tcpRoutes/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/tls_route.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/tls_route.proto index e025db82d2c9..70a607183161 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/tls_route.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/tls_route.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// 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. @@ -29,6 +29,10 @@ option java_outer_classname = "TlsRouteProto"; option java_package = "com.google.cloud.networkservices.v1"; option php_namespace = "Google\\Cloud\\NetworkServices\\V1"; option ruby_package = "Google::Cloud::NetworkServices::V1"; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/TargetTcpProxy" + pattern: "projects/{project}/locations/{location}/targetTcpProxies/{target_tcp_proxy}" +}; // TlsRoute defines how traffic should be routed based on SNI and other matching // L3 attributes. @@ -104,7 +108,7 @@ message TlsRoute { } // Identifier. Name of the TlsRoute resource. It matches pattern - // `projects/*/locations/global/tlsRoutes/tls_route_name>`. + // `projects/*/locations/*/tlsRoutes/tls_route_name>`. string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. Server-defined URL of this resource @@ -131,7 +135,7 @@ message TlsRoute { // one of the routing rules to route the requests served by the mesh. // // Each mesh reference should match the pattern: - // `projects/*/locations/global/meshes/` + // `projects/*/locations/*/meshes/` // // The attached Mesh should be of a type SIDECAR repeated string meshes = 6 [ @@ -145,7 +149,7 @@ message TlsRoute { // as one of the routing rules to route the requests served by the gateway. // // Each gateway reference should match the pattern: - // `projects/*/locations/global/gateways/` + // `projects/*/locations/*/gateways/` repeated string gateways = 7 [ (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { @@ -153,6 +157,19 @@ message TlsRoute { } ]; + // Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is + // attached to, as one of the routing rules to route the requests served by + // the TargetTcpProxy. + // + // Each TargetTcpProxy reference should match the pattern: + // `projects/*/locations/*/targetTcpProxies/` + repeated string target_proxies = 13 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "compute.googleapis.com/TargetTcpProxy" + } + ]; + // Optional. Set of label tags associated with the TlsRoute resource. map labels = 11 [(google.api.field_behavior) = OPTIONAL]; } @@ -160,7 +177,7 @@ message TlsRoute { // Request used with the ListTlsRoutes method. message ListTlsRoutesRequest { // Required. The project and location from which the TlsRoutes should be - // listed, specified in the format `projects/*/locations/global`. + // listed, specified in the format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -202,7 +219,7 @@ message ListTlsRoutesResponse { // Request used by the GetTlsRoute method. message GetTlsRouteRequest { // Required. A name of the TlsRoute to get. Must be in the format - // `projects/*/locations/global/tlsRoutes/*`. + // `projects/*/locations/*/tlsRoutes/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -214,7 +231,7 @@ message GetTlsRouteRequest { // Request used by the TlsRoute method. message CreateTlsRouteRequest { // Required. The parent resource of the TlsRoute. Must be in the - // format `projects/*/locations/global`. + // format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -246,7 +263,7 @@ message UpdateTlsRouteRequest { // Request used by the DeleteTlsRoute method. message DeleteTlsRouteRequest { // Required. A name of the TlsRoute to delete. Must be in the format - // `projects/*/locations/global/tlsRoutes/*`. + // `projects/*/locations/*/tlsRoutes/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/AsyncCreateAgentGateway.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/AsyncCreateAgentGateway.java new file mode 100644 index 000000000000..1f8e9e9f3efc --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/AsyncCreateAgentGateway.java @@ -0,0 +1,53 @@ +/* + * 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.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_CreateAgentGateway_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.CreateAgentGatewayRequest; +import com.google.cloud.networkservices.v1.LocationName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; +import com.google.longrunning.Operation; + +public class AsyncCreateAgentGateway { + + public static void main(String[] args) throws Exception { + asyncCreateAgentGateway(); + } + + public static void asyncCreateAgentGateway() 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + CreateAgentGatewayRequest request = + CreateAgentGatewayRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAgentGatewayId("agentGatewayId1729577210") + .setAgentGateway(AgentGateway.newBuilder().build()) + .build(); + ApiFuture future = + networkServicesClient.createAgentGatewayCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_CreateAgentGateway_async] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/AsyncCreateAgentGatewayLRO.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/AsyncCreateAgentGatewayLRO.java new file mode 100644 index 000000000000..38a4ac89ff2b --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/AsyncCreateAgentGatewayLRO.java @@ -0,0 +1,53 @@ +/* + * 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.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_CreateAgentGateway_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.CreateAgentGatewayRequest; +import com.google.cloud.networkservices.v1.LocationName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; +import com.google.cloud.networkservices.v1.OperationMetadata; + +public class AsyncCreateAgentGatewayLRO { + + public static void main(String[] args) throws Exception { + asyncCreateAgentGatewayLRO(); + } + + public static void asyncCreateAgentGatewayLRO() 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + CreateAgentGatewayRequest request = + CreateAgentGatewayRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAgentGatewayId("agentGatewayId1729577210") + .setAgentGateway(AgentGateway.newBuilder().build()) + .build(); + OperationFuture future = + networkServicesClient.createAgentGatewayOperationCallable().futureCall(request); + // Do something. + AgentGateway response = future.get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_CreateAgentGateway_LRO_async] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/SyncCreateAgentGateway.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/SyncCreateAgentGateway.java new file mode 100644 index 000000000000..85f80a743fcf --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/SyncCreateAgentGateway.java @@ -0,0 +1,48 @@ +/* + * 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.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_CreateAgentGateway_sync] +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.CreateAgentGatewayRequest; +import com.google.cloud.networkservices.v1.LocationName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; + +public class SyncCreateAgentGateway { + + public static void main(String[] args) throws Exception { + syncCreateAgentGateway(); + } + + public static void syncCreateAgentGateway() 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + CreateAgentGatewayRequest request = + CreateAgentGatewayRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAgentGatewayId("agentGatewayId1729577210") + .setAgentGateway(AgentGateway.newBuilder().build()) + .build(); + AgentGateway response = networkServicesClient.createAgentGatewayAsync(request).get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_CreateAgentGateway_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/SyncCreateAgentGatewayLocationnameAgentgatewayString.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/SyncCreateAgentGatewayLocationnameAgentgatewayString.java new file mode 100644 index 000000000000..454a60caba23 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/SyncCreateAgentGatewayLocationnameAgentgatewayString.java @@ -0,0 +1,45 @@ +/* + * 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.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_CreateAgentGateway_LocationnameAgentgatewayString_sync] +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.LocationName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; + +public class SyncCreateAgentGatewayLocationnameAgentgatewayString { + + public static void main(String[] args) throws Exception { + syncCreateAgentGatewayLocationnameAgentgatewayString(); + } + + public static void syncCreateAgentGatewayLocationnameAgentgatewayString() 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AgentGateway agentGateway = AgentGateway.newBuilder().build(); + String agentGatewayId = "agentGatewayId1729577210"; + AgentGateway response = + networkServicesClient.createAgentGatewayAsync(parent, agentGateway, agentGatewayId).get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_CreateAgentGateway_LocationnameAgentgatewayString_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/SyncCreateAgentGatewayStringAgentgatewayString.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/SyncCreateAgentGatewayStringAgentgatewayString.java new file mode 100644 index 000000000000..483c8b618451 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/SyncCreateAgentGatewayStringAgentgatewayString.java @@ -0,0 +1,45 @@ +/* + * 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.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_CreateAgentGateway_StringAgentgatewayString_sync] +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.LocationName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; + +public class SyncCreateAgentGatewayStringAgentgatewayString { + + public static void main(String[] args) throws Exception { + syncCreateAgentGatewayStringAgentgatewayString(); + } + + public static void syncCreateAgentGatewayStringAgentgatewayString() 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + AgentGateway agentGateway = AgentGateway.newBuilder().build(); + String agentGatewayId = "agentGatewayId1729577210"; + AgentGateway response = + networkServicesClient.createAgentGatewayAsync(parent, agentGateway, agentGatewayId).get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_CreateAgentGateway_StringAgentgatewayString_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createhttproute/AsyncCreateHttpRoute.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createhttproute/AsyncCreateHttpRoute.java index ee16a1bff6d1..45d17d925616 100644 --- a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createhttproute/AsyncCreateHttpRoute.java +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createhttproute/AsyncCreateHttpRoute.java @@ -42,6 +42,7 @@ public static void asyncCreateHttpRoute() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setHttpRouteId("httpRouteId-2054835300") .setHttpRoute(HttpRoute.newBuilder().build()) + .setRequestId("requestId693933066") .build(); ApiFuture future = networkServicesClient.createHttpRouteCallable().futureCall(request); diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createhttproute/AsyncCreateHttpRouteLRO.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createhttproute/AsyncCreateHttpRouteLRO.java index ccf5703d0005..acecb5ee4b0a 100644 --- a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createhttproute/AsyncCreateHttpRouteLRO.java +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createhttproute/AsyncCreateHttpRouteLRO.java @@ -42,6 +42,7 @@ public static void asyncCreateHttpRouteLRO() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setHttpRouteId("httpRouteId-2054835300") .setHttpRoute(HttpRoute.newBuilder().build()) + .setRequestId("requestId693933066") .build(); OperationFuture future = networkServicesClient.createHttpRouteOperationCallable().futureCall(request); diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createhttproute/SyncCreateHttpRoute.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createhttproute/SyncCreateHttpRoute.java index 1428b490aaad..1288b5d12086 100644 --- a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createhttproute/SyncCreateHttpRoute.java +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createhttproute/SyncCreateHttpRoute.java @@ -40,6 +40,7 @@ public static void syncCreateHttpRoute() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setHttpRouteId("httpRouteId-2054835300") .setHttpRoute(HttpRoute.newBuilder().build()) + .setRequestId("requestId693933066") .build(); HttpRoute response = networkServicesClient.createHttpRouteAsync(request).get(); } diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/AsyncDeleteAgentGateway.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/AsyncDeleteAgentGateway.java new file mode 100644 index 000000000000..0ac20ad05d80 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/AsyncDeleteAgentGateway.java @@ -0,0 +1,51 @@ +/* + * 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.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_DeleteAgentGateway_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkservices.v1.AgentGatewayName; +import com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest; +import com.google.cloud.networkservices.v1.NetworkServicesClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteAgentGateway { + + public static void main(String[] args) throws Exception { + asyncDeleteAgentGateway(); + } + + public static void asyncDeleteAgentGateway() 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + DeleteAgentGatewayRequest request = + DeleteAgentGatewayRequest.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setEtag("etag3123477") + .build(); + ApiFuture future = + networkServicesClient.deleteAgentGatewayCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_DeleteAgentGateway_async] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/AsyncDeleteAgentGatewayLRO.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/AsyncDeleteAgentGatewayLRO.java new file mode 100644 index 000000000000..7b67c2d4b108 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/AsyncDeleteAgentGatewayLRO.java @@ -0,0 +1,52 @@ +/* + * 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.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_DeleteAgentGateway_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkservices.v1.AgentGatewayName; +import com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest; +import com.google.cloud.networkservices.v1.NetworkServicesClient; +import com.google.cloud.networkservices.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteAgentGatewayLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteAgentGatewayLRO(); + } + + public static void asyncDeleteAgentGatewayLRO() 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + DeleteAgentGatewayRequest request = + DeleteAgentGatewayRequest.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setEtag("etag3123477") + .build(); + OperationFuture future = + networkServicesClient.deleteAgentGatewayOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_DeleteAgentGateway_LRO_async] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/SyncDeleteAgentGateway.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/SyncDeleteAgentGateway.java new file mode 100644 index 000000000000..7b8ec96649de --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/SyncDeleteAgentGateway.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.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_DeleteAgentGateway_sync] +import com.google.cloud.networkservices.v1.AgentGatewayName; +import com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest; +import com.google.cloud.networkservices.v1.NetworkServicesClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAgentGateway { + + public static void main(String[] args) throws Exception { + syncDeleteAgentGateway(); + } + + public static void syncDeleteAgentGateway() 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + DeleteAgentGatewayRequest request = + DeleteAgentGatewayRequest.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setEtag("etag3123477") + .build(); + networkServicesClient.deleteAgentGatewayAsync(request).get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_DeleteAgentGateway_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/SyncDeleteAgentGatewayAgentgatewayname.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/SyncDeleteAgentGatewayAgentgatewayname.java new file mode 100644 index 000000000000..e9f599c12599 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/SyncDeleteAgentGatewayAgentgatewayname.java @@ -0,0 +1,42 @@ +/* + * 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.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_DeleteAgentGateway_Agentgatewayname_sync] +import com.google.cloud.networkservices.v1.AgentGatewayName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAgentGatewayAgentgatewayname { + + public static void main(String[] args) throws Exception { + syncDeleteAgentGatewayAgentgatewayname(); + } + + public static void syncDeleteAgentGatewayAgentgatewayname() 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + AgentGatewayName name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]"); + networkServicesClient.deleteAgentGatewayAsync(name).get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_DeleteAgentGateway_Agentgatewayname_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/SyncDeleteAgentGatewayString.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/SyncDeleteAgentGatewayString.java new file mode 100644 index 000000000000..b10d6fc37fd0 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/SyncDeleteAgentGatewayString.java @@ -0,0 +1,42 @@ +/* + * 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.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_DeleteAgentGateway_String_sync] +import com.google.cloud.networkservices.v1.AgentGatewayName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAgentGatewayString { + + public static void main(String[] args) throws Exception { + syncDeleteAgentGatewayString(); + } + + public static void syncDeleteAgentGatewayString() 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + String name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString(); + networkServicesClient.deleteAgentGatewayAsync(name).get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_DeleteAgentGateway_String_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/AsyncGetAgentGateway.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/AsyncGetAgentGateway.java new file mode 100644 index 000000000000..56a87cc72e06 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/AsyncGetAgentGateway.java @@ -0,0 +1,50 @@ +/* + * 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.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_GetAgentGateway_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.AgentGatewayName; +import com.google.cloud.networkservices.v1.GetAgentGatewayRequest; +import com.google.cloud.networkservices.v1.NetworkServicesClient; + +public class AsyncGetAgentGateway { + + public static void main(String[] args) throws Exception { + asyncGetAgentGateway(); + } + + public static void asyncGetAgentGateway() 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + GetAgentGatewayRequest request = + GetAgentGatewayRequest.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .build(); + ApiFuture future = + networkServicesClient.getAgentGatewayCallable().futureCall(request); + // Do something. + AgentGateway response = future.get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_GetAgentGateway_async] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/SyncGetAgentGateway.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/SyncGetAgentGateway.java new file mode 100644 index 000000000000..358e9ab0dd48 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/SyncGetAgentGateway.java @@ -0,0 +1,46 @@ +/* + * 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.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_GetAgentGateway_sync] +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.AgentGatewayName; +import com.google.cloud.networkservices.v1.GetAgentGatewayRequest; +import com.google.cloud.networkservices.v1.NetworkServicesClient; + +public class SyncGetAgentGateway { + + public static void main(String[] args) throws Exception { + syncGetAgentGateway(); + } + + public static void syncGetAgentGateway() 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + GetAgentGatewayRequest request = + GetAgentGatewayRequest.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .build(); + AgentGateway response = networkServicesClient.getAgentGateway(request); + } + } +} +// [END networkservices_v1_generated_NetworkServices_GetAgentGateway_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/SyncGetAgentGatewayAgentgatewayname.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/SyncGetAgentGatewayAgentgatewayname.java new file mode 100644 index 000000000000..29f087160410 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/SyncGetAgentGatewayAgentgatewayname.java @@ -0,0 +1,42 @@ +/* + * 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.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_GetAgentGateway_Agentgatewayname_sync] +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.AgentGatewayName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; + +public class SyncGetAgentGatewayAgentgatewayname { + + public static void main(String[] args) throws Exception { + syncGetAgentGatewayAgentgatewayname(); + } + + public static void syncGetAgentGatewayAgentgatewayname() 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + AgentGatewayName name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]"); + AgentGateway response = networkServicesClient.getAgentGateway(name); + } + } +} +// [END networkservices_v1_generated_NetworkServices_GetAgentGateway_Agentgatewayname_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/SyncGetAgentGatewayString.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/SyncGetAgentGatewayString.java new file mode 100644 index 000000000000..355b06ac84b6 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/SyncGetAgentGatewayString.java @@ -0,0 +1,42 @@ +/* + * 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.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_GetAgentGateway_String_sync] +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.AgentGatewayName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; + +public class SyncGetAgentGatewayString { + + public static void main(String[] args) throws Exception { + syncGetAgentGatewayString(); + } + + public static void syncGetAgentGatewayString() 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + String name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString(); + AgentGateway response = networkServicesClient.getAgentGateway(name); + } + } +} +// [END networkservices_v1_generated_NetworkServices_GetAgentGateway_String_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/AsyncListAgentGateways.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/AsyncListAgentGateways.java new file mode 100644 index 000000000000..512bfbbff4fe --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/AsyncListAgentGateways.java @@ -0,0 +1,55 @@ +/* + * 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.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_ListAgentGateways_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.ListAgentGatewaysRequest; +import com.google.cloud.networkservices.v1.LocationName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; + +public class AsyncListAgentGateways { + + public static void main(String[] args) throws Exception { + asyncListAgentGateways(); + } + + public static void asyncListAgentGateways() 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + ListAgentGatewaysRequest request = + ListAgentGatewaysRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setReturnPartialSuccess(true) + .build(); + ApiFuture future = + networkServicesClient.listAgentGatewaysPagedCallable().futureCall(request); + // Do something. + for (AgentGateway element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkservices_v1_generated_NetworkServices_ListAgentGateways_async] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/AsyncListAgentGatewaysPaged.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/AsyncListAgentGatewaysPaged.java new file mode 100644 index 000000000000..dd1f16bb39d5 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/AsyncListAgentGatewaysPaged.java @@ -0,0 +1,63 @@ +/* + * 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.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_ListAgentGateways_Paged_async] +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.ListAgentGatewaysRequest; +import com.google.cloud.networkservices.v1.ListAgentGatewaysResponse; +import com.google.cloud.networkservices.v1.LocationName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; +import com.google.common.base.Strings; + +public class AsyncListAgentGatewaysPaged { + + public static void main(String[] args) throws Exception { + asyncListAgentGatewaysPaged(); + } + + public static void asyncListAgentGatewaysPaged() 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + ListAgentGatewaysRequest request = + ListAgentGatewaysRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setReturnPartialSuccess(true) + .build(); + while (true) { + ListAgentGatewaysResponse response = + networkServicesClient.listAgentGatewaysCallable().call(request); + for (AgentGateway element : response.getAgentGatewaysList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networkservices_v1_generated_NetworkServices_ListAgentGateways_Paged_async] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/SyncListAgentGateways.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/SyncListAgentGateways.java new file mode 100644 index 000000000000..62291d6069fc --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/SyncListAgentGateways.java @@ -0,0 +1,51 @@ +/* + * 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.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_ListAgentGateways_sync] +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.ListAgentGatewaysRequest; +import com.google.cloud.networkservices.v1.LocationName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; + +public class SyncListAgentGateways { + + public static void main(String[] args) throws Exception { + syncListAgentGateways(); + } + + public static void syncListAgentGateways() 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + ListAgentGatewaysRequest request = + ListAgentGatewaysRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setReturnPartialSuccess(true) + .build(); + for (AgentGateway element : networkServicesClient.listAgentGateways(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkservices_v1_generated_NetworkServices_ListAgentGateways_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/SyncListAgentGatewaysLocationname.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/SyncListAgentGatewaysLocationname.java new file mode 100644 index 000000000000..69da93290799 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/SyncListAgentGatewaysLocationname.java @@ -0,0 +1,44 @@ +/* + * 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.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_ListAgentGateways_Locationname_sync] +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.LocationName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; + +public class SyncListAgentGatewaysLocationname { + + public static void main(String[] args) throws Exception { + syncListAgentGatewaysLocationname(); + } + + public static void syncListAgentGatewaysLocationname() 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (AgentGateway element : networkServicesClient.listAgentGateways(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkservices_v1_generated_NetworkServices_ListAgentGateways_Locationname_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/SyncListAgentGatewaysString.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/SyncListAgentGatewaysString.java new file mode 100644 index 000000000000..0df13264f467 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/SyncListAgentGatewaysString.java @@ -0,0 +1,44 @@ +/* + * 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.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_ListAgentGateways_String_sync] +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.LocationName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; + +public class SyncListAgentGatewaysString { + + public static void main(String[] args) throws Exception { + syncListAgentGatewaysString(); + } + + public static void syncListAgentGatewaysString() 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (AgentGateway element : networkServicesClient.listAgentGateways(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkservices_v1_generated_NetworkServices_ListAgentGateways_String_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listhttproutes/AsyncListHttpRoutes.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listhttproutes/AsyncListHttpRoutes.java index b489be8914c3..a227984b759d 100644 --- a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listhttproutes/AsyncListHttpRoutes.java +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listhttproutes/AsyncListHttpRoutes.java @@ -42,6 +42,7 @@ public static void asyncListHttpRoutes() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setReturnPartialSuccess(true) + .setFilter("filter-1274492040") .build(); ApiFuture future = networkServicesClient.listHttpRoutesPagedCallable().futureCall(request); diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listhttproutes/AsyncListHttpRoutesPaged.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listhttproutes/AsyncListHttpRoutesPaged.java index 4b86dcd81b5f..09976e4c63c6 100644 --- a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listhttproutes/AsyncListHttpRoutesPaged.java +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listhttproutes/AsyncListHttpRoutesPaged.java @@ -43,6 +43,7 @@ public static void asyncListHttpRoutesPaged() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setReturnPartialSuccess(true) + .setFilter("filter-1274492040") .build(); while (true) { ListHttpRoutesResponse response = diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listhttproutes/SyncListHttpRoutes.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listhttproutes/SyncListHttpRoutes.java index 11ab24a5debb..62f8aeeb3a84 100644 --- a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listhttproutes/SyncListHttpRoutes.java +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listhttproutes/SyncListHttpRoutes.java @@ -41,6 +41,7 @@ public static void syncListHttpRoutes() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setReturnPartialSuccess(true) + .setFilter("filter-1274492040") .build(); for (HttpRoute element : networkServicesClient.listHttpRoutes(request).iterateAll()) { // doThingsWith(element); diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/AsyncUpdateAgentGateway.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/AsyncUpdateAgentGateway.java new file mode 100644 index 000000000000..af79bf8acf53 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/AsyncUpdateAgentGateway.java @@ -0,0 +1,52 @@ +/* + * 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.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_UpdateAgentGateway_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.NetworkServicesClient; +import com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAgentGateway { + + public static void main(String[] args) throws Exception { + asyncUpdateAgentGateway(); + } + + public static void asyncUpdateAgentGateway() 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + UpdateAgentGatewayRequest request = + UpdateAgentGatewayRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setAgentGateway(AgentGateway.newBuilder().build()) + .build(); + ApiFuture future = + networkServicesClient.updateAgentGatewayCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_UpdateAgentGateway_async] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/AsyncUpdateAgentGatewayLRO.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/AsyncUpdateAgentGatewayLRO.java new file mode 100644 index 000000000000..157268641c80 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/AsyncUpdateAgentGatewayLRO.java @@ -0,0 +1,52 @@ +/* + * 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.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_UpdateAgentGateway_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.NetworkServicesClient; +import com.google.cloud.networkservices.v1.OperationMetadata; +import com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAgentGatewayLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateAgentGatewayLRO(); + } + + public static void asyncUpdateAgentGatewayLRO() 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + UpdateAgentGatewayRequest request = + UpdateAgentGatewayRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setAgentGateway(AgentGateway.newBuilder().build()) + .build(); + OperationFuture future = + networkServicesClient.updateAgentGatewayOperationCallable().futureCall(request); + // Do something. + AgentGateway response = future.get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_UpdateAgentGateway_LRO_async] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/SyncUpdateAgentGateway.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/SyncUpdateAgentGateway.java new file mode 100644 index 000000000000..1e69be1fe139 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/SyncUpdateAgentGateway.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.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_UpdateAgentGateway_sync] +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.NetworkServicesClient; +import com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAgentGateway { + + public static void main(String[] args) throws Exception { + syncUpdateAgentGateway(); + } + + public static void syncUpdateAgentGateway() 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + UpdateAgentGatewayRequest request = + UpdateAgentGatewayRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setAgentGateway(AgentGateway.newBuilder().build()) + .build(); + AgentGateway response = networkServicesClient.updateAgentGatewayAsync(request).get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_UpdateAgentGateway_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/SyncUpdateAgentGatewayAgentgatewayFieldmask.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/SyncUpdateAgentGatewayAgentgatewayFieldmask.java new file mode 100644 index 000000000000..92785475c37b --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/SyncUpdateAgentGatewayAgentgatewayFieldmask.java @@ -0,0 +1,44 @@ +/* + * 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.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_UpdateAgentGateway_AgentgatewayFieldmask_sync] +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.NetworkServicesClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAgentGatewayAgentgatewayFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateAgentGatewayAgentgatewayFieldmask(); + } + + public static void syncUpdateAgentGatewayAgentgatewayFieldmask() 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + AgentGateway agentGateway = AgentGateway.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + AgentGateway response = + networkServicesClient.updateAgentGatewayAsync(agentGateway, updateMask).get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_UpdateAgentGateway_AgentgatewayFieldmask_sync] diff --git a/librarian.yaml b/librarian.yaml index e2b7a85f3d0c..5cd547f9853a 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -16,8 +16,8 @@ version: v0.20.0 repo: googleapis/google-cloud-java sources: googleapis: - commit: f7b17174725f43b5cb11b0b8c6bbad20a3dc5bd1 - sha256: e21b1ea623f68161e9c0c464ca9e9df53da80d7133244531aa97d1cfeb411ccc + commit: b282a4f9799f6725a1683d38ef3bb41f19c22b25 + sha256: 3ce018fd791e4234d15dfee7247237d8edd32353f8fa3d66ba8d4583ac1ee94d showcase: commit: 328bec7ce4c1fb77c37fdf1868d0506bc02a70fc sha256: 8df187486e37edf5a78c1646c859c311bc452871b9ba4641d93149d3c53450a2